E
E
Eugene2013-11-28 10:52:39
openvpn
Eugene, 2013-11-28 10:52:39

Why doesn't routing via openvpn work on ubuntu vps with ISPmanager lite?

There is a vps server with ubuntu and IspManager lite panel. Installed OpenVPN.
Through win7 connects to the server, I can work with server resources through OpenVPN.
But I can not enter the Internet, the sites do not open.
What I did to enable this feature:

#Определяем наш OpenVPN сервер в качестве шлюза по умолчанию
push "redirect-gateway" 
#Разрешаем соединения между клиентами
client-to-client
#добавляем маршруты
route 192.168.100.0 255.255.255.0
#Указываем DNS сервер
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"

Win7 client settings
client
 dev tun
 proto tcp
 remote *.*.*.21 1194 
 resolv-retry infinite
 nobind
 persist-key
 persist-tun 
ca E:/*/ca.crt
cert E:/*/s.crt
key E:/*/s.key
ns-cert-type server
 auth SHA1
 comp-lzo
 verb 3

Executed the command:
echo 1 > /proc/sys/net/ipv4/ip_forward
Entered in /etc/rc.local:
iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth0 -j MASQUERADE

Ping or tracert to ya.ru (for example) shows which ip we are connecting to, but then a timeout.
What to look at and fix so that you can surf the Internet through openvpn?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question