Using applications like qbittorrent and airdcpp to share files. They all need some ports to be forwarded in order to be "connectable".
In the home connection I would go into the router settings 192.168.1.1
and then forward the ports, ex. 56000
to my PC's local ip address: 192.168.1.124
. And the services would work alright.
Later set up wireguard on a Linode VPS wishing I can vpn into it and and mask my IP. But when I do that, my ip address is changed when I go to somewhere like https://whoer.net . But the ports used, ex. 56000
is not forwarded and thus the apps are not "connectable".
What are the things I need to add in iptables in order for the VPS to forward those ports like my home router does?
Port 56000
is set to allow
in the active VPS ufw
firewall.
Many thanks for looking.
This is what my VPS wireguard conf looks like:
Address = 10.66.66.1/24,fd42:42:42::1/64
ListenPort = 49503
PrivateKey = ***
[Peer]
PublicKey = ***
PresharedKey = ***
AllowedIPs = 10.66.66.2/32,fd42:42:42::2/128