Strange it does not work at my linux box
I made following rule:
/sbin/iptables -I INPUT -p tcp -m tcp -s 188.8.131.52 --dport 22 --syn -j ACCEPT
/sbin/iptables -I INPUT -p tcp -m tcp --dport 22 --syn -j REJECT
184.108.40.206 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.