Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a requirement where I need a number of clients to connnect to an VPN. The clients should only be able to connect to other clients on the VPN - no other traffic should pass over the VPN. In particular, no traffic should pass through the server to non-VPN endpoints.

Can I set up openVPN this way?

Even better would be to have two classes of clients (Actresses and Bishops, say). Only Actresses should be able to connect to Bishops. Bishops can't connect to Actresses or other Bishops, and Actresses shouldn't be able to connect to other Actresses.

Is this possible too?

share|improve this question
up vote 1 down vote accepted

Sure - give out addresses to each "class" of client from two separate DHCP ranges, and then create iptables rules to restrict traffic however you need.

share|improve this answer

Your Answer


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.