diff options
author | jet tsang zeon-git <zeon-git@jettsang.com> | 2022-06-25 13:03:18 +0800 |
---|---|---|
committer | jet tsang zeon-git <zeon-git@jettsang.com> | 2022-06-25 13:03:18 +0800 |
commit | 293635520b82a5131e7cdee834ee4ceb2171127b (patch) | |
tree | 3f1c3443b3ae09d5a50ac3d3a34b4e2f0e07a06c | |
parent | add 217.79.243.0/24 (diff) | |
download | network-toolchain-293635520b82a5131e7cdee834ee4ceb2171127b.tar.gz network-toolchain-293635520b82a5131e7cdee834ee4ceb2171127b.tar.bz2 network-toolchain-293635520b82a5131e7cdee834ee4ceb2171127b.zip |
update portforward
Signed-off-by: jet tsang zeon-git <zeon-git@jettsang.com>
-rwxr-xr-x | src/lib.sh | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -145,6 +145,7 @@ function nt::portforward() destinationip=$3 destinationport=$4 iptables -t nat -A PREROUTING -d $sourceip -p tcp --dport $sourceport -j DNAT --to $destinationip:$destinationport + iptables -t nat -A POSTROUTING -d $destinationip -p tcp -dport $destinationport -j SNAT --to $destinationip } function nt::china_route_novia() { |