Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion packages/lime-proto-babeld/src/babeld.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/lua

--! LiMe Proto Babeld
--! Copyright (C) 2018 Gioacchino Mazzurco <gio@eigenlab.org>
--! Copyright (C) 2018 Gioacchino Mazzurco <gio@altermundi.net>
--!
--! This program is free software: you can redistribute it and/or modify
--! it under the terms of the GNU Affero General Public License as
Expand Down Expand Up @@ -40,6 +40,9 @@ function babeld.configure(args)
uci:set("babeld", "librenet6", "type", "tunnel")
end

uci:set("babeld", "general", "general")
uci:set("babeld", "general", "local_port", "30003")

uci:set("babeld", "public6", "filter")
uci:set("babeld", "public6", "type", "redistribute")
uci:set("babeld", "public6", "ip", "2000::0/3")
Expand Down Expand Up @@ -79,6 +82,13 @@ function babeld.configure(args)
uci:set("babeld", "dany", "action", "deny")

uci:save("babeld")


uci:set("libremap", "babeld", "plugin")
uci:set("libremap", "babeld", "enabled", "true")

uci:save("libremap")

end

function babeld.setup_interface(ifname, args)
Expand Down