Re: trouble with firewall settings GUI
- From: Allen Kistler <ackistler@xxxxxxxxx>
- Date: Sun, 12 Nov 2006 11:12:19 GMT
laredotornado@xxxxxxxxxxx wrote:
Allen Kistler wrote:
laredotornado@xxxxxxxxxxx wrote:
Hi,
I have Fedora Core 5 installed on an x86 desktop machine. I want to
open port 8080 in my firewall. So I logged in as a normal user, went
to the start menu, selected "System", "Administration", and "Security
Level and Firewall", entering in the root password along the way. When
the popup box appeared, I opened up the "Other Ports" section and added
8080. Then I clicked "OK" but the popup didn't close. I clicked OK
several times. Then I clicked the "X" to close. When I went back the
setting had not been saved.
What must I do to open port 8080?
vi /etc/sysconfig/iptables
/etc/init.d/iptables restart
Thanks. I'm hesitant because the second line of the file says "Manual
customization is not recommended." What line would I add to open 8080?
This is my file as it stands now:
I'll limit myself to the simplest changes.
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
Move the ESTABLISHED,RELATED line to here.
Add a line to drop INVALID.
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
Some ICMP is good, but not all. Think about this one.
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp --dport 5353 -d 224.0.0.251 -j ACCEPT
-A RH-Firewall-1-INPUT -p udp -m udp --dport 631 -j ACCEPT
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 631 -j ACCEPT
Do you really want anyone to administer and to print to cups from the
Internet?
You can add the line here for tcp port 8080.
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j
ACCEPT
Make sure to lock ssh down. No root logins. Public key authentication
only.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 23 -j
ACCEPT
Leaves you open to password guessing attacks.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j
ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j
ACCEPT
Leaves you open to password guessing attacks, unless it's anonymous ftp
only.
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443.
-j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
- References:
- trouble with firewall settings GUI
- From: laredotornado
- Re: trouble with firewall settings GUI
- From: Allen Kistler
- Re: trouble with firewall settings GUI
- From: laredotornado
- trouble with firewall settings GUI
- Prev by Date: Re: Thunderbird
- Next by Date: Re: Corrupt File System
- Previous by thread: Re: trouble with firewall settings GUI
- Next by thread: Thunderbird
- Index(es):
Relevant Pages
|