Package: 2ping
Version: 2.0-1
Tags: ipv6

Hi Ryan,

setting TWOPINGD_RUN=yes in /etc/default/2ping only enables a listener
on IPv4, not on IPv6:

# lsof -p 8876 | fgrep IP
2ping   8876 nobody    4u  IPv4 4022853      0t0     UDP *:15998

Tested with both, IPv6 addresses on eth0 (tested on Wheezy) as well as
with a Teredo tunnel created by miredo (tested on Sid, where I wrote the
report and from where are the lsof outputs), both times with
libio-socket-inet6-perl being installed.

Adding TWOPINGD_OPTS="-6" causes the listener to only listen on IPv6:

# lsof -p 7012 | fgrep IP
2ping   7012 nobody    4u  IPv6 4019791      0t0     UDP *:15998

The only possibility to run a 2ping listener on both, IPv4 and
IPv6, at the same time seems to be to explicitly list IP addresses and
to put the -6 option just between all IPv4 and all IPv6 addresses:

TWOPINGD_OPTS="-I 192.168.1.129 -6 -I 2001:1620:f51:1:225:90ff:fe09:9c98"

At least with Teredo tunnels, the option -I doesn't help much as the
tunnel tends to get a new IP address on restart and the option
explicitly needs an IP address and not a device name.

The option -I is also less suitable if you want to enable IPv6 listeners
on arbitrary machines by default.

So it would be nice, if there would be a possibility to listen on all
IPv4 and IPv6 interfaces and addresses without the need to list all IP
addresses. Maybe add a "-4" option to listen on IPv4, so that one can
set TWOPINGD_OPTS="-4 -6" in /etc/default/2ping.

(Maybe a hook script in /etc/network/if-up.d/ to reload the list of all
interfaces 2ping should listening to, would be a good idea, too.)

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (900, 'testing'), (899, 
'testing-proposed-updates'), (600, 'stable'), (500, 'proposed-updates'), (200, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.10-rc5-686-pae (SMP w/2 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages 2ping depends on:
ii  perl  5.14.2-21

Versions of packages 2ping recommends:
ii  libio-socket-inet6-perl  2.69-2
ii  perl-modules             5.14.2-21

Versions of packages 2ping suggests:
ii  libdigest-crc-perl         0.18-1+b1
ii  perl [libdigest-sha-perl]  5.14.2-21

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to