View Full Version : sshd and firewall
draget
2005-07-21, 06:22 AM CDT
I need to disable the firewall/security mode in fedora core 4. I have a server using sshd, but the firewall seems to be blocking incoming connections.
Is there a command for disabling it?
thanks!
smfinley
2005-07-21, 06:37 AM CDT
I need to disable the firewall/security mode in fedora core 4. I have a server using sshd, but the firewall seems to be blocking incoming connections.
Is there a command for disabling it?
thanks!
Do not disable your firewall and invite the whole world to hack your system. Go to "Desktop" > "System Settings" > "Security Level" and make sure the checkbox for SSH is checked. Then learn how to open and forward port 22 on your router for ssh. See this (http://www.portforward.com/routers.htm).
draget
2005-07-21, 07:33 AM CDT
im running without an X, just from console.
I do have a router but it only needs to be shared accross the LAN, not too the 'net.
thanks!
Fedge
2005-07-21, 11:48 AM CDT
I too would like to know how to do this via command line. If someone could provide some insight, it would be much appreciated.
kg4cbk
2005-07-21, 01:34 PM CDT
You can manually edit /etc/sysconfig/iptables and add a line:
-A RH-Firewall-1-INPUT -p tcp -m state --state NEW -m tcp --dport 22 -j ACCEPT
This is what system-config-securitylevel creates when you select ssh.
Don't forget to restart iptables after you edit this file.
You can check that the rule is running by:
service iptables status
vBulletin® v3.7.3, Copyright ©2000-2008, Jelsoft Enterprises Ltd.