1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Install knockd on WRT54GL

Discussion in 'Networking Issues' started by barthoose, Jun 15, 2007.

  1. barthoose

    barthoose Guest

    Hi,

    I would like to install the knockd daemon on my WRT54GL (I have already done it) but I have a problem.

    I installed libpcap and the knockd package like it's described in http://www.dd-wrt.com/wiki/index.php/Knockd

    in /tmp/var/log/knockd.log I only see :
    [Date & time of boot] Starting up, listening on vlan1

    I have configured my knockd.conf like this :

    [options]
    logfile = /var/log/knockd.log

    [opencloseSSH]
    sequence = 2222:tcp,4444:tcp,6666:tcp,3333:tcp
    seq_timeout = 15
    tcpflags = syn,ack,fin,rst,psh,urg
    start_command = /usr/sbin/iptables -I INPUT -s %IP% -p tcp --syn --dport 443 -j ACCEPT
    cmd_timeout = 10
    stop_command = /usr/sbin/iptables -D INPUT -s %IP% -p tcp --syn --dport 443 -j ACCEPT

    But I can't see any sequence in the log file when I do : port 2222, then 4444, etc... And the port knocking sequence is never reached.
    I see the paquet bloqued by the firewall with the syslog view (Wallwatcher), so I know that the daemon is supposed to receive them...

    Here's the startup script when my router boots :
    sleep 60
    /jffs/usr/bin/knockd -d -i vlan1 -c /jffs/etc/knockd.conf

    Has anyone an idea ?

    Thanks in advance.
     

Share This Page