Install knockd on WRT54GL

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

  1. barthoose

    barthoose Guest


    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

    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 :

    logfile = /var/log/knockd.log

    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.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice