iw4p / OpenConnect-Cisco-AnyConnect-VPN-Server-OneKey-ocserv

[Script and Docker 🐳] OpenConnect (Cisco AnyConnect) VPN Server (OCServ) script one key easy configurator and installer
255 stars 134 forks source link

cant access to server Internet #3

Closed mahansalimi closed 3 years ago

mahansalimi commented 3 years ago

after install on ubonto 16.04, i can connect suscessfuly by android openconnect app to server ,but cant access to internet rx data is 0 byte how i can solve this problem?

iw4p commented 3 years ago

Please check this out: VPN is connected but still can't open any site Also, check the Ocserv port is open and accessible on your VPS.

mahansalimi commented 3 years ago

i could solve problem with this line:

1: sudo iptables -t nat -A POSTROUTING -j MASQUERADE

2:and save rule by this line sudo apt-get install iptables-persistent