Hello,
I installed on my server (Ubuntu14.04 LTS) openvpn with the help of the digitalocean tutorial/guide.
The VPN connection is working fine, only if I want to access other services(like for example an own game server) and I'm connected with the VPN it's not working. (Without VPN the connection to the game server is working, so the problem is not game server related)
I searched the forums already and I'm not able to figure out what is missing. Maybe I'm just missing something in my research 😛
Here is my configuration:
server.conf
port 1194
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 208.67.220.220"
keepalive 10 120
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
client.ovpn:
client
dev tun
proto udp
remote my-server 1194
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ns-cert-type server
comp-lzo
verb 3
netstat -nr:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
0.0.0.0 my-server-gw 0.0.0.0 UG 0 0 0 eth0
10.8.0.0 10.8.0.2 255.255.255.0 UG 0 0 0 tun0
10.8.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 tun0
my-server-gw-(ip-1) my-server-gw 255.255.255.224 UG 0 0 0 eth0
my-server-gw-(ip-1) 0.0.0.0 255.255.255.224 U 0 0 0 eth0
before.rules:
# START OPENVPN RULES
# NAT table rules
*nat
:POSTROUTING ACCEPT [0:0]
# Allow traffic from OpenVPN client to eth0
-A POSTROUTING -s 10.8.0.0/8 -o eth0 -j MASQUERADE
COMMIT
# END OPENVPN RULES
If you need more info, please ask 🙂
Thanks in advice