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'm trying to make computes on local network accessible for VPN clients. My server is available on from VPN but I can't connect to other computers on local network of the server. How can I do this? Server has internal IP address on network and I want connect to from VPN.

    mode server
    port 27015
    proto tcp-server
    dev tap0
    ##dev tun0


    ca /etc/openvpn/cert/cacert.pem
    cert /etc/openvpn/cert/cert.pem
    key /etc/openvpn/cert/key.pem
    dh /etc/openvpn/cert/dh1024.pem

    log-append /var/log/openvpn
    status /tmp/vpn.status 10

    user root
    group root
    verb 3

    keepalive 1 220

netstat:         UG        0 0          0 eth0   U         0 0          0 tap0   U         0 0          0 eth0
share|improve this question

Assuming the must-haves are in place (the server is happy to forward traffic, it has no iptables rules preventing this), then as with every IP conversation, there are two important traffic directing steps that must be taken: the client must know that it should use the VPN tunnel to talk to the remote system, and the remote system must know that it should use the VPN tunnel to reply.

The former is achieved by telling your openvpn server to advertise a route to the office network, to the clients, with the following statement in server's openvpn.conf:

push "route"

The latter is achieved either by having all the remote systems use the openvpn server as their default gateway or by setting routes back to the openvpn address space via the server. Assuming that the remote openvpn server is not already the office default gateway, the route can be set by doing

route add -net gw

on the server

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.