bypassing NAT and PORT forwarding using wireguard poll

Sorry if this is spamming as i created a thread about wireguard a few days ago

Just wanted to know if it can be useful for some/any people as creating a script would be a waste if no one has much use for it.

IT'S FOR PEOPLE FOR WHOM PORT FORWARDING DOSEN'T WORK PROPERLY USING SOMETHING LIKE ZEROTIER or would like a specific feature not available in zerotier

If anyone is intrested I would create a script to to all the work for you on a linux (debian) server,

Things required -
A VPS/server of your choice, Local device on which you will install wireguard client to reroute the traffic
Here is how it would work

1)Running the the script will ask you which port/s you would like to forward and it's protocol (TCP/UDP/Both)
2)It will then install and configure wireguard and firewall and create client config file then encrypt the file on the server using 16/32 random letters into a zip and upload it to a temp. file hosting service or create a QR code which can be scanned using official wireguard app
3)Install wireguard on the the device (or a capable router/openwrt etc.) you would like to port forward and import the generated/downloaded conf file
4)You should be able to acces the forwaded ports on IP-address-of-server:port

Optional
You can also set Policy Routing on your local device(if supported) so only the traffic of forwaded ports will be forwaded to the VPS/server and rest all traffic will flow normally
 
Last edited by a moderator:
@Rehan Kumar stuck at this point with my DO bangalore server
 

Attachments

  • Capture.webp
    Capture.webp
    29.5 KB · Views: 564
The thing is I want to use DO wg server for playing GTA V, as my ISP has kept me behind double NAT and I don't get OPEN NAT, I tried using roadwarrior's script of wireguard but still I get MODERATE NAT even when I am connected to DO using a VPN, any fix with this ?
Also 6672 is the udp port required by rockstar for GTA V
 
What I meant to say that I can only guarantee that it will properly with ubuntu 20.04.

It should work with other debian based distribution as well but It will take quite a bit of time to verify that.
 
Slight OT: if anyone is using this with AWS be careful the pricing for their bandwidth consumption is really weird when using EC2. You will end up paying /GB for the download your client will do (as EC2 will be egressing that amount).
 
Back