wireless-net/trunk/sbin/gen-wlan-files.py
arekm
cvs at pld-linux.org
Thu Dec 8 23:45:08 CET 2005
Author: arekm
Date: Thu Dec 8 23:45:06 2005
New Revision: 6626
Modified:
wireless-net/trunk/sbin/gen-wlan-files.py
Log:
Rename chain.
Modified: wireless-net/trunk/sbin/gen-wlan-files.py
==============================================================================
--- wireless-net/trunk/sbin/gen-wlan-files.py (original)
+++ wireless-net/trunk/sbin/gen-wlan-files.py Thu Dec 8 23:45:06 2005
@@ -114,8 +114,8 @@
else:
os.system("tc qdisc add dev %s root handle 1:0 cbq bandwidth 10mbit avpkt 1000 mpu 64" % iface)
-os.system("iptables -N p2p 2> /dev/null")
-os.system("iptables --flush p2p")
+os.system("iptables -N peer2peer 2> /dev/null")
+os.system("iptables --flush peer2peer")
os.system("iptables -N apchain 2> /dev/null")
os.system("iptables --flush apchain")
@@ -153,10 +153,10 @@
fpoid.write("%s\t\t%s%s-%s\t%s\n" % (ip, hostname[0], nr, login, "UNIX"))
if is_p2p:
- os.system("iptables -A p2p -p tcp -s %s -m connlimit --connlimit-above 10 -m p2p --p2p all -j DROP" % (ip))
+ os.system("iptables -A peer2peer -p tcp -s %s -m connlimit --connlimit-above 10 -m p2p --p2p all -j DROP" % (ip))
if is_ipp2p:
- os.system("iptables -A p2p -p tcp -s %s -m connlimit --connlimit-above 10 -m ipp2p --ipp2p -j DROP" % (ip))
+ os.system("iptables -A peer2peer -p tcp -s %s -m connlimit --connlimit-above 10 -m ipp2p --ipp2p -j DROP" % (ip))
if passwd == "apuser":
for iface in ap_iface:
@@ -209,7 +209,7 @@
fpipac.close()
fppap.close()
fp.close()
-os.system("iptables -A p2p -j RETURN")
+os.system("iptables -A peer2peer -j RETURN")
os.system("iptables -A apchain -j RETURN")
os.system("iptables -t mangle -A apchain -j RETURN")
os.system("/usr/sbin/fetchipac -S")
More information about the pld-cvs-commit
mailing list