Computing.Net > Forums > Linux > How do I open up a Port

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

How do I open up a Port

Reply to Message Icon

Name: Kaine
Date: September 22, 2003 at 08:38:25 Pacific
OS: Linux 8.0
CPU/Ram: P4 1.8a / 512
Comment:

I need to open a port in linux 8, I set the firewall to medium. That doesn't work so I try and do the custom selection. I try to open the port that way and linux 8 keeps reverting back to the original it was set to, to begin with. I need to open port 2001. I have set it up in iptables and I have set it up in services. I don't know what else to do. So if anyone can be of some help i would greatly appreciate it.



Sponsored Link
Ads by Google

Response Number 1
Name: Justin
Date: September 22, 2003 at 12:17:27 Pacific
Reply:

try this, change the 127.0.0.1 to your IP and it will allow tcp connections in on port 2001, if you need UDP just type in udp instead of tcp.
iptables -A INPUT -p tcp -d 127.0.0.1 --dport 2001 -j ACCEPT


0

Response Number 2
Name: C_Legend
Date: September 22, 2003 at 13:35:07 Pacific
Reply:

Does it work with the firewall disabled ("service iptables stop")? If yes, you know it's the firewall that's holding you back. What are you using to modify the firewall's rules? lokkit (also setup, then Firewall configuration)? redhat-config-securitylevel? Either way should work. Either way, I'd probably restart iptables after modifying the settings ("service iptables restart"). Plus, are you sure you are putting the right protocol (tcp, udp, etc.) after the port number in "Other ports"? I also don't see 2001 as a port in the default /etc/services file. Are you adding this correctly?

Good luck.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: How do I open up a Port

How do i set up a mail server? www.computing.net/answers/linux/how-do-i-set-up-a-mail-server/7953.html

How do I set up a printer? www.computing.net/answers/linux/how-do-i-set-up-a-printer/4006.html

How do I set up an FTP server???? www.computing.net/answers/linux/how-do-i-set-up-an-ftp-server/19282.html