Ports still not opening! Help?
Hey guys,
Here I am mangling my /etc/sysconfig/iptables file in an effort to get port 5005 open (which is used by a utility I need), and I keep getting "Connection refused" --- and this when I try to connect to the local machine itself! I've also tried the redhat-config-securitylevel utility as well as an open-source util called "Firestarter", both to no avail. My system is NOT subject to any fancy filtering from some router, external firewall (not that that should matter for local connections anyway), etc...It's JUST my machine..
Below is my (now-mangled) iptables file. What am I doing wrong? (I'm pretty sure I only need the TCP port open, but I put "udp" in there just to see if that would magically fix everything.)
Thanks much,
Scott
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Lokkit-0-50-INPUT - [0:0]
-A INPUT -j RH-Lokkit-0-50-INPUT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 5005 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 5005 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -i lo -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 128.83.185.40 --sport 53 -d 0/0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 128.83.185.41 --sport 53 -d 0/0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -s 128.83.139.9 --sport 53 -d 0/0 -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --syn -j REJECT
-A RH-Lokkit-0-50-INPUT -p udp -m udp -j REJECT
-A RH-Lokkit-0-50-INPUT -p tcp -m tcp --dport 5005 --syn -j ACCEPT
-A RH-Lokkit-0-50-INPUT -p udp -m udp --dport 5005 --syn -j ACCEPT
COMMIT
...P.S.- I just commented out those two REJECT lines and restarted the networking deamon(s), but I still get:
[shawley@faraday sysconfig]# telnet localhost 5005
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused
P.P.S- Even if I *disable* IP tables, select "Turn Firewall Off" on via any number of utilities, blah blah blah, I'm still getting connection refused...
|