You are not logged in.
i want to open the port 80 in iptables for eth0 but not eth1, how do i go about doing that..
im currently using iptables for routering.
nevermind i seem to have fix my problem..
# iptables -A INPUT -p tcp -m state --state NEW -m tcp --dport 80 -j ACCEPT
# /etc/rc.d/iptables save
did the trick
Last edited by eldamar (2008-02-12 16:50:23)
Offline
http://wiki.archlinux.org/index.php/Sim … wall_HOWTO Wiki answers it all
Offline
Given your question I assume that you have iptables running and configured a firewall. Because your question is rather generic I'd answer you have to allow connections to port 80 on the nic your webserver is listening by adding the the right iptables rules to the INPUT chain in your firewall script. For a better answer it would help if you'd post your firewall setup.
Edit: I forgot about the wiki ...
Last edited by chimeric (2008-02-12 16:42:20)
Offline
You should add
-i eth0
to the rule to allow only for eth0.
A good link http://iptables-tutorial.frozentux.net/
Last edited by VikM (2008-02-12 18:53:46)
Offline
thanks for the help!
Offline