wireless-net/trunk/sbin/gen-wlan-files.py
arekm
cvs at pld-linux.org
Wed Mar 1 11:17:18 CET 2006
Author: arekm
Date: Wed Mar 1 11:17:12 2006
New Revision: 7059
Modified:
wireless-net/trunk/sbin/gen-wlan-files.py
Log:
- REJECT p2p instead of DROPping.
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 Wed Mar 1 11:17:12 2006
@@ -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 peer2peer -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 REJECT" % (ip))
if is_ipp2p:
- os.system("iptables -A peer2peer -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 REJECT" % (ip))
if passwd == "apuser":
for iface in ap_iface:
More information about the pld-cvs-commit
mailing list