Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

How can one ensure that PPTP / OpenVPN will not allow clients connected to the tunnels to be able to interact with each others?

I never enabled bridging and enabled the following in iptables

iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE iptables -A FORWARD -i tun0 -o eth0 -j ACCEPT iptables -A FORWARD -i eth0 -o tun0 -j ACCEPT

share|improve this question
add comment

1 Answer

As I know on OpenVPN it turned off by default. If you want to enable it you must add client-to-client to openvpn server config. Is applicable when running in routed mode (tun). If you're using bridged mode (tap), there doesn't seem to be an easy method to control client-to-client connections.

With PPTP you could block clients with iptables

# iptables -I FORWARD -s 10.8.0.0/24 -d 10.8.0.0/24 -j DROP
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.