how to block P2P traffic

Scripts with setup, destroy, and modify routing tables and firewall rulesets for client connections.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
nhu
OpenVpn Newbie
Posts: 2
Joined: Thu Jul 21, 2011 3:06 pm

how to block P2P traffic

Post by nhu » Thu Jul 21, 2011 3:17 pm

Hello, i have Openvpn server to allow access to my network to a couple of people, but i want to prevent that this access will be use for P2P traffic. how can i configure the openvpn server to block P2P

Thank you

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: how to block P2P traffic

Post by maikcat » Thu Jul 21, 2011 3:35 pm

hi there,

blocking traffic is not openvpn job to do so...
you can use iptables to drop traffic based on source/dest-protocol combinations..

cheers,

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

anonyproz
OpenVpn Newbie
Posts: 1
Joined: Tue Aug 02, 2011 10:36 am

Re: how to block P2P traffic

Post by anonyproz » Tue Aug 02, 2011 10:53 am

Try setup suricata IDS/IPS on the server and get snort P2P rules. It works fine.

http://www.openinfosecfoundation.org/

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: how to block P2P traffic

Post by Bebop » Sun Sep 04, 2011 12:34 pm

nhu wrote:how can i configure the openvpn server to block P2P
Completely blocking P2P might be achieved by only allowing for TCP 443 (https), TCP 80 (http), and UDP 53 (dns) to forward out of the server, whilst blocking all other ports. A more flexible and reasonable approach will be this though:

Image

Source: https://blog.torproject.org/running-exit-node
The cure for boredom is curiosity

bersa
OpenVpn Newbie
Posts: 1
Joined: Tue Mar 20, 2012 5:25 am

Re: how to block P2P traffic

Post by bersa » Tue Mar 20, 2012 5:27 am

Bebop wrote:
nhu wrote:how can i configure the openvpn server to block P2P
Completely blocking P2P might be achieved by only allowing for TCP 443 (https), TCP 80 (http), and UDP 53 (dns) to forward out of the server, whilst blocking all other ports. A more flexible and reasonable approach will be this though:

Image

Source: https://blog.torproject.org/running-exit-node
Hi,

I'm newbie do you have any reference how can I only allow the 80, 443, and 53 ports?

Thanks

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: how to block P2P traffic

Post by janjust » Wed Mar 21, 2012 9:17 am

this is not an OpenVPN question but a firewalling/routing question. On Linux you'd use iptables for this.

Post Reply