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 want to have the following things in my OpenVPN installation:

  • redirect internet access through the VPN
  • access the PCs on my local LAN

I figured out how the first works, but how do I assign a OpenVPN client an IP from within the network? Is it possible to redirect the traffic to my router, so tat my router serves the IPs?

Thank you!


share|improve this question
up vote 0 down vote accepted

You have two networks - one is you remote network and the other one is your OVPN network. If you like to access the whole remote network via OVPN connection you need to do a couple of things.

  1. You need to add "push route ..." command to the OVPN server config so it would push route command into OVPN clients computer so that computer would know how it can access your remote network via OVPN network.
  2. If OVPN server is not a default gateway of your remote network then you need to add a static route so default gateway would know how to access you OVPN subnet.
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.