Skip to content

Commit

Permalink
BOX_EXTERNAL should be added to PREROUTING chain only once (#88)
Browse files Browse the repository at this point in the history
  • Loading branch information
maskedeken committed Jan 30, 2024
1 parent 68352db commit 43ae9cd
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions box/scripts/box.iptables
Original file line number Diff line number Diff line change
Expand Up @@ -383,8 +383,6 @@ start_tproxy() {
fi
done
fi
# Append the BOX_EXTERNAL chain to the PREROUTING chain
${iptables} -t mangle -A PREROUTING -j BOX_EXTERNAL

${iptables} -t mangle -A BOX_EXTERNAL -p tcp -i lo -j TPROXY --on-port "${tproxy_port}" --tproxy-mark "${fwmark}"
${iptables} -t mangle -A BOX_EXTERNAL -p udp -i lo -j TPROXY --on-port "${tproxy_port}" --tproxy-mark "${fwmark}"
Expand Down

0 comments on commit 43ae9cd

Please sign in to comment.