mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-15 03:51:51 +00:00
Set IPv6 rules in omr-bypass only if IPv6 is enabled
This commit is contained in:
parent
2b40d1317b
commit
c2d89b0d93
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ _bypass_lan_ip() {
|
||||||
-A omr-bypass-local -s $ip -j MARK --set-mark 0x539
|
-A omr-bypass-local -s $ip -j MARK --set-mark 0x539
|
||||||
COMMIT
|
COMMIT
|
||||||
EOF
|
EOF
|
||||||
elif [ "$valid_ip6" = "ok" ]; then
|
elif [ "$valid_ip6" = "ok" ] && [ "$disableipv6" = "0" ]; then
|
||||||
ip6tables-restore -w --wait=60 --noflush <<-EOF
|
ip6tables-restore -w --wait=60 --noflush <<-EOF
|
||||||
*mangle
|
*mangle
|
||||||
-A omr-bypass6 -s $ip -j MARK --set-mark 0x6539
|
-A omr-bypass6 -s $ip -j MARK --set-mark 0x6539
|
||||||
|
@ -198,7 +198,7 @@ _bypass_lan_ip() {
|
||||||
-A omr-bypass-local -s $ip -j MARK --set-mark 0x539$intfid
|
-A omr-bypass-local -s $ip -j MARK --set-mark 0x539$intfid
|
||||||
COMMIT
|
COMMIT
|
||||||
EOF
|
EOF
|
||||||
elif [ "$valid_ip6" = "ok" ]; then
|
elif [ "$valid_ip6" = "ok" ] && [ "$disableipv6" = "0" ]; then
|
||||||
ip6tables-restore -w --wait=60 --noflush <<-EOF
|
ip6tables-restore -w --wait=60 --noflush <<-EOF
|
||||||
*mangle
|
*mangle
|
||||||
-A omr-bypass6 -s $ip -j MARK --set-mark 0x6539$intfid
|
-A omr-bypass6 -s $ip -j MARK --set-mark 0x6539$intfid
|
||||||
|
|
Loading…
Reference in a new issue