From 250dde4722f65d6143a7068cc7a870e516e88682 Mon Sep 17 00:00:00 2001 From: "tiago.ferreira" Date: Thu, 7 Aug 2025 12:59:42 +0000 Subject: [PATCH] Atualizar router.sh --- router.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/router.sh b/router.sh index dd77ae9..88c22cd 100644 --- a/router.sh +++ b/router.sh @@ -12,4 +12,10 @@ ip address add 192.168.200.1/24 dev enp0s9 ip address flush enp0s10 ip address add 192.168.56.200/24 dev enp0s10 -sysctl -w net.ipv4.ip_forward=1 \ No newline at end of file +sysctl -w net.ipv4.ip_forward=1 + +iptables -t nat -A POSTROUTING -o enp0s3 -j MASQUERADE + +iptables -t nat -A PREROUTING -p tcp --dport 10000 -j DNAT --to-destination 192.168.200.2:22 +iptables -t nat -A PREROUTING -p tcp --dport 10001 -j DNAT --to-destination 192.168.200.3:22 +iptables -t nat -A PREROUTING -p tcp --dport 10002 -j DNAT --to-destination 172.17.0.2:22 \ No newline at end of file