iptables and ssh

Scot L. Harris webid at cfl.rr.com
Sat Jul 10 20:47:14 UTC 2004


On Sat, 2004-07-10 at 16:22, russell wrote:
> I'm trying to ssh into my box but am blocked.  I can ping but can't get 
> in.  This is my firewall script:

> Do I need to put a line in like:
> -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j 
> ACCEPT
> 
> ?
> 
> as port 22 is for ssh.


Yes you need to allow port 22 in.  Insert the line above or you can go
to the system-config-securitylevel and select ssh from the list.  Just
make sure it shows the other ports you have opened in the optional list.

-- 
Scot L. Harris
webid at cfl.rr.com

Lying is an indispensable part of making life tolerable.
		-- Bergan Evans 





More information about the fedora-list mailing list