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

Strange it does not work at my linux box


I made following rule:

Code:
/sbin/iptables -I INPUT -p tcp -m tcp -s 213.143.90.139 --dport 22 --syn -j ACCEPT
/sbin/iptables -I INPUT -p tcp -m tcp --dport 22 --syn -j REJECT
213.143.90.139 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:

Code:
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)
ISPConfig 3.0.3.2
Reply With Quote