Re: opening firewall ports on the command line with Fedora'; s firewall

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux