LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Opening firewall ports (https://www.linuxquestions.org/questions/linux-newbie-8/opening-firewall-ports-146167/)

bezaleel 02-14-2004 07:47 PM

Opening firewall ports
 
How do I open firewall ports? I need to open port 25. I'm using Fedora Core 1 in KDE.

ashamril 02-15-2004 10:04 PM

# iptables -A INPUT -p tcp -m tcp --dport 25 -j ACCEPT
# iptables -A INPUT -p tcp -m tcp --sport 25 -j ACCEPT

Hangdog42 02-16-2004 07:14 AM

Quote:

# iptables -A INPUT -p tcp -m tcp --sport 25 -j ACCEPT
Unless you want to restrict traffic to that originating on port 25, you don't need this line. All this rule does is prevent a remote user from running their service on a different port. If that is what you want to do, fine, otherwise just stick with the first line.


All times are GMT -5. The time now is 07:30 PM.