Bug#378714: vlan: installing package breaks proxy-arp config [sarge]
Package: vlan
Version: 1.8-1
Severity: critical
Tags: patch
In my network/interfaces I have:
iface aussen inet static
address 172.23.118.4
[..]
up echo 1 > /proc/sys/net/ipv4/conf/aussen/proxy_arp
which worked perfectly fine until I installed the vlan package.
The script /etc/network/if-up.d/ip installed by the vlan package resets proxy
arp:
|run-parts: executing /etc/network/if-up.d/a-cat-proxy-arp
|1
|run-parts: executing /etc/network/if-up.d/ip
|run-parts: executing /etc/network/if-up.d/ipXX-cat-proxy-arp
|0
Needless to say this breaks the system.
Note that this applies to stable only. It appears to be fixed in unstable
(1.9-1) with a new ip script:
--- ip.orig 2006-07-18 16:16:44.344499361 +0200
+++ /etc/network/if-up.d/ip 2006-03-19 13:38:24.000000000 +0100
@@ -1,18 +1,21 @@
#!/bin/sh
# This should probably go into ifupdown
# But usually only those with lots of interfaces (vlans) need these
-if [ -d /proc/sys/net/ipv4/conf/$IFACE ]
+if [ -d "/proc/sys/net/ipv4/conf/$IFACE" ]
then
- if [ -n "$IF_IP_PROXY_ARP" ] && [ "$IF_IP_PROXY_ARP" -eq "1" ]
- then
- echo 1 > /proc/sys/net/ipv4/conf/$IFACE/proxy_arp
- else
- echo 0 > /proc/sys/net/ipv4/conf/$IFACE/proxy_arp
+ if [ -n "$IF_IP_PROXY_ARP" ]; then
+ if [ "$IF_IP_PROXY_ARP" -eq "1" ]; then
+ echo 1 > "/proc/sys/net/ipv4/conf/$IFACE/proxy_arp"
+ else
+ echo 0 > "/proc/sys/net/ipv4/conf/$IFACE/proxy_arp"
+ fi
fi
- if [ -n "$IF_IP_RP_FILTER" ] && [ "$IF_IP_RP_FILTER" -eq "0" ]
- then
- echo 0 > /proc/sys/net/ipv4/conf/$IFACE/rp_filter
- else
- echo 1 > /proc/sys/net/ipv4/conf/$IFACE/rp_filter
+ if [ -n "$IF_IP_RP_FILTER" ]; then
+ if [ "$IF_IP_RP_FILTER" -eq "0" ]; then
+ echo 0 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter"
+ else
+ echo 1 > "/proc/sys/net/ipv4/conf/$IFACE/rp_filter"
+ fi
fi
fi
+
Maybe we could fix this for the next stable point release? (Cced d-release)
Peter
Reply to: