OPNsense Forum

Archive => 17.7 Legacy Series => Topic started by: hongo on November 13, 2017, 11:19:47 am

Title: OpenVPN as Client: Routingproblems
Post by: hongo on November 13, 2017, 11:19:47 am
Hi,
I am a little bit lost with my openvpn configuration. I configured opnsense as a openvpn-client. The tunnel is "UP". I configured an interface with ovpnc1, created a gateway(with dhcp because openvpn pushes all the config) and even created a static route for the remote-network. I even created a few rules for lan-network and outbound-nat. But I am not able to ping from the lan-network into the remote-vpn-network. traceroute tells me, that opnsense routes even the traffic for the vpn to the defaultgateway instead of the vpn-gateway. If I connect via ssh to opnsense and try to ping the remote-vpn from there, it works as considered. I have no clue why opnsense routes my vpn-traffic to the defaultgw instead of the vpngw.
Any ideas?
Title: Re: OpenVPN as Client: Routingproblems
Post by: Oxygen61 on November 13, 2017, 10:03:28 pm
Hi hongo,

not really a clue, but please double check that all your firewall rules from "LAN" to external (Internet/!RFC1918), are having a "gateway" set inside of the rule.

Cheers
Oxy
Title: Re: OpenVPN as Client: Routingproblems
Post by: hongo on November 14, 2017, 10:34:04 pm
Explicitly setting the gateway on all rules of the lan interface solved the problem. Thank you very much!