mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-20 22:12:58 +03:00
21 lines
352 B
Bash
21 lines
352 B
Bash
#!/bin/sh
|
|
|
|
[ "$type" == "ip6tables" ] && exit 0
|
|
[ "$table" != "mangle" ] && exit 0
|
|
|
|
SCRIPT=$(readlink /opt/etc/init.d/S99zapret)
|
|
if [ -n "$SCRIPT" ]; then
|
|
EXEDIR=$(dirname "$SCRIPT")
|
|
ZAPRET_BASE=$(readlink -f "$EXEDIR/../..")
|
|
else
|
|
ZAPRET_BASE=/opt/zapret
|
|
fi
|
|
|
|
. "$EXEDIR/functions"
|
|
|
|
case $MODE in
|
|
nfqws|twps|custom)
|
|
zapret_apply_firewall
|
|
;;
|
|
esac
|