openVpn client + virtual IPs issue or bug ? help ...

Started by ledufakademy, November 14, 2020, 11:47:11 AM

Previous topic - Next topic
November 14, 2020, 11:47:11 AM Last Edit: November 14, 2020, 12:50:09 PM by ledufakademy
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 ?

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 !

November 14, 2020, 01:46:58 PM #2 Last Edit: November 14, 2020, 01:48:55 PM by ledufakademy
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.