portweiterleitung_to_client
This commit is contained in:
parent
5a4e8ff2a1
commit
cd19b49598
1 changed files with 8 additions and 0 deletions
8
README
8
README
|
@ -6,3 +6,11 @@ vps# iptables -t nat -A POSTROUTING -p tcp --dport 30033 -j MASQUERADE
|
||||||
|
|
||||||
vps# iptables -t nat -A PREROUTING -p tcp --dport 10011 -j DNAT --to-destination 192.168.1.3
|
vps# iptables -t nat -A PREROUTING -p tcp --dport 10011 -j DNAT --to-destination 192.168.1.3
|
||||||
vps# iptables -t nat -A POSTROUTING -p tcp --dport 10011 -j MASQUERADE
|
vps# iptables -t nat -A POSTROUTING -p tcp --dport 10011 -j MASQUERADE
|
||||||
|
|
||||||
|
Port forwarding using OpenVPN client
|
||||||
|
|
||||||
|
sysctl -w net.ipv4.ip_forward=1
|
||||||
|
|
||||||
|
iptables -t nat -A PREROUTING -d 50.xxx.xxx.xxx -p tcp --dport 8081 -j DNAT --to-dest 192.168.2.86:8081
|
||||||
|
|
||||||
|
iptables -t nat -A POSTROUTING -d 192.168.2.86 -p tcp --dport 8081 -j SNAT --to-source 10.0.2.42
|
||||||
|
|
Loading…
Reference in a new issue