Skip to content

Commit 8d39a13

Browse files
authored
Update redirectCmd.sh
1 parent 2b24d71 commit 8d39a13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

AnyConnect/redirect/redirectCmd.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ RemotePort="$(echo ${RemoteAddress} |cut -d: -f2 |grep -o '[0-9]\{1,5\}')"
3030

3131
iptables -I INPUT -p tcp --dport ${LocalPort} -j ACCEPT
3232
iptables -t nat -A PREROUTING -p tcp -i ${LocalIf} --dport ${LocalPort} -j DNAT --to-destination ${RemoteHost}:${RemotePort}
33-
iptables -t nat -I POSTROUTING -d ${RemoteHost} -p tcp --dport ${HostPort} -j MASQUERADE
33+
iptables -t nat -I POSTROUTING -d ${RemoteHost} -p tcp --dport ${RemotePort} -j MASQUERADE
3434

0 commit comments

Comments
 (0)