diff options
author | Bill Nottingham <notting@redhat.com> | 2012-12-07 15:57:07 -0500 |
---|---|---|
committer | Bill Nottingham <notting@redhat.com> | 2012-12-07 15:57:07 -0500 |
commit | fb15854e3e7ff889a63cfefb0b67cfc827d47703 (patch) | |
tree | cf5823c8a6469554f27c4d1ed45408f3107ff9b9 /sysconfig/network-scripts/ifup-eth | |
parent | daaf1b7eb9aad6b3410c8992e0b3991854e1de87 (diff) | |
download | initscripts-fb15854e3e7ff889a63cfefb0b67cfc827d47703.tar initscripts-fb15854e3e7ff889a63cfefb0b67cfc827d47703.tar.gz initscripts-fb15854e3e7ff889a63cfefb0b67cfc827d47703.tar.bz2 initscripts-fb15854e3e7ff889a63cfefb0b67cfc827d47703.tar.xz initscripts-fb15854e3e7ff889a63cfefb0b67cfc827d47703.zip |
Also do firewall zone poking before ifup-ipv6, for DHCPv6 (#802415, modified from <jpopelka@redhat.com>)
Diffstat (limited to 'sysconfig/network-scripts/ifup-eth')
-rwxr-xr-x | sysconfig/network-scripts/ifup-eth | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth index 4692f63e..032f6000 100755 --- a/sysconfig/network-scripts/ifup-eth +++ b/sysconfig/network-scripts/ifup-eth @@ -289,6 +289,11 @@ if [ -z "${NOZEROCONF}" -a "${ISALIAS}" = "no" -a "${REALDEVICE}" != "lo" ]; the ip route add 169.254.0.0/16 dev ${REALDEVICE} metric $((1000 + $(cat /sys/class/net/${REALDEVICE}/ifindex))) scope link fi +# Inform firewall which network zone (empty means default) this interface belongs to +if [ -x /usr/bin/firewall-cmd -a "${REALDEVICE}" != "lo" ]; then + /usr/bin/firewall-cmd --zone="${ZONE}" --change-interface="${DEVICE}" > /dev/null 2>&1 +fi + # IPv6 initialisation? /etc/sysconfig/network-scripts/ifup-ipv6 ${CONFIG} if [[ "${DHCPV6C}" = [Yy1]* ]] && [ -x /sbin/dhclient ]; then |