From 0a2e290bb2ae3fbe59187527c51b9451ba0d22de Mon Sep 17 00:00:00 2001 From: skyper <5938498+SkyperTHC@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:18:54 +0100 Subject: [PATCH] Update README.md --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index be8953d..c1c627a 100644 --- a/README.md +++ b/README.md @@ -610,6 +610,9 @@ ipfwinit() { iptables -t nat -I POSTROUTING -m mark --mark 1188 -j MASQUERADE iptables -t nat -I POSTROUTING -m mark --mark 1188 -j CONNMARK --save-mark } +ipfw() { + iptables -t nat -A PREROUTING -p tcp --dport "${1:?}" -m mark --mark 1188 -j DNAT --to ${2:?}:${3:?} +} ipfwinit # Allow EVERY IP to bounce # ipfwinit "1.2.3.4/16" "6.6.0.0/16" # Only allow these SOURCE IP's to bounce ```