OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: anakein on October 19, 2022, 11:19:50 AM

Title: openVPN SOLVED
Post by: anakein on October 19, 2022, 11:19:50 AM
I have created a vpn server. connect with firewall disabled work fine.

Using the wizard, it creates the firewall rules for me, but they don't work.

If I put pfctl -d in the shell (firewall disabled), the vpn works correctly.

reviewing the logs I detect that the vpn only accesses via ipv6, even though ipv6 is disconnected, or ipv4 is over ipv6 in general settings.

if into vpn server device mode put tun, all vpn client use ipv6 but i want to use ipv4.

is this a bug?, can i connect with ipv4?.

thanks
Title: Re: openVPN bug?
Post by: arnoudvanderschans on October 19, 2022, 04:15:17 PM
Hi Anakein,

What are your firewall rules voor your openVPN interface?
You need to put an rule in that says your vpn network (when following the default setup i think it is 10.8.6.*) can look in de destination network, and if you want to let it connect trough your wan you need to give it some more speficied settings.

Title: Re: openVPN bug?
Post by: anakein on October 19, 2022, 06:19:34 PM
i used this example:

https://docs.opnsense.org/manual/how-tos/sslvpn_client.html

i have standard rules for vpn ( following how-to)

but don“t connect.
Title: Re: openVPN bug?
Post by: anakein on October 20, 2022, 12:30:21 AM
is fixed.

The problem was that the WAN interface had a dynamic IP. And could not connect, when changing to a fixed ip, everything works perfectly.