Port forwarding

It is a technique that is used to allow external devices access to computer services on private networks. It does this by mapping an external port to an internal IP address and port. Most online gaming Applications will require you to configure port forwarding on your home router.

Since WireGuard uses UDP to transmit the encrypted IP packets, you will have to manually forward the range of UDP ports.

  1. Open the terminal window and navigate to the following file (located in /etc/default directory):
nano /etc/default/mysterium-node

This file holds the default myst service configuration information.

  1. Use --udp.ports="" flag to set range of listen ports (default: "10000:60000"). You can freely specify the range between 10000 and 60000. In the below example, we will use the following range: --udp.ports="30000:60000". This flag --udp.ports="30000:60000" should be added into DAEMON_OPTS="" line.

In the end, it would look like this:

DAEMON_OPTS="--keystore.lightweight --udp.ports=30000:60000" SERVICE_OPTS="wireguard"
config-file

Write out the output by clicking ctrl+o and hit enter.

After you make changes to your service configuration file, use systemctl to introspect and restart your node service. Run sudo systemctl restart mysterium-node to apply the changes.

Note!

--wireguard.listen.ports & --p2p.listen.ports has been deprecated starting from the Testnet3+, use above flag to manually set range of listen ports.

Forward ports in your router

A summary of the steps to setup a port forward in your router are:

  1. Login to your router.
  2. Navigate to your router's port forwarding section, also frequently called virtual server.
  3. Create the port forward entries in your router.
  4. Test that your ports are forwarded correctly.

How to forward ports on your router | PCWorld