Hello,
i recently installed an OpenVPN server on my Debian 7 Wheezy dedicated server.
After i created and installed the required certificates, i could successfully connect to the machine.
With a few server.conf modifications and ipv4 port forwarding i could even route the internet traffic through the VPN. (Received the server IP when accessing whatsmyip)
The strange thing is, even with the usual Port Forwarding and OpenVPN server settings i can't route
all kind of traffic.
While the Browser traffic is working properly, the traffic from some
other applications won't work through the VPN connection.
For example Skype or Teamspeak will still use my uncovered IP from my ISP, even though I have successfully connected to my VPN server and the browser traffic is going through the tunnel. (Whatsmyip will show me the IP of the OpenVPN server!)
I really hope you can help me to fix that problem 8-)
Here are my OpenVPN server/client settings:
Client:
client
dev tun
proto udp
remote mydomain.com 1194 # use IP or hostname
resolv-retry infinite
nobind
user nobody
group nogroup
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
;tls-auth ta.key 1
ns-cert-type server
cipher AES-256-CBC
comp-lzo
verb 3
pull dhcp-options
status openvpn-status.log
;auth-user-pass
redirect-gateway def1
Server:
port 1194
proto udp
dev tun
ca pathtomykeys/ca.crt
cert pathtomykeys/server.crt
key pathtomykeys/server.key # This file should be kept secret
dh pathtomykeys/dh1024.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
push "redirect-gateway def1"
client-to-client
cipher AES-256-CBC
comp-lzo
max-clients 3
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
log /var/log/openvpn.log
verb 3