aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-15 16:22:47 +0000
committerBill Nottingham <notting@redhat.com>2005-04-15 16:22:47 +0000
commit761f40d8e5576ab8b0c42776866d1b10f21ddaf5 (patch)
tree17e2333f18c61a059ed1faae3c852acc87805043 /sysconfig/network-scripts/ifup-post
parentd915440414cde20c90151fd8099c45e6df2a6f9b (diff)
downloadinitscripts-761f40d8e5576ab8b0c42776866d1b10f21ddaf5.tar
initscripts-761f40d8e5576ab8b0c42776866d1b10f21ddaf5.tar.gz
initscripts-761f40d8e5576ab8b0c42776866d1b10f21ddaf5.tar.bz2
initscripts-761f40d8e5576ab8b0c42776866d1b10f21ddaf5.tar.xz
initscripts-761f40d8e5576ab8b0c42776866d1b10f21ddaf5.zip
remove support for the old firewall type
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post13
1 files changed, 0 insertions, 13 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 77b678bc..cf07130b 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -71,19 +71,6 @@ if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
fi
fi
-if [ "$FIREWALL_MODS" != "no" -a -f /etc/sysconfig/iptables ] && \
- iptables -L -n 2>/dev/null | grep -q RH-Lokkit-0-50-INPUT ; then
- ns=`awk '/^nameserver / { print $2 }' /etc/resolv.conf`
- if [ -n "$ns" ]; then
- for nameserver in $ns ; do
- if ! iptables -L RH-Lokkit-0-50-INPUT -n | grep -q "$nameserver.* --sport 53 " ; then
- iptables -I RH-Lokkit-0-50-INPUT -m udp -s $nameserver/32 --sport 53 -d 0/0 --dport 1025:65535 -p udp -j ACCEPT
- [ -x /usr/bin/logger ] && logger $"punching nameserver $nameserver through the firewall"
- fi
- done
- fi
-fi
-
# don't set hostname on ppp/slip connections
if [ "$2" = "boot" -a \
"${DEVICE}" != lo -a \