Skip to content
Snippets Groups Projects
Commit bcc89a24 authored by Jan Luebbe's avatar Jan Luebbe Committed by chrissi^
Browse files

gluon-core: configure unreachable routes

parent 7e5f4b19
No related branches found
No related tags found
No related merge requests found
......@@ -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')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment