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.
- Open the terminal window and navigate to the following file (located in /etc/default directory):
This file holds the default myst service configuration information.
- 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:
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.
--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:
- Login to your router.
- Navigate to your router's port forwarding section, also frequently called virtual server.
- Create the port forward entries in your router.
- Test that your ports are forwarded correctly.