Hello
Need some help...
Is a way to set up port forwarding on VPS that will forward all my local pc traffic through a different port i have few app which listening on specific ports so best scenario will be connect to the VPS and pass through all traffic on ports like..
Local PC Priv connection maybe wireguard 1.1.1.1
VPS 5.5.5.5 (will have public IP)
1.1.1.1:80 -----> 5.5.5.5:80
1.1.1.1:500-----> 5.5.5.5:500
1.1.1.1:5500---->5.5.5.5:5500
1.1.1.1 (wireguard or openvpn but dont know if that will works)
and next ones could change listening port but need to set up in that kind way...
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp -d 5.5.5.5 --dport 80 -j DNAT --to-destination 1.1.1.1:80
iptables -t nat -A PREROUTING -p tcp -d 5.5.5.5 --dport 500 -j DNAT --to-destination 1.1.1.1:500
or Dynamic port forwarding with ssh...??
Could any one help me please.....
Need some help...
Is a way to set up port forwarding on VPS that will forward all my local pc traffic through a different port i have few app which listening on specific ports so best scenario will be connect to the VPS and pass through all traffic on ports like..
Local PC Priv connection maybe wireguard 1.1.1.1
VPS 5.5.5.5 (will have public IP)
1.1.1.1:80 -----> 5.5.5.5:80
1.1.1.1:500-----> 5.5.5.5:500
1.1.1.1:5500---->5.5.5.5:5500
1.1.1.1 (wireguard or openvpn but dont know if that will works)
and next ones could change listening port but need to set up in that kind way...
sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp -d 5.5.5.5 --dport 80 -j DNAT --to-destination 1.1.1.1:80
iptables -t nat -A PREROUTING -p tcp -d 5.5.5.5 --dport 500 -j DNAT --to-destination 1.1.1.1:500
or Dynamic port forwarding with ssh...??
Could any one help me please.....