I was wondering if anyone could give me a little advice regarding IPCOP and P2P software.
I have setup several Cop-Boxes using the very useful P2PBlock by Markus Hoffman, this works very well, however, the networks I setup are all wireless and although this frees up the broadband bandwidth, anyone still using p2p software continues to flood the firewall and access points.
What I wanted to do (possibly in conjunction with p2pblock) is create some iptable rules which detect p2p usage from a user and when they try to access web pages will redirect them to a page warning them to disable their p2p software and deny them internet access for a certain amount of time.
Being a noobie at iptables, could you have a look at these rules I have come across and advise as to wheather they could be used/modified to suit (I have not written them I found them)
#Detect all other traffic from blocked P2P users, DROP for 180 seconds
iptables -I FORWARD -d ! $WARNPAGEIP -m recent --name P2PBLOCKEDUSERS --rcheck --seconds $TIME2BLOCK -j DROP
# End of filtering
# Redirect Rules
#redirect a peer to peer users http sessions to a warning page for 180 seconds, drop all other traffic
iptables -t nat -A PREROUTING -p tcp --dport 80 -m recent --name P2PBLOCKEDUSERS --rcheck --seconds $TIME2BLOCK -j DNAT --to $WARNPAGEIP
# End of Redirect Rules
Would really appreaciate any input as this problem is driving me nuts!
The administrator has disabled public write access.