Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - jowin202

#1
Hello,

I have a rather strange problem, but I'll start from the beginning.

I have OPNsense 24.7 running in a VirtualBox, which receives the WAN from the local network and has several VLANs. Everything works fine so far. Then I purchased a NordVPN subscription and added some OpenVPN clients following the instructions on their website.

Here are the steps I followed:

Created an OpenVPN client (with the option "Don't add/remove routes" checked).
Went to Interfaces → Assign ovpnc1, ovpnc2... (and enabled them).
The interfaces were automatically created, as seen in the screenshot [opnsense1.png]. All tunnels were assigned the same gateway address 10.100.0.1, which is provided by NordVPN and cannot be set manually. (This issue is known to NordVPN, and many users have expressed frustration over it.)
Adjusted firewall rules accordingly, set gateways for individual clients, handled outbound rules, etc. The exact rules are not really relevant to the problem.

Good news: it works. Despite having the same IP for multiple gateways [opnsense1.png], everything functions. I have no idea why it works, but it does. Based on my technical understanding, it shouldn't work, but here we are.

Now for the bad news: I want to switch to WireGuard and managed to retrieve the credentials for WireGuard from NordVPN using a trick, as it is not officially supported yet (with this script: https://github.com/sfiorini/NordVPN-Wireguard). I followed the same procedure: I created a WireGuard instance, entered all the credentials, and the gateway IP for WireGuard (which is also provided by NordVPN) is 10.5.0.1 (screenshot opnsense1.png). I set up all the firewall rules, and my (wireguard) gateway to Japan is up. It works fine.

BUT: Unlike OpenVPN, I have to create the gateway manually for WireGuard. For the first WireGuard tunnel, this is not an issue, and it runs as mentioned. However, if I try to create a second connection via WireGuard, the problem starts when creating the gateway: "This Gateway IP address already exists..." Screenshot opnsense2.png.

There's no way to have two WireGuard connections running simultaneously via OPNsense (at least not with NordVPN).

Summary:
NordVPN assigns the same tunnel IP for all connections (10.100.0.1 for OpenVPN, 10.5.0.1 for WireGuard).
Tunnel IPs should ideally be different because otherwise, the configuration seems problematic (or is it?).
With OpenVPN, gateways are created automatically, and the issue with duplicate gateway IPs is ignored.
With WireGuard, I have to create the gateways manually, and I get an error message for duplicate tunnel IPs.

Could someone explain why automatically created gateways can have the same IP multiple times, but I can't do the same with manually created gateways? I'm really at a loss here. :/

Thank you very much in advance.

Best regards,

And if anything is unclear, please let me know.


btw if I edit one of the automatically created gateways, the IP field (containing an IP which is used multiple times) stays blank.
#2
Hallo,

Ich habe ein relativ seltsames Problem, aber ich beginne mal ganz von vorne.

Ich hab eine OPNsense 24.7 in einer Virtualbox laufen, dass den WAN vom lokalen Netzwerk bekommt und einige VLANs hat. Soweit funktioniert alles. Dann habe ich ein Abo von NordVPN gekauft und einige OpenVPN Clients hinzugefügt, gemäß der Anleitung von deren Website.

Folgende Schritte:
1. OpenVPN Client angelegt (Option "Don't add/remove routes" checked)
2. Interfaces --> Assign ovpnc1, ovpnc2 ... (und aktivieren)
3. Es werden automatisiert die Interfaces erstellt, siehe Screenshot [opnsense1.png]. Diese haben für ALLE Tunnel die Gateway Adresse 10.100.0.1, was von NordVPN vorgegeben wird und was ich nicht manuell einstellen kann. (Das Problem ist seitens NordVPN bereits bekannt und viele User regen sich darüber auf)
4. Firewall Regeln entsprechend anpassen, Gateway bei einzelnen Clients setzen, Outbounds etc machen. Die genauen Regeln sind fürs Problem eher nebensächlich.

Gute Nachricht: es funktioniert. Trotz mehrmals derselben IP im Gateway. Ich hab keine Ahnung warum es funktioniert, aber es geht. Nach meinem technischen Verständnis sollte/müsste/dürfte das nicht funktionieren, aber es geht halt nun mal.

Nun die schlechte Nachricht: ich möchte auf WireGuard umsteigen und habe bei NordVPN durch einen Trick die Zugangsdaten für WireGuard herausgefunden, da es offiziell noch nicht geht. (mit diesem Skript: https://github.com/sfiorini/NordVPN-Wireguard). Selbes Procedere, ich erstelle eine WireGuard Instance, gebe alle Credentials ein. die Gateway IP (ebenfalls von NordVPN vorgegeben) für WireGuard ist 10.5.0.1 (Screenshot opnsense1.png), mache alle Firewall Regeln und mein Gateway nach Japan steht. Funktioniert soweit

ABER: im Gegensatz zu OpenVPN muss ich das Gateway selbst erstellen. Für den ersten WireGuard Tunnel ist das kein Problem. der läuft wie gesagt. Wenn ich jetzt noch eine zweite Verbindung über WireGuard erstelle, dann beginnt das Problem: This Gateway IP address already exists.. Screenshot opnsense2.png

Keine Chance zwei WireGuard Verbindungen gleichzeitig übers OPNsense rauszulassen (zumindest nicht von NordVPN).


Zusammenfassung:
NordVPN gibt für alle Tunnel dieselbe Tunnel IP (10.100.0.1 für OpenVPN, 10.5.0.1 für WireGuard).
Tunnel IPs sollten verschieden sein, weil die Konfiguration sonst fürn Eimer ist (oder??)
Bei OpenVPN werden Gateways automatisch erstellt und das Problem der mehrfachen Gateway IPs ignoriert.
Bei WireGuard muss ich die Gateways selbst erstellen und bekomme für gleiche Tunnel IPs eine Fehlermeldung.

Könnte mir jemand erklären, warum automatisch erstellte Gateways mehrfach dieselbe IP haben können und warum ich das bei manuell erstellten Gateways nicht gleich machen kann? Ich bin mit dem Verständnis am Ende :/


Vielen Dank
LG

und falls was unklar ist, bitte Bescheid geben.



Edited: wenn ich einen vorhandenen (und automatisch generierten) OpenVPN Gateway mit IP 10.100.0.1 bearbeiten möchte, dann bleibt das Feld mit der IP leer. Dh irgendwie "nimmt" das System die IP in diesem Tunnel nicht. wenn ich die IP dann manuell eingebe, dann funktioniert der automatisch generierte Gateway nicht mehr mit derselben Meldung (IP already exists)