Tugriceri Web Notes

iptables ile Port Knocking

by on Sep.11, 2007, under Linux

               $IPTABLES -A INPUT -p tcp –dport 22   -m recent –rcheck
–seconds 60 –name SSH          -j ACCEPT
                $IPTABLES -A INPUT
-p tcp –dport 21   -m recent –rcheck –seconds 60 –name SSH          -j
ACCEPT
                $IPTABLES -A INPUT -p tcp –dport 1599 -m
recent –name SSH –remove -j DROP
               
$IPTABLES -A INPUT -p tcp –dport 1600 -m recent –name
SSH –set    -j DROP
                $IPTABLES -A INPUT -p tcp –dport 1601
-m recent –name SSH –remove -j DROP

Powered by ScribeFire.

No comments for this entry yet...

Comments are closed.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...