Skip to content

IPv6 is not supported under this link-layer type #83

Description

@BitBlit88

Hello,

I tried to add IPv6 support to my knockd service using knockd version 0.8.

Here is my /etc/knockd.conf:
[options]
UseSyslog
Interface = venet0

[SSH]
sequence = 1234,5678,9012
seq_timeout = 5
start_command = ufw allow from %IP% to any port 22 proto tcp
tcpflags = syn
cmd_timeout = 10
stop_command = ufw delete allow from %IP% to any port 2 proto tcp

and ifconfig:
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
loop txqueuelen 1000 (Local Loopback)
RX packets 632682 bytes 121494481 (121.4 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 632682 bytes 121494481 (121.4 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

venet0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP> mtu 1500
inet 127.0.0.1 netmask 255.255.255.255 broadcast 0.0.0.0 destination 127.0.0.1
inet6 2a01:xxx:xxx:xxx:xxx:xxx:xxx:xxx prefixlen 128 scopeid 0x0
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 0 (UNSPEC)
RX packets 80663 bytes 6564767 (6.5 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 37029 bytes 15021778 (15.0 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

venet0:0: flags=211<UP,BROADCAST,POINTOPOINT,RUNNING,NOARP> mtu 1500
inet 81.yyy.yyy.yyy netmask 255.255.255.255 broadcast 81.yyy.yyy.yyy destination 81.yyy.yyy.yyy
unspec 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 txqueuelen 0 (UNSPEC)

If I try to knock via IPv6 I get the following message in syslog:
knockd[23619]: IPv6 is not supported under this link-layer type

Ipv4 doesn't work neither with this configuration.

If I change the config to

[options]
UseSyslog
Interface = venet0:0

Ipv4 works but Ipv6 doesn't because venet0:0 is only bound to an IPv4 address.

How could I get IPv4 and IPv6 get working?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions