Skip to content
Snippets Groups Projects
Commit 205f834b authored by chrissi^'s avatar chrissi^ Committed by chrissi^
Browse files

radvd: Announce v6 as linklocal


This change let's uradvd deliver the v6 link-local of this node as DNS.
With this change DNS-requests are not affected by the radv-filterd
-rewrites during roaming.

Signed-off-by: default avatarChrissi^ <chris@tinyhost.de>
parent dd8096b0
No related branches found
No related tags found
No related merge requests found
#!/usr/bin/lua
local site = require "gluon.site"
local json=require("jsonc")
local f = assert(io.popen("ip -6 -br -j addr show dev br-client scope link", 'r'))
local s = assert(f:read('*a'))
f:close()
local ll = json.parse(s)[1]["addr_info"][2]["local"]
local f = io.open("/tmp/range6","r")
local g = io.open("/tmp/addr6", "r")
if f and g then
if f then
local range6 = f:read('*a')
local addr6 = g:read('*a')
f:close()
g:close()
io.write("-i br-client -p " .. range6)
io.write(" --rdnss " .. addr6)
io.write(" --rdnss " .. ll)
end
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