OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: ledufakademy on November 14, 2020, 11:47:11 AM

Title: openVpn client + virtual IPs issue or bug ? help ...
Post by: ledufakademy on November 14, 2020, 11:47:11 AM
hum openSense is probably having a BIG bug !!!!

what is the best gateway conf for this conf ? (perhaps my problem is here ?)

i have an openVpn client setup , tun is up , ok. (ovpnc2), on WAN iface
VPN-1 UDP    11.11.11.129(gw)   11.11.11.185(ip)    2020-11-14 00:03:44    325 KB    275 KB    up

So i do an assignement of ovpnc2 to virtual iface WAN_VPN (virtual interface in oprder to fully manage incomming and outgoing packets)

then i create 3 virtual ip on "WAN_VPN" using public IPs given by my vpn provider using Interfaces \ Virtual IPs \ settings :

- 11.11.11.101/32 , gw 11.11.11.129
- 11.11.11.102/32 , gw 11.11.11.129
- 11.11.11.103/32 , gw 11.11.11.129

Then i change Upstream gateway to VPN one, same thing for system \ settings \ general

And if i came back to Interface\ WAN_VPN , then simply clic on SAVE :

The following input errors were detected:

    This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.
    This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.
    This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.

(the config seems to work afterall !!)

Where am i  wrong ?
Title: Re: openVpn client + virtual IPs issue or bug ?
Post by: ledufakademy on November 14, 2020, 12:27:16 PM
i decide to reboot firewall ... in order to see if the conf is stable  ... ;D
my openvpn tun don't want to up.  >:(

there is something wrong with:

openvpn + virtual ips !
Title: Re: openVpn client + virtual IPs issue or bug ? help ...
Post by: ledufakademy on November 14, 2020, 01:46:58 PM
THE problem is :

if you setup dns with gateway via VPN (System: Settings: General)... AND your vpn provider with a DNS name in openvpn setup : there is a big problem !

vpn.myvpnprov.com ... .can't be resolved, so no tun is up .

For solving that issue i simply put the public ip fo my VPN provider in openvpn conf.

But the GUI always complains with (when trying to save WAN_VPN iface), any way the conf is working , weird  :

The following input errors were detected:

    This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.
    This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.
    This interface is referenced by IPv4 VIPs. Please delete those before setting the interface to 'none' configuration.