Hi, you can send me to the hell but, I have a Red Hat 4 box and I
need to open the port 8080, I have never used iptables, only openSUSE
YaST firewall module, so how can I open and close ports on it?
VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
iptables -A open -i ethn -p tcp --dport 8080 -j ACCEPT
As for closing that would be a reject/drop rule any way this tut though for still another distro, helped me when I started playing with iptables, certainly initially over the multitude of manuals you can come across.
Generally you allow then drop/reject the rest so it isn’t a case of closing but opening. Also remember it is a chain so it will match the first rule it encounters, order is important.
VampirD
No in elenath hîlar nan hâd gîn
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.12 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org/
You should look at the existing rules with iptables -L -n. From memory the name of the chain where the rules live is RH-Input-1 or something like that.