OPNsense Forum

English Forums => Virtual private networks => Topic started by: jimjohn on December 07, 2021, 04:26:08 PM

Title: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: jimjohn on December 07, 2021, 04:26:08 PM
Hi all,

I am driving myself crazy on this. Got two sites that I want to connect with each other for backup purposes via OpenVPN. Each site has a unit connected directly to the respective interface on the OPNsense (both sites have OPNsenses).

a) I could get the connection up (see screenshot) but I am not able to ping from OPNsense A to OPNsense B. I guess I am messing something up with my firewall rules. What am I doing wrong?

b) On OPNsense B I got 2 additional gateways, one for IPv4 and one for IPv6, after creating the OpenVPN client. However, I am not using IPv6 on either of the OPNsenses and OPNsense A only has one gateway for IPv4. How can I get rid of the additional IPv6 gateway?

Thanks for your help.
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: jimjohn on December 08, 2021, 05:42:49 PM
Sorry for pushing, but no idea at all? Anyone? Still could not figure that out ...  :( :( :(
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: chemlud on December 08, 2021, 05:52:21 PM
I guess the fw rules are only for the tunnel net/IP. you need allow rules for the respective remote networks you want to connect from...
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: jimjohn on December 08, 2021, 08:29:28 PM
Quote from: chemlud on December 08, 2021, 05:52:21 PM
I guess the fw rules are only for the tunnel net/IP. you need allow rules for the respective remote networks you want to connect from...

What do you mean? Can you give an example?
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: chemlud on December 08, 2021, 09:03:17 PM
In your fw rule on the openVPN tab you need the respective REMOTE network as SOURCE and the respective LANnet as TARGET. In your two fw rules you have the same source net on both sides.
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: jimjohn on December 08, 2021, 09:13:55 PM
Quote from: chemlud on December 08, 2021, 09:03:17 PM
In your fw rule on the openVPN tab you need the respective REMOTE network as SOURCE and the respective LANnet as TARGET. In your two fw rules you have the same source net on both sides.

That is exactly what I did here, isn't it?
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: chemlud on December 08, 2021, 09:18:26 PM
no, in your overview.png I see two rules with identical source and target nets, no idea which rule/net is on which side of the tunnel.
Title: Re: OpenVPN Site-to-Site Tunnel UP but no connection
Post by: jimjohn on December 08, 2021, 09:53:04 PM
Well, you have been right. Now it works ... Thanks!