We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8fc4637 commit 342e3d5Copy full SHA for 342e3d5
scripts/src/box.iptables
@@ -4,8 +4,8 @@ scripts=$(realpath $0)
4
scripts_dir=$(dirname ${scripts})
5
source /data/adb/box/settings.ini
6
7
-table="222"
8
-fwmark="223"
+table="223"
+fwmark="222"
9
pref="100"
10
11
# ipts_version=$(iptables -V | grep -o "v1\.[0-9]")
@@ -146,7 +146,9 @@ start_redirect() {
146
fi
147
148
149
- ${iptables} -t nat -I OUTPUT -j BOX_LOCAL
+ if [ "${iptables}" != "ip6tables -w 100" ] ; then
150
+ ${iptables} -t nat -I OUTPUT -j BOX_LOCAL
151
+ fi
152
153
if [ "${iptables}" != "ip6tables -w 100" ] ; then
154
${iptables} -A OUTPUT -d 127.0.0.1 -p tcp -m owner --uid-owner ${box_user} --gid-owner ${box_group} -m tcp --dport ${redir_port} -j REJECT
0 commit comments