A tool to bypass portforwarding restrictions using some cheap VServer
| modemfiles | ||
| src | ||
| .gitignore | ||
| Cargo.lock | ||
| Cargo.toml | ||
| LICENSE | ||
| README.md | ||
Reverse-PortForward V3
This tool bypasses port restrictions of your router using some not-very-powerful server (a cheap 1€ vserver will suffice.)
This works both for TCP and UDP over a single connection. The ports you specify are going to be used for both.
RevPFW3 can interact with modems using AT commands. A demo is included for some simcom models.
Use cargo (from https://rustup.rs) to install it:
- If you've downloaded the source and are cd'd to it:
cargo install --path . - Alternatively:
cargo install --git https://git.tudbut.de/tudbut/revpfw3
How to set it up:
- Buy some cheap server online, it will only need
- Enough disk space to run a 5MB program (I recommend about .5GB free after OS is installed)
- 50MB of free RAM or more (if you expect to have many clients connecting, use more RAM)
- Flexible port settings
- Not much CPU power, a single core definitely suffices.
- Download revpfw3 to it
- Run it like this:
revpfw3 server <port> <key>(I recommend doing it in a loop) - Download it to your destination as well (your PC, a raspi, etc)
- Run it like this:
revpfw3 client <ip of your bridge server> <port> localhost <port to redirect (on local machine)> <key> - To restart, end BOTH processes (remote and on your local server) and restart them.
Applications and special features:
- Minecraft servers tested and functional.
- VintageStory (including versions using UDP) servers tested and functional.
- HTTP tested and functional.
- Some third-party protocols tested and functional.
- This is not an HTTP-Proxy. It will work with any TCP protocol that isn't reliant on TCPNODELAY.
- No disconnects, even when the sockets stay open for hours.
- Fast
- Little ping increase in normal applications
- A 1ms waiting delay before sending is built in to reduce stress and increase efficiency by waiting for further data.
As a rust library
Reverse-PortForward V3 supports being used as a library. revpfw3::client and
revpfw3::server are public, so you can use those. Keep in mind they will panic
when the connection to the corresponding client/server drops.