Super User is a question and answer site for computer enthusiasts and power users. 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

So I've configured openvpn to another server and I can now successfully start the process on ubuntu and it says I am connected. However, if I try to SSH to other servers or access privileged websites (only within the VPN), I don't have any luck. Is there usually any further I need to do to get traffic tunnelled through the openvpn service when it is running?

share|improve this question

Let us see your log-files, please.

Have you enabled IP forwarding? Masquerade in iptables of server? If not, I think, you should look this manual, as I did-

I pushed my traffic by these commands:

  1. Edit in /etc/sysctl.conf - net.ipv4.ip_forward = 1
  2. IPtables rules:

    iptables -A FORWARD -i eth0 -o tun0 -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -A FORWARD -s -o eth0 -j ACCEPT
    iptables -t nat -A POSTROUTING -s -o eth0 -j MASQUERADE

Where is your internal network, which you defined in server.conf on this line


Also, add this to your server.conf file

# If you want push all your client's traffic through VPN
push "redirect-gateway" def1 bypass-dhcp"

#Or limit by ip-addres of destination
push "route"
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .