diff --git a/packages/lime-proto-babeld/src/babeld.lua b/packages/lime-proto-babeld/src/babeld.lua index 346df0d3e..36b71f79e 100644 --- a/packages/lime-proto-babeld/src/babeld.lua +++ b/packages/lime-proto-babeld/src/babeld.lua @@ -1,7 +1,7 @@ #!/usr/bin/lua --! LiMe Proto Babeld ---! Copyright (C) 2018 Gioacchino Mazzurco +--! Copyright (C) 2018 Gioacchino Mazzurco --! --! This program is free software: you can redistribute it and/or modify --! it under the terms of the GNU Affero General Public License as @@ -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") @@ -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)