What's new

OpenVPN client:: public ssh (or ping) not working

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

adriansev

Occasional Visitor
Hi! It seems that all access to router public ip is lost after activating the openvpn client. (complete redirect)
I'm not sure how the routing tables and firewall is set, but wouldn't be possible to keep INPUT access to
the router public ip?

Thanks a lot!
Adrian
 
By default, any OpenVPN client connected to a commercial OpenVPN provider will direct all traffic to the VPN, both the router itself and the LAN clients. As a result, any attempt to remotely access devices bound to the VPN over the WAN will have its replies routed back over the VPN. But that's a violation of RPF (reverse-path filtering) as configured in the routing system, which requires all traffic to ingress and egress the network via the same network interface.

There are several ways to circumvent the problem, but the most common is to use Routing Policy to route specific clients over the VPN (even if that means the entire network, 192.168.1.0/24). By doing so, it will remove the router itself from the VPN, and ssh and other router-based services will once again become accessible over the WAN.

For other devices on the LAN, it's the same thing. You can't remotely access them over the WAN *and* bind them to the VPN at the same time. It's one or the other.
 
Last edited:
Thanks a lot! your answer is on point, all i want is that the internal network to be routed through vpn BUT to access the router through ssh for maintenance/support. Thanks a lot!
 

Similar threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top