Thread: Firewall ACLs
View Single Post
Old 23rd November 2006, 10:53
IKShadow IKShadow is offline
Join Date: Jan 2006
Location: Slovenia
Posts: 85
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to IKShadow

Strange it does not work at my linux box

I made following rule:

/sbin/iptables -I INPUT -p tcp -m tcp -s --dport 22 --syn -j ACCEPT
/sbin/iptables -I INPUT -p tcp -m tcp --dport 22 --syn -j REJECT is PC from which i want to access my linux box.
(Later on i would copy/paste first line for few other IP's )

When I restart firewall everything seems ok:

krneki:/etc/Bastille/firewall.d # /etc/init.d/bastille-firewall restart
Setting up IP spoofing protection... done.
Allowing traffic from trusted interfaces... done.
Setting up chains for public/internal interface traffic... done.
Setting up general rules... done.
Setting up outbound rules... done.
But after it I cant SSH to my linux box.
SUSE 11.3 (perfect install)
Reply With Quote