This commit is contained in:
Wang Sen Di
2025-11-25 16:45:15 +08:00
parent 67522a2434
commit b2ef31946b
2 changed files with 43 additions and 34 deletions

View File

@@ -3,6 +3,10 @@
if [[ -d "/host/proc/1/" ]]; then source /apps/gitrce/hook/singleton.sh "$0"; fi
__main() {
:
update-alternatives --set iptables /usr/sbin/iptables-legacy 2>/dev/null
_owner_id=50000
_chain="output_netflow_owner_${_owner_id}"
@@ -16,8 +20,13 @@ for cmd in iptables ip6tables; do
if ! $cmd -t mangle -C "$_chain" -j RETURN 2>/dev/null; then
$cmd -t mangle -A "$_chain" -j RETURN
fi
$cmd -t mangle -L OUTPUT -v -n -x
done
}
__main
__help() {
cat >/dev/null <<-'EOF'