mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Add wait param to iptables for omr-bypass
This commit is contained in:
parent
d82c349743
commit
c32da33c53
1 changed files with 3 additions and 3 deletions
|
@ -36,8 +36,8 @@ start_service() {
|
||||||
|
|
||||||
ip rule add prio 1 fwmark 0x539 lookup 991337 > /dev/null 2>&1
|
ip rule add prio 1 fwmark 0x539 lookup 991337 > /dev/null 2>&1
|
||||||
|
|
||||||
if [ "$(iptables -t mangle -L | grep 'match-set ss_rules_dst_bypass dst MARK set')" = "" ]; then
|
if [ "$(iptables -w 40 -t mangle -L | grep 'match-set ss_rules_dst_bypass dst MARK set')" = "" ]; then
|
||||||
iptables-restore --noflush <<-EOF
|
iptables-restore --wait=60 --noflush <<-EOF
|
||||||
*mangle
|
*mangle
|
||||||
-A PREROUTING -m set --match-set ss_rules_dst_bypass dst -j MARK --set-mark 0x539
|
-A PREROUTING -m set --match-set ss_rules_dst_bypass dst -j MARK --set-mark 0x539
|
||||||
COMMIT
|
COMMIT
|
||||||
|
@ -49,7 +49,7 @@ start_service() {
|
||||||
config_list_foreach dpi "proto" _bypass_proto
|
config_list_foreach dpi "proto" _bypass_proto
|
||||||
ndpi_rules=$(echo $ndpi_rules | awk 'NF')
|
ndpi_rules=$(echo $ndpi_rules | awk 'NF')
|
||||||
if [ "$ndpi_rules" != "" ]; then
|
if [ "$ndpi_rules" != "" ]; then
|
||||||
iptables-restore --noflush <<-EOF
|
iptables-restore --wait=60 --noflush <<-EOF
|
||||||
*mangle
|
*mangle
|
||||||
:omr-bypass-dpi -
|
:omr-bypass-dpi -
|
||||||
-A PREROUTING -m addrtype ! --dst-type LOCAL -j omr-bypass-dpi
|
-A PREROUTING -m addrtype ! --dst-type LOCAL -j omr-bypass-dpi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue