aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig/network-scripts/ifup-post
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2003-03-13 01:17:02 +0000
committerBill Nottingham <notting@redhat.com>2003-03-13 01:17:02 +0000
commit9e3bccf1d0671f2164510690a88e5b5d3eec2da1 (patch)
tree73b237c67349f56ffb1839f898ed3c8246eae3d1 /sysconfig/network-scripts/ifup-post
parent8e7d59c0aa7cd24b57f0d59521b7a9f87ed0b8df (diff)
downloadinitscripts-9e3bccf1d0671f2164510690a88e5b5d3eec2da1.tar
initscripts-9e3bccf1d0671f2164510690a88e5b5d3eec2da1.tar.gz
initscripts-9e3bccf1d0671f2164510690a88e5b5d3eec2da1.tar.bz2
initscripts-9e3bccf1d0671f2164510690a88e5b5d3eec2da1.tar.xz
initscripts-9e3bccf1d0671f2164510690a88e5b5d3eec2da1.zip
revert. chain name change was reverted.
Diffstat (limited to 'sysconfig/network-scripts/ifup-post')
-rwxr-xr-xsysconfig/network-scripts/ifup-post6
1 files changed, 3 insertions, 3 deletions
diff --git a/sysconfig/network-scripts/ifup-post b/sysconfig/network-scripts/ifup-post
index 35b62622..2fbafbfb 100755
--- a/sysconfig/network-scripts/ifup-post
+++ b/sysconfig/network-scripts/ifup-post
@@ -83,12 +83,12 @@ if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
fi
if [ "$FIREWALL_MODS" != "no" -a -f /etc/sysconfig/iptables ] && \
- iptables -L -n 2>/dev/null | grep -q RH-Lokkit-0-50 ; then
+ 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 -n | grep -q $nameserver ; then
- iptables -I RH-Lokkit-0-50 -m udp -s $nameserver/32 --sport 53 -d 0/0 --dport 1025:65535 -p udp -j ACCEPT
+ if ! iptables -L RH-Lokkit-0-50-INPUT -n | grep -q $nameserver ; 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