Files
nixarr/docs/wiki/vpn/ports/index.md
T
rasmus-kirk d549ba8e37 Fixes
2024-08-07 09:02:33 +02:00

1.3 KiB

title
title
Opening Ports

In order to open a port through a VPN you need to open a port with your VPN-provider.

Note: Not all VPN-providers support this feature! Notably, Mullvad does not anymore!

Note: The port present in the nixarr.vpn.wgConf, should not be used for any options!

AirVPN

Go to the ports page at AirVPN's website open a port. After opening it should look like this:

An open port on AirVPN, the port number that should be used in Nixarr is 12345.

Then you can set that port for a service, for example

  nixarr.transmission = {
    enable = true;
    vpn.enable = true;
    peerPort = 12345;
  };

Debugging Ports

You can debug an open port using the nixarr.vpn.vpnTestService. If the DNS and IP checks out, it will open a netcat instance on the port specified in nixarr.vpn.vpnTestService.port. You can then run:

  nc <public VPN ip> <specified port>

Where the "public VPN ip" is the one shown in the vpnTestService logs as your ip. Upon succesful connection type messages that should show up in the vpnTestService logs.