Package: ifupdown
Version: 0.8.36+nmu1
Severity: normal
When setting up an interface with:
iface IFACE inet6 auto
dhcp 1
[...]
then, the dhclient -6 is correctly started (on ifup) but
not stopped (on ifdown).
Looking at the sources, inet6.defn, we can see:
method auto
[...]
up
[...]
/sbin/dhclient -6 -v -P -pf /run/dhclient6.%iface%.pid -lf
/var/lib/dhcp/dhclient6.%iface%.leases -I -df
/var/lib/dhcp/dhclient.%iface%.leases %iface% \
if (var_true("dhcp", ifd) && execable("/sbin/dhclient") &&
var_true("request_prefix", ifd))
/sbin/dhclient -6 -1 -v -S -pf /run/dhclient6.%iface%.pid -lf
/var/lib/dhcp/dhclient6.%iface%.leases -I -df
/var/lib/dhcp/dhclient.%iface%.leases %iface% \
elsif (var_true("dhcp", ifd) && execable("/sbin/dhclient"))
echo 'No DHCPv6 client software found!' >&2; false \
elsif (var_true("dhcp", ifd))
down
[nothing to stop dhclient...]
Should not we have something like (taken from the dhcp method):
down
/sbin/dhclient -6 -v -r -pf /run/dhclient6.%iface%.pid -lf
/var/lib/dhcp/dhclient6.%iface%.leases -I -df
/var/lib/dhcp/dhclient.%iface%.leases %iface% \
if (var_true("dhcp", ifd) && execable("/sbin/dhclient"))
echo 'No DHCPv6 client software found!' >&2; false \
elsif (var_true("dhcp", ifd))
(not sure if we should test for "var_true("dhcp", ifd)" in the down
part. Perhaps it is better to always stop dhclient if any?
Regards,
Vincent
-- Package-specific info:
--- /etc/network/interfaces:
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback
noauto eth0
#iface eth0 inet dhcp
iface tap0 inet manual
pre-up openvpn --mktun --dev $IFACE
post-down openvpn --rmtun --dev $IFACE
#iface br0 inet dhcp
# bridge_ports tap0 eth0
noauto en-wired
#iface en-wired inet dhcp
#iface en-wired inet manual
# The primary network interface
#noauto eth5
#iface eth5 inet dhcp
iface imag-static inet static
address 129.88.69.129
netmask 255.255.255.0
network 129.88.69.0
broadcast 129.88.69.255
gateway 129.88.69.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 129.88.69.8
dns-search vpn.danjean.fr
iface imag-static-atsina inet static
address 129.88.69.127
netmask 255.255.255.0
network 129.88.69.0
broadcast 129.88.69.255
gateway 129.88.69.254
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 129.88.69.8
dns-search vpn.danjean.fr
iface mnhn-static inet static
address 192.134.154.62
netmask 255.255.255.0
network 192.134.154.0
broadcast 192.134.154.255
gateway 192.134.154.14
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.134.151.15 192.134.155.19
dns-search vpn.danjean.fr
iface mnhn-static2 inet static
address 192.134.154.75
netmask 255.255.255.0
network 192.134.154.0
broadcast 192.134.154.255
gateway 192.134.154.14
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers 192.134.151.15 192.134.155.19
dns-search vpn.danjean.fr
iface dhcpserver inet static
address 192.168.77.1
netmask 255.255.255.0
iface galadriel-labri inet static
address 147.210.20.7
netmask 255.255.255.0
gateway 147.210.20.254
dns-nameservers 147.210.8.187 147.210.9.143 147.210.18.138
iface eth5_3 inet static
address 10.77.0.2
netmask 255.255.0.0
network 10.77.0.0
#auto eth6
#iface eth6 inet dhcp
iface static inet static
address 192.168.77.1
netmask 255.255.255.0
iface wifi-campus inet dhcp
wireless-essid wifi-campus
#wireless-key 14BBB1E060C7C6BE8064CDF32C
#wpa : rcmJMQqUR5F8piQXcxofBiMjE3joMIsW
iface dino2 inet dhcp
wireless-essid dino2
wireless-key 14BBB1E060C7C6BE8064CDF32C
#wpa : rcmJMQqUR5F8piQXcxofBiMjE3joMIsW
iface dino inet dhcp
wireless-essid dino
wireless-key 14BBB1E060C7C6BE8064CDF32C
# pre-up ifconfig $IFACE hw ether 00:13:ce:c5:f6:6f
# wireless-mode ad-hoc
# wireless-key off
# wireless-key ABC1234567
iface dino-static inet static
wireless-essid dino
wireless-key 14BBB1E060C7C6BE8064CDF32C
address 192.168.77.15
netmask 255.255.255.0
iface dinotv inet static
wireless-essid dino
wireless-key 14BBB1E060C7C6BE8064CDF32C
address 192.168.14.6
netmask 255.255.255.0
gateway 192.168.14.254
dns-nameservers 192.168.77.1
post-up ifconfig eth6:1 192.168.77.100 netmask 255.255.255.0
#
iface villejuif inet dhcp
wireless-essid Villejuif
wireless-key 14BBB1E060C7C6BE8064CDF32C
iface Aure inet dhcp
wireless-essid Aure
#wireless-key 14BBB1E060C7C6BE8064CDF32C
wireless-key 29041977AD
iface ujf inet dhcp
wireless-essid U1-IMA-UJF
post-up vpnc-connect ujf
pre-down vpnc-disconnect
iface labri inet dhcp
wireless-essid LaBRI
iface imagvpn inet dhcp
wireless-essid IMAG-VPN
pre-up /etc/init.d/cisco-vpnclient start
post-up echo y | vpnclient connect IMAGWIFI
post-down /etc/init.d/cisco-vpnclient stop
iface inpg inet dhcp
wireless-essid IMAG-LEIBNIZ
pre-up /etc/init.d/cisco-vpnclient start
post-up echo y | vpnclient connect IMAGWIFI
post-down /etc/init.d/cisco-vpnclient stop
iface imagvisit inet dhcp
wireless-essid IMAG-visiteurs
wireless-key s:sdfghjklsdfgh
iface inriaguest inet dhcp
wireless-essid guest-inrialpes
wireless-key off
iface enst inet dhcp
wireless-essid ENST-SIAV
iface jc inet dhcp
wireless-essid hellers
wireless-key 2F79F0632C43CC46894BA5EDF4
iface jc2 inet dhcp
wireless-essid kilghard
wireless-key 2F79F0632C43CC46894BA5EDF4
iface inria inet dhcp
wireless-essid guest-inrialpes
wireless-key off
iface dhcp inet dhcp
iface polytech inet dhcp
wireless-essid U1-POLYTECH
wireless-key off
post-up vpnc-connect ujf
pre-down vpnc-disconnect
iface dsu inet dhcp
wireless-essid U1-DSU
wireless-key off
post-up vpnc-connect ujf
pre-down vpnc-disconnect
iface hpdc inet dhcp
wireless-essid HPDC
wireless-key off
# Villeurbane
iface dromadaire inet dhcp
#adress 192.168.0.2
#gateway 192.168.0.254
# real :
#pre-up ifconfig $IFACE hw ether 00:0c:f6:14:1d:9f
# fake :
pre-up ifconfig $IFACE hw ether 00:0c:f6:14:1d:9e
wireless-essid dromadaire
wireless-key AB:25:47:DF:0C
iface gre-ALICE-1336F9 inet dhcp
pre-up ifconfig $IFACE hw ether 00:09:5B:E8:9D:71
wireless-essid ALICE-1336F9
wireless-key 58:F8:9B:0D:97:E8:D1:D7:54:4B:0F:74:6D
iface laennec inet static
address 134.214.22.168
netmask 255.255.252.0
gateway 134.214.20.1
dns-nameservers 134.214.100.6 134.214.100.245
iface ovpn-danjean inet dhcp
pre-up /etc/init.d/openvpn start client
post-down /etc/init.d/openvpn stop client
iface fettar_fixe inet dhcp
pre-up ifconfig $IFACE hw ether 00:09:5B:E8:9D:71
# real :
# pre-up ifconfig $IFACE hw ether 00:14:a4:61:ab:a2
wireless-essid fettar_fixe
wireless-key 16:06:19:70:09:10:19:68:03:12:20:00:11
# gateway 192.168.0.254
iface Livebox-a886 inet dhcp
wireless-essid Livebox-a886
wireless-key C1FA96F24F4771A33A43719422
wireless-channel 10
iface freebox inet static
address 192.168.14.10
netmask 255.255.255.0
gateway 192.168.14.254
dns-nameservers 212.27.54.252
iface linksys inet static
address 192.168.1.2
netmask 255.255.255.0
iface jym1 inet dhcp
wireless-wpa
8%wa,RyCcJd,@>d;4{Am60w0LT<6p!j)lXLUw8XG,4rp:&,X(JCqhnKTuUr%03E
wireless-essid Kazenotani
iface jym inet dhcp
wireless-wpa s*P%v)sEtXVDX,VY6aW_17uJ 6Aelbmox~.{;!~WXzgqtA^uc%d
1-Tl,L^WaP!
wireless-essid Kazenotani
iface voisin-jym inet dhcp
pre-up ifconfig $IFACE hw ether 00:1F:3A:74:69:C9
# real :
# pre-up ifconfig $IFACE hw ether 00:14:a4:61:ab:a2
wireless-essid Livebox-efbf
wireless-key 46:69:A3:F3:A6:CE:E2:D9:EF:5D:12:E5:7E
# gateway 192.168.0.254
iface voisin-jym2 inet dhcp
pre-up ifconfig $IFACE hw ether 00:1F:3A:74:69:C9
# real :
# pre-up ifconfig $IFACE hw ether 00:14:a4:61:ab:a2
wireless-essid Livebox-efbf
wireless-wpa 4669A3F3A6CEE2D9EF5D12E57E
# gateway 192.168.0.254
iface anne inet dhcp
wireless-wpa quow7quiurryikqueepr
wireless-essid NEUF_A8F4
iface barcelone inet dhcp
pre-up ifconfig $IFACE hw ether 00:1F:3A:74:69:C9
wireless-essid barcelone
wireless-key 67:CB:D9:6A:C6
iface portblanc inet dhcp
wireless-essid Wanadoo_988d
wireless-key 73D364C9C26396CA6C9D347D5D
iface valloire inet dhcp
#pre-up ifconfig $IFACE hw ether 00:0C:F1:54:B1:4E
#pre-up ifconfig $IFACE hw ether 00:0C:F1:B2:4E:54
pre-up ifconfig $IFACE hw ether 00:0C:F1:4E:B2:54
wireless-essid Livebox-2404
wireless-key 19627F41A6D26714165A7AA51F
iface ricm3 inet dhcp
pre-up ifconfig $IFACE hw ether 00:18:8B:AA:E3:39
iface brasil inet static
pre-up ifconfig $IFACE hw ether 00:0c:f6:14:1d:9e
address 10.1.1.47
netmask 255.255.255.0
gateway 10.1.1.1
dns-nameservers 10.1.2.1
iface brasil2 inet dhcp
pre-up ifconfig $IFACE hw ether 00:0c:f6:14:1d:9e
iface villeurbanne inet dhcp
wireless-essid Livebox-B54B
#wireless-key F3E94D40694D4EBB23F5DF59F9
wireless-key E5FC9627F6F25F6E96AA97F321
#wpa-psk
eed93ed5d10895ac4f6f502096ffb283076f1e5dd8174103c762c3b4beaee72d
#wpa-ssid Livebox-E508
#wireless-key F69E457C43C417CFDA56346659
#wireless
iface br-lan-bridge inet manual
up env IF_BRIDGE_PORTS=dummy0 IFACE=br-lan \
/usr/share/bridge-utils/ifupdown.sh
down env IF_BRIDGE_PORTS=dummy0 IFACE=br-lan
/usr/share/bridge-utils/ifupdown.sh
bridge_stp on
bridge_maxwait 0
iface br-lan inet dhcp
iface dnsmasq inet static
up /etc/init.d/dnsmasq restart
up iptables -A FORWARD -i $IFACE -o wlan0 -m state --state
ESTABLISHED,RELATED -j ACCEPT
up iptables -A FORWARD -i $IFACE -o wlan0 -j ACCEPT
up iptables -t nat -A POSTROUTING -o wlan0 -j MASQUERADE
up echo 1 > /proc/sys/net/ipv4/ip_forward
address 192.168.0.1
netmask 255.255.255.0
down /etc/init.d/dnsmasq stop
down iptables -t nat -F
down iptables -F
--- up and down scripts installed:
/etc/network/if-down.d:
total 16
-rwxr-xr-x 1 root root 1015 Apr 13 2015 avahi-autoipd
-rwxr-xr-x 1 root root 372 Nov 23 2014 openvpn
-rwxr-xr-x 1 root root 800 Jan 9 2017 postfix
-rwxr-xr-x 1 root root 256 Mar 25 2013 resolvconf
lrwxrwxrwx 1 root root 32 Oct 19 10:35 wpasupplicant ->
../../wpa_supplicant/ifupdown.sh
/etc/network/if-post-down.d:
total 8
lrwxrwxrwx 1 root root 42 Oct 11 18:28 openvswitch ->
/usr/share/openvswitch/scripts/ifupdown.sh
-rwxr-xr-x 1 root root 907 Feb 4 2012 vde2
-rwxr-xr-x 1 root root 1409 Mar 24 2016 wireless-tools
lrwxrwxrwx 1 root root 32 Oct 19 10:35 wpasupplicant ->
../../wpa_supplicant/ifupdown.sh
/etc/network/if-pre-up.d:
total 16
-rwxr-xr-x 1 root root 344 Aug 21 2011 ethtool
lrwxrwxrwx 1 root root 42 Oct 11 18:28 openvswitch ->
/usr/share/openvswitch/scripts/ifupdown.sh
-rwxr-xr-x 1 root root 1793 Feb 4 2012 vde2
-rwxr-xr-x 1 root root 4191 Sep 15 2018 wireless-tools
lrwxrwxrwx 1 root root 32 Oct 19 10:35 wpasupplicant ->
../../wpa_supplicant/ifupdown.sh
/etc/network/if-up.d:
total 28
-rwxr-xr-x 1 root root 817 Mar 25 2013 000resolvconf
-rwxr-xr-x 1 root root 923 Apr 13 2015 avahi-autoipd
-rwxr-xr-x 1 root root 1685 Nov 23 2014 ethtool
-rwxr-xr-x 1 root root 4938 Aug 14 2020 mountnfs
-rwxr-xr-x 1 root root 385 Jul 7 2015 openvpn
-rwxr-xr-x 1 root root 1117 Jan 9 2017 postfix
lrwxrwxrwx 1 root root 32 Oct 19 10:35 wpasupplicant ->
../../wpa_supplicant/ifupdown.sh
-- System Information:
Debian Release: bookworm/sid
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500,
'oldstable-updates'), (500, 'unstable'), (500, 'testing'), (500, 'stable'),
(500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386, armel, mipsel
Kernel: Linux 5.14.0-4-amd64 (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
Versions of packages ifupdown depends on:
ii adduser 3.118
ii iproute2 5.15.0-1
ii libc6 2.32-4
ii lsb-base 11.1.0
Versions of packages ifupdown recommends:
ii isc-dhcp-client [dhcp-client] 4.4.1-2.3
Versions of packages ifupdown suggests:
ii ppp 2.4.9-1+1
pn rdnssd <none>
-- no debconf information