mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Fix gre tunnels
This commit is contained in:
parent
93e5ff4df8
commit
0ba988bc89
3 changed files with 55 additions and 6 deletions
12
openmptcprouter/files/etc/firewall.gre-tunnel
Normal file
12
openmptcprouter/files/etc/firewall.gre-tunnel
Normal file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
. /lib/functions.sh
|
||||
|
||||
_setup_rules() {
|
||||
config_get lookup $1 lookup
|
||||
[ -z "$(ip rule list fwmark 0x${lookup})" ] && {
|
||||
ip rule add fwmark 0x${lookup} table ${lookup} pref 2
|
||||
}
|
||||
}
|
||||
|
||||
config_load network
|
||||
config_foreach _setup_rules interface
|
Loading…
Add table
Add a link
Reference in a new issue