Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

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 server A that is running OpenVPN server, and a server B connected to it. Then on B I have eth0, the physical interface, and tap0, created by OpenVPN. I want some ip to go with eth0 while others go with tap0. This has been successfully achieved by adding route rules with the 'route' command.

But there are more.

The server B is running a pptpd server with many clients. I want the clients to go with the same rule as described above. But I don't know how to configure it.

I was using iptables rules to redirect packages from pptp subnet ( to eth0 when there is no tap0, and it worked well.

iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE

Now I have tap0 and I want some of the packages to go to tap0.

How should I do?

share|improve this question
PPTP connections do not have functionality to push routes to the client, but I'm not 100% sure that's what you're asking about. – fukawi2 Dec 17 '12 at 5:16

Your Answer


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

Browse other questions tagged or ask your own question.