opening firewall ports on the command line with Fedora'; s firewall
Doncho N. Gunchev
gunchev at gmail.com
Thu May 17 01:52:03 UTC 2007
On Thursday 2007-05-17 03:34:02 Scott Berry wrote:
> Hello there,
>
> I need to open port I believe it is 6667 on the firewall for my Fedora server. How would this be done?
>
# iptables -I RH-Firewall-1-INPUT 1 -m state --state NEW -p tcp --dport 6667 -j ACCEPT
# iptables-save > /etc/sysconfig/iptables
# echo '--port=65022:tcp' >> /etc/sysconfig/system-config-securitylevel
that '1 ' after FORWARD should probably be 9 or more, just before the
last two lines, that log and reject the packet, in the RH-Firewall-1-INPUT
chain, but 1 would do. The third command is to make sure next time
you use system-config-securitylevel your port will not get lost.
--
Regards,
Doncho N. Gunchev, GPG key ID: 0EF40B9E, Key server: pgp.mit.edu
More information about the fedora-list
mailing list