#1 2019-09-10 01:36:38

JayceeKyD
Member
Registered: 2019-09-10
Posts: 1

Nat vps change destinatin ip and port

Hi sir mam can i ask It is possible to my nat vps change the destination ip to my main vps with port ? I will change the port to my nat port available

Sample
iptables -t nat -A PREROUTING -p tcp --dport 6900 -j DNAT --to-destination 0.0.0.0:6900
iptables -t nat -A PREROUTING -p tcp --dport 5121 -j DNAT --to-destination 0.0.0.0:5121
iptables -t nat -A PREROUTING -p tcp --dport 6121 -j DNAT --to-destination 0.0.0.0:6121
iptables -t nat -A POSTROUTING -j MASQUERADE
sysctl net.ipv4.ip_forward=1

Offline

#2 2019-09-10 16:10:50

WSS
Trusted Member
Registered: 2016-12-22
Posts: 484

Re: Nat vps change destinatin ip and port

You're only allowed the ports already given to you.


RbyeR4Nm.png

Offline

#3 2019-09-10 17:00:39

AnthonySmith
Low End Boss
From: ~/
Registered: 2013-02-13
Posts: 3,996
Website

Re: Nat vps change destinatin ip and port

not an option.


https://upto32.com retro gaming and nostalgia forum that does not take itself to seriously smile

Offline

Board footer

Powered by FluxBB