2

In my linux VPS, I want access to special web service that check my VPS IP, so i must use VPN. but when establishing my VPN using openconnect , I'm lost ssh and control over my VPS ? any workaround to have VPN and access to my server public IP ?

0

when you connect through VPN you lose route back to your ssh connection so you have to add route to keep this connection out of VPN tunnel.

ip rule add table 128 from <public-ip>
ip route add table 128 to <public ip subnet> dev eth0
ip route add table 128 default via <gateway>

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.