Hello, I had a problem with routing all traffic through the server, so I followed some of the suggestions in
this topic. I put the server on a Windows 7 pc and managed to route the traffic through the server, but now the speed is very low. I am not able to download anything because it's too slow (also when browsing web sites). Sorry for the probably stupid questions but I am very new to OpenVPN and Linux (reason why I put the server on a win pc).
These are my config files:
Server:
port 1194
proto udp
dev tun
;dev-node MyTap
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\server.key" # This file should be kept secret
dh "C:\\Program Files (x86)\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
comp-lzo
verb 5
Client:
client
dev tun
proto udp
remote 188.254.238.17 1194
route-gateway 10.8.0.6
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\client1.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\client1.key"
ns-cert-type server
comp-lzo
verb 3
push "redirect-gateway def1"
The line
route-gateway 10.8.0.6 is what made all the traffic from the client go through the server. So any tips on how to make it faster would be very appreciated! 🙂