Answer the question
In order to leave comments, you need to log in
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"
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
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -s 192.168.100.0/24 -o eth0 -j MASQUERADE
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question