Commit d75ec398 authored by Jan Luebbe's avatar Jan Luebbe

gluon-core: configure unreachable routes

parent f59a4c6e
......@@ -18,6 +18,21 @@ if not uci:get('network', 'wan', 'proto') then
end
uci:section('network', 'rule', 'wan_lookup', {
mark = '0x01/0x01',
lookup = 1,
})
uci:section('network', 'route', 'wan_unreachable', {
type = 'unreachable',
interface = 'loopback',
target = '0.0.0.0',
netmask = '0',
table = 1,
metric = 65535,
})
uci:section('network', 'interface', 'wan6', {
ifname = 'br-wan',
peerdns = false,
......@@ -45,6 +60,24 @@ uci:section('network', 'route6', 'wan6_unreachable', {
metric = 65535,
})
uci:section('network', 'route', 'client_unreachable', {
type = 'unreachable',
interface = 'loopback',
target = '0.0.0.0',
netmask = '0',
metric = 65535,
})
uci:section('network', 'route6', 'client6_unreachable', {
type = 'unreachable',
interface = 'loopback',
target = '::/0',
gateway = '::',
metric = 65535,
})
uci:save('network')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment