Jump to content
Not connected, Your IP: 3.145.97.235
fhopper

ANSWERED Enter from one country, exit from another

Recommended Posts

Hi there. I've been connecting (from Miami) directly to the Airvpn servers in Sweden and Netherlands for a few years now but have recently noticed that speedtest-cli shows really low speeds (<10Mb down and up) in my (wireguard on linux) airvpn namespace. If i connect to an Airvpn server near Miami, I get full speeds (321Mb down 288Mb up). I'm beginning to wonder if my ISP is the cause for the slow speeds when connecting to the Sweden/Netherlands servers. Is it possible to enter Airvpn from Miami but have my exit IP (public IP) be from an Airvpn server in a different country?

Share this post


Link to post
On 3/9/2024 at 3:07 PM, fhopper said:

Is it possible to enter Airvpn from Miami but have my exit IP (public IP) be from an Airvpn server in a different country?


It's not. The only exception is if you're trying to reach supported websites through the rerouting feature.

NOT AN AIRVPN TEAM MEMBER. USE TICKETS FOR PROFESSIONAL SUPPORT.

LZ1's New User Guide to AirVPN « Plenty of stuff for advanced users, too!

Want to contact me directly? All relevant methods are on my About me page.

Share this post


Link to post
Posted ... (edited)

Actually, it is possible to chain AirVPN connections so that you enter from one country and exit from another, if you are using Linux. Keep in mind though that doing so will consume 2 airvpn sessions out of the 5 you are allowed instead of just 1.

To do that, here are the steps you need to follow:
1. Set up a systemd-nspawn container that connects to the AirVPN server in Miami
2.  Keep in mind the entry ipv4 of the AirVPN server you want to exit from. You can find this in the Endpoint= line in the wireguard conf you download.
3.  Set up IP Masquerading in the container from step 1 using iptables -t nat -A POSTROUTING -i host0 -o (name of AirVPN wireguard interface) -j MASQUERADE
4. Remember to also allow ip forwarding on both the contaienr and the host machine
5.  On the host machine, run ip rule add to (whatever entry address the miami server has) lookup main and ip route add (whatever the entry address of the airvpn server you want to exit from is) via (whatever the address of the systemd-nspawn container is).
6. Adjust the MTU of the inner VPN(the one where you want to exit from) to 1340
7. Start the inner VPN
8. Run ip rule show. Make sure that whatever ip rule that wiregaurd setup has a lower priority than the rule you entered in step 4.

If you need more help, feel free to ask.

Edited ... by reversevpn
removed "to" from ip route add command

Share this post


Link to post

Sure technically it is possible. It comes with caveats especially the troubles caused by MTU size mismatches are a hassle to diagnose and resolve. If you asked me, that's the reason most clients and providers don't attempt it. There's very tiny benefit overall. Yet the downside to VPNs of double the traffic.

You are right, this may be an issue with your ISP. Maybe they changed the routing and it's *only* an MTU issue... again. If you have IPv6 try to connect via IPv6.

It's doable on Windows + OpenVPN too with a lot of careful config commands to set up a correct route. An easier approach is to nest virtual machines here are 2 examples:

Host OS: Connected to server 1
Guest OS: NAT Network (uses host's connection, vpn via s1 here) + connected to server 2. Do your browsing inside guest to access internet via isp-s1-s2-internet

Alternatively you do not connect to VPN on Host OS, but Guest1 is connected to S1 and inside Guest1 you run another nested (sic) VM Guest2 that connects to S2.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Security Check
    Play CAPTCHA Audio
    Refresh Image

×
×
  • Create New...