Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FFS Gluon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Patrick
FFS Gluon
Commits
ba424125
Unverified
Commit
ba424125
authored
5 years ago
by
Matthias Schiffer
Committed by
GitHub
5 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1877 from christf/respondd
gluon-mesh-babel: Fix packets leaving wrong interface
parents
b4101e54
d5b08fe6
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
package/gluon-mesh-babel/Makefile
+1
-1
1 addition, 1 deletion
package/gluon-mesh-babel/Makefile
package/gluon-mesh-babel/luasrc/lib/gluon/upgrade/300-gluon-mesh-babel-mkconfig
+3
-1
3 additions, 1 deletion
...el/luasrc/lib/gluon/upgrade/300-gluon-mesh-babel-mkconfig
with
4 additions
and
2 deletions
package/gluon-mesh-babel/Makefile
+
1
−
1
View file @
ba424125
...
@@ -10,7 +10,7 @@ include ../gluon.mk
...
@@ -10,7 +10,7 @@ include ../gluon.mk
define
Package/gluon-mesh-babel
define
Package/gluon-mesh-babel
TITLE
:=
Babel mesh
TITLE
:=
Babel mesh
DEPENDS
:=
+gluon-core +babeld +mmfd +libiwinfo +libgluonutil +firewall +libjson-c +libnl-tiny +libubus +libubox +libblobmsg-json +libbabelhelper +luabitop
+gluon-l3roamd
DEPENDS
:=
+gluon-core +babeld +
gluon-
mmfd +libiwinfo +libgluonutil +firewall +libjson-c +libnl-tiny +libubus +libubox +libblobmsg-json +libbabelhelper +luabitop
PROVIDES
:=
gluon-mesh-provider
PROVIDES
:=
gluon-mesh-provider
endef
endef
...
...
This diff is collapsed.
Click to expand it.
package/gluon-mesh-babel/luasrc/lib/gluon/upgrade/300-gluon-mesh-babel-mkconfig
+
3
−
1
View file @
ba424125
#!/usr/bin/lua
#!/usr/bin/lua
local
site
=
require
'gluon.site'
local
site
=
require
'gluon.site'
local
uci
=
require
(
'simple-uci'
).
cursor
()
local
nodeip
=
uci
:
get
(
'network'
,
'loopback'
,
'ip6addr'
):
match
(
'^[^/]+'
)
local
babelconf
=
'/etc/gluon-babeld.conf'
local
babelconf
=
'/etc/gluon-babeld.conf'
local
file
=
io.open
(
babelconf
,
"w"
)
local
file
=
io.open
(
babelconf
,
"w"
)
...
@@ -15,7 +17,7 @@ file:write("redistribute ip " .. site.prefix6() .. " eq 128 allow\n")
...
@@ -15,7 +17,7 @@ file:write("redistribute ip " .. site.prefix6() .. " eq 128 allow\n")
file
:
write
(
"redistribute ip "
..
site
.
node_client_prefix6
()
..
" eq 128 allow\n"
)
file
:
write
(
"redistribute ip "
..
site
.
node_client_prefix6
()
..
" eq 128 allow\n"
)
file
:
write
(
"redistribute ip "
..
site
.
node_prefix6
()
..
" eq 128 allow\n"
)
file
:
write
(
"redistribute ip "
..
site
.
node_prefix6
()
..
" eq 128 allow\n"
)
file
:
write
(
"redistribute ip 2000::/3 allow\n"
)
file
:
write
(
"redistribute ip 2000::/3 allow\n"
)
file
:
write
(
"redistribute local if br-wan deny\n"
)
file
:
write
(
"redistribute local if br-wan deny\n"
)
file
:
write
(
"redistribute local ip 0.0.0.0/0 deny\n"
)
file
:
write
(
"redistribute local ip 0.0.0.0/0 deny\n"
)
file
:
write
(
"install pref-src "
..
nodeip
..
"
\n
"
)
file
:
close
()
file
:
close
()
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment