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?

4
  • Did you also set up a NAT rule?
    – derobert
    Jul 10, 2017 at 15:47
  • NAT for what? if you meant for Openvpn it is correct, but if meant for next Vpn please give more explanation. Jul 10, 2017 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, 2017 at 16:21
  • excellent, it is worked now. Jul 11, 2017 at 5:15

1 Answer 1

2

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .