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:
Messages
10
Location
Pune
ISP
LOCAL ISP - Gazon Pune
Thanks @Rehan Kumar, yes I am on the student plan of DigitalOcean fk aws lol, it's working with ubuntu 20.04 droplet, no issues till now, Thanks a lot ! <3