Title: Port knocking to open ssh to red interface Post by: sunblast on Friday 02 May 2008, 12:44:09 am Playing around with my lovely efw (Yes I totaly fall in love with this little gadget) and reading through the post in the forum i came up with some nice stuff to open the ssh port on the red interface. port knocking!
Here are the too little script that enable your efw to let you in. First the iptables on the efw: Code: #!/bin/bash And the script for letting you in: Quote #!/bin/bash /usr/bin/telnet your ip your first port 2>&1 > /dev/null & /usr/bin/telnet your ip your second port 2>&1 > /dev/null & /usr/bin/ssh root@83.135.234.254 What i don't like is that after the two telnet sessions time out you get the error message on the screen. Thought the 2>&1 > /dev/null would take care. But who cares ;) Those two scripts i called them knock and letmein can also easily be adjusted to give you acces to the webinterface. Any questions or comments are welcome. Specialy regarding the todo section in the knock script. Title: Re: Port knocking to open ssh to red interface Post by: sunblast on Monday 05 May 2008, 03:52:44 am If you want this setting to remain during startups. Add knock to the rc.firewall.local script. This can be found in /var/efw/inithooks.
|