LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-27-2004, 04:07 PM   #1
spam4scott
LQ Newbie
 
Registered: Jul 2003
Distribution: Debian
Posts: 5

Rep: Reputation: 0
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...
 
Old 05-28-2004, 12:48 AM   #2
ppuru
Senior Member
 
Registered: Mar 2003
Location: Beautiful BC
Distribution: RedHat & clones, Slackware, SuSE, OpenBSD
Posts: 1,791

Rep: Reputation: 50
IS the service that is supposed to run on port 5005 active?
 
0 members found this post helpful.
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
opening ports I think jleipert Linux - Security 7 09-04-2005 09:14 AM
Opening ports lunke Linux - Security 10 06-07-2005 03:04 AM
Opening ports for games. fipeso Linux - Security 2 05-02-2005 01:39 PM
Help with iptables and opening ports barbar4854 General 3 02-06-2004 01:00 PM
Opening Ports george3k Linux - Newbie 7 02-16-2003 01:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration