Knockd installation : Step 1
[root@localhost ~]# wget http://www.invoca.ch/pub/packages/knock/knock-0.5-4.src.rpm Step 2 Modift the config file, we use the sequence port 2222:tcp,3333:tcp,4444:tcp to knock the program, if it is success, it will open port 22 in iptables for 30 seconds, then it close the 22 port. Step 3
[root@localhost ~]# chkconfig knockd on Step 4 In client side, we can use 'telent' in window or 'knock' program in window/linux to knockd server :
C:\ telnet 192.168.1.2 2222 [root@localhost ~]# knock -v 192.168.1.2 2222:tcp 3333:tcp 4444:tcp We can check knockd.login knockd server for client side 'knock' status Also can check the port 22 is open or not after client's 'knock' is success :
[root@localhost ~]# tail -n100 /var/log/knockd.log http://www.zeroflux.org/cgi-bin/cvstrac.cgi/knock/wiki Server is hosted by Alanstudio Linux Operating System Recommend screen resolution 1024 x 768 / IE / FireFox Alan Studio © 2007 by Alan Cheung Hin Lun. All rights reserved. |