mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix for DSCP
This commit is contained in:
parent
2b5c9591ca
commit
9c8645ae28
1 changed files with 10 additions and 2 deletions
|
@ -11,6 +11,14 @@ USE_PROCD=1
|
||||||
# shellcheck disable=SC1091
|
# shellcheck disable=SC1091
|
||||||
. /lib/functions.sh
|
. /lib/functions.sh
|
||||||
|
|
||||||
|
if [ -f /usr/sbin/iptables-legacy ]; then
|
||||||
|
IPTABLES="/usr/sbin/iptables-legacy"
|
||||||
|
IP6TABLES="/usr/sbin/ip6tables-legacy"
|
||||||
|
else
|
||||||
|
IPTABLES="/usr/sbin/iptables"
|
||||||
|
IP6TABLES="/usr/sbin/ip6tables"
|
||||||
|
fi
|
||||||
|
|
||||||
# Get the lan interface name
|
# Get the lan interface name
|
||||||
lan_device=
|
lan_device=
|
||||||
config_load network
|
config_load network
|
||||||
|
@ -19,10 +27,10 @@ config_get lan_device lan ifname
|
||||||
config_load dscp
|
config_load dscp
|
||||||
|
|
||||||
_ipt4() {
|
_ipt4() {
|
||||||
iptables -w -t mangle "$@" 2>&1 >/dev/null
|
$IPTABLES -w -t mangle "$@" 2>&1 >/dev/null
|
||||||
}
|
}
|
||||||
_ipt6() {
|
_ipt6() {
|
||||||
ip6tables -w -t mangle "$@" 2>&1 >/dev/null
|
$IP6TABLES -w -t mangle "$@" 2>&1 >/dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
_add_dscp_rule() {
|
_add_dscp_rule() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue