Used for port forwarding from main VPS (running SAMP) to second VPS. I used this because my main VPS latency is high when connected to PT. TELKOM INDONESIA providers (Indihome, Telkomsel), which my VPS is OVH Singapore, and I thinked of forwarding this OVH VPS to another VPS with lower latency.
- Get frp (fast reverse proxy) from here. Use right build (I'm using amd64).
- Place frpc to your main VPS.
- Create new file frpc.ini and enter this whole configuration.
serverAddr = "SECONDVPSIP"
serverPort = 7000
[[proxies]]
name = "samp"
type = "udp"
localIP = "127.0.0.1"
localPort = yoursampport
remotePort = yourtargetsampport
- Save configuration.
- Place frps to your second VPS.
- Create new file frps.ini and enter this whole configuration.
[common]
bind_port = 7000
- Save configuration.
- In second VPS, run
screen -S frp ./frps. - Make sure it's running.
- In main VPS, run
screen -S frp ./frpc. - If both is running, you can connect with
yourtargetsampportbefore likeSECONDVPSIP:yourtargetsampport
Red is main VPS and Green is second VPS.
Make sure you open OUT/IN connection for port 7000/tcp in both VPS.