1
0
This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
TP-Link_Archer-XR500v/EN7526G_3.18Kernel_SDK/filesystem/usr/script/nat_stop.sh
2024-07-22 01:58:46 -03:00

25 lines
573 B
Bash
Executable File

#!/bin/sh
if [ $# != 1 ] ; then
echo "usage: $0 [interface]"
exit 0
fi
#i=$1
WAN_IF=$1
DMZ_CHAIN=DMZ_$WAN_IF
VS_CHAIN=VS_$WAN_IF
#iptables -t nat -D POSTROUTING -o nas$i -j MASQUERADE
#iptables -t nat -D POSTROUTING -o ppp$i -j MASQUERADE
#iptables -t nat -D POSTROUTING -j ADDRMAP_POS$i
#iptables -t nat -D PREROUTING -j VS_PRE$i
#iptables -t nat -D PREROUTING -j DMZ_PRE$i
#iptables -t nat -D PREROUTING -j ADDRMAP_PRE$i
# flush nat rule
iptables -t nat -F $VS_CHAIN
iptables -t nat -F $DMZ_CHAIN
#iptables -t nat -F ADDRMAP_PRE$i
#iptables -t nat -F ADDRMAP_POS$i