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
how to block P2P traffic
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
- maikcat
- Forum Team
- Posts: 4200
- Joined: Wed Jan 12, 2011 9:23 am
- Location: Athens,Greece
- Contact:
Re: how to block P2P traffic
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.
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"
Long live Dino Dini (Kick off 2 Creator)
Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)
"objects in mirror are losing"
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Aug 02, 2011 10:36 am
Re: how to block P2P traffic
Try setup suricata IDS/IPS on the server and get snort P2P rules. It works fine.
http://www.openinfosecfoundation.org/
http://www.openinfosecfoundation.org/
- Bebop
- Forum Team
- Posts: 301
- Joined: Wed Dec 15, 2010 9:24 pm
Re: how to block P2P traffic
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:nhu wrote:how can i configure the openvpn server to block P2P

Source: https://blog.torproject.org/running-exit-node
The cure for boredom is curiosity
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Mar 20, 2012 5:25 am
Re: how to block P2P traffic
Hi,Bebop wrote: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:nhu wrote:how can i configure the openvpn server to block P2P
Source: https://blog.torproject.org/running-exit-node
I'm newbie do you have any reference how can I only allow the 80, 443, and 53 ports?
Thanks
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: how to block P2P traffic
this is not an OpenVPN question but a firewalling/routing question. On Linux you'd use iptables for this.