OPNsense Forum

English Forums => Virtual private networks => Topic started by: crissi on November 25, 2021, 05:12:09 pm

Title: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: crissi on November 25, 2021, 05:12:09 pm
Hello,

im trying to Setup OpenVPN Client Connection. But every time I create the connection, under System – Gateways – Single there are 2 Gateways automatically created, one for IPv4 and one for IPv6.

Is there a option to disable the automatic Gateway creation for the IPv6 Gateway?

Thx!
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: TParker31 on December 28, 2021, 04:50:10 am
Did you ever figure this out? I have the same issue.
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: crissi on December 28, 2021, 09:26:10 am
Unfortunately not. As i have several OpenVPN Connections, the solution for me is still just Disable the auto created IPv6 Gateways..
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: TParker31 on December 28, 2021, 04:07:04 pm
That's what i have done, please let us know if this option becomes available in the future.

I know this option is available in pfsense, which almost always means it's already in opnsense, but often located under a different menu.
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: crissi on January 13, 2022, 06:13:58 pm
Interesting is, when creating in PF Sense under OpenVPN - Client Connection almost at the Bottom is the Functionality to choose if IPv4 or IPv6 or both Gateways should be created (Default Both), why is this still missing in opnsense?
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: Panja on March 08, 2022, 02:26:23 pm
Having the same exact issue on my freshly installed OPNsense (still in transition).
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: franco on March 10, 2022, 01:53:09 pm
I'm sorry, I'm not exactly following. What's the difference between disabling the gateway and disabling it?


Cheers,
Franco
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: crissi on March 12, 2022, 07:57:46 am
When creating OpenVpn Client Connection, IPv4 and IPv6 Gateway is created. There should be the option as in PF-Sense to chose if just IPv4 or IPv6 or Both are created.

And for now, even if the IPv6 Gateways are not want / needed they are present under Gateways, and cannot be deleted afterwards (only disabled), or is there a workaround to delete them?

Thx
Title: Re: Prevent Ipv6 auto Gateway creation OpenVpn
Post by: wewall on March 19, 2022, 12:13:44 pm
If someone can find a solution please let us know!
I've tested the following 4 parameters in the advanced configuration:

push-filter ignore ipv6-route
push-filter ignore ifconfig-ipv6
push-remove ifconfig-ipv6
push-remove route-ipv6

But unfortunately none of them work.