0

I config OpenVPN service on CentOS 7 and Clients could connect to the server with no problem.
the problem occurred when OpenVPN server connect to another VPN(openconnet VPN).at this time clients lost internet while the server has internet.
I added forwarding rule between OpenVPN and OpenConnect in iptables.
-A INPUT -s tun0 -o tun1 -j ACCET and vise verse.

what is the reason?

  • Did you also set up a NAT rule? – derobert Jul 10 '17 at 15:47
  • NAT for what? if you meant for Openvpn it is correct, but if meant for next Vpn please give more explanation. – Hossein Vatani Jul 10 '17 at 15:59
  • 1
    A NAT rule for the traffic you're trying to forward from tun0 to tun1. It's not always required, but if openconnect is some random VPN for privacy provider, it is. – derobert Jul 10 '17 at 16:21
  • excellent, it is worked now. – Hossein Vatani Jul 11 '17 at 5:15
2

regarding derober comment, it correct.
-A POSTROUTING -s OpenVpnRange -o OpenConnectNICName -j MASQERADE

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.