aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts
diff options
context:
space:
mode:
Diffstat (limited to 'sysconfig/network-scripts')
-rwxr-xr-xsysconfig/network-scripts/ifup-eth19
-rwxr-xr-xsysconfig/network-scripts/ifup-post13
2 files changed, 0 insertions, 32 deletions
diff --git a/sysconfig/network-scripts/ifup-eth b/sysconfig/network-scripts/ifup-eth
index b488d272..5bbdb713 100755
--- a/sysconfig/network-scripts/ifup-eth
+++ b/sysconfig/network-scripts/ifup-eth
@@ -128,14 +128,6 @@ if [ -n "${MTU}" ]; then
ip link set dev ${DEVICE} mtu ${MTU}
fi
-# Is there a firewall running, and does it look like one we configured?
-FWACTIVE=
-if iptables -L -n 2>/dev/null | LC_ALL=C grep -q RH-Lokkit-0-50-INPUT ; then
- FWACTIVE=1
-else
- modprobe -r iptable_filter >/dev/null 2>&1
-fi
-
# Remove any temporary references which were previously added to dhclient config
if [ -w /etc/dhclient-${DEVICE}.conf ] && [ -x /sbin/dhclient ] ; then
LC_ALL=C grep -v "# temporary RHL ifup addition" /etc/dhclient-${DEVICE}.conf > /etc/dhclient-${DEVICE}.conf.ifupnew 2> /dev/null
@@ -195,24 +187,13 @@ if [ -n "${DYNCONFIG}" ]; then
/sbin/ethtool -s ${REALDEVICE} $ETHTOOL_OPTS
fi
- # DHCP clients need DNS to be available, and we don't know
- # what DNS server they're using until they are done.
- FWHACK=
- if [ -n "$FWACTIVE" -a "$FIREWALL_MODS" != "no" ]; then
- iptables -I RH-Lokkit-0-50-INPUT -m udp -s 0/0 --sport 53 -d 0/0 --dport 1025:65535 -p udp -j ACCEPT
- FWHACK=1
- fi
-
if [ -x /sbin/dhclient ] && /sbin/dhclient ${DHCLIENTARGS} ${DEVICE} ; then
echo $" done."
else
echo $" failed."
- [ -n "$FWHACK" ] && iptables -D RH-Lokkit-0-50-INPUT -m udp -s 0/0 --sport 53 -d 0/0 --dport 1025:65535 -p udp -j ACCEPT
exit 1
fi
- [ -n "$FWHACK" ] && iptables -D RH-Lokkit-0-50-INPUT -m udp -s 0/0 --sport 53 -d 0/0 --dport 1025:65535 -p udp -j ACCEPT
-
# DHCP likes to create duplicate routes. Fix that up.
NUMDEFROUTES=`ip -o route | \
awk '/^default/ { nlines++ } END { print nlines }'`
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 \