rainyel
I need some advice/help on my openvpn. So I have 2 vps and I use the same conf & iptables on both vps. Both VPS1 & VPS2 can connect to openvpn but VPS2 cannot connect to the internet.
Here's my server 1194 conf:
dev tun
local 206.53.52.104
port 1194
proto udp
dev tun
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem
push "redirect-gateway def1"
push "dhcp-option DNS 208.67.222.222"
push "dhcp-option DNS 4.2.2.1"
keepalive 5 30
comp-lzo
persist-key
persist-tun
group daemon
daemon
Client conf
client
remote 206.53.52.104 1194
dev tun
comp-lzo
ca ca.crt
cert client1.crt
key client1.key
route-delay 2
route-method exe
redirect-gateway def1
dhcp-option DNS 10.8.0.1
verb 3
Iptables
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -j SNAT --to-source 206.53.52.104
iptables -t nat -A POSTROUTING -s 10.0.99.0/24 -j SNAT --to-source 206.53.52.106
Mimiko
I am wander, both vps are on same platform?
In client conf there is DNS defined, yet from server you push other DNSes. Does those DNS are reaceble? Does from both server ping to 8.8.8.8 work?
rainyel
I think they are different platform but from the same provider. I did ping to 8.8.8.8 on server and client. Both server responses and client on vps2 doesn't response when I ping. I think it's a firewall problem but I don't know what is wrong with it.