Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
ffdd-server
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Git Issue Tracker
Git Issue Tracker
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
Firmware-Developer
ffdd-server
Commits
a6e187ba
Commit
a6e187ba
authored
Jul 05, 2020
by
Stephan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
route icmp packages through public_gateway if available
parent
d8d1fd89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
salt/freifunk/base/network/etc/init.d/S40network
salt/freifunk/base/network/etc/init.d/S40network
+11
-2
No files found.
salt/freifunk/base/network/etc/init.d/S40network
View file @
a6e187ba
...
...
@@ -43,9 +43,18 @@ setup_routing() {
# special DNS routing, always via public tunnel if exist.
ip rule
"
$1
"
lookup public_dns priority 350
# do not route locally generated icmp-frag-needed for
# connections via vpn tunnel through local interface.
# Sending packages with internet destinations and locale
# source ip (from vpn tunnel provider) lead to blocking
# server public ip by Hetzner.
# This rule also would send local generated icmp (pings)
# only through vpn tunnel if we have an public_gateway selected.
ip rule
"
$1
"
iif lo ipproto icmp table public_gateway prio 410
#route local and lan traffic through own internet gateway
ip rule
"
$1
"
iif lo table local_gateway priority 4
0
0
ip rule
"
$1
"
table public_gateway priority 4
01
ip rule
"
$1
"
iif lo table local_gateway priority 4
2
0
ip rule
"
$1
"
table public_gateway priority 4
30
#batman tables
ip rule
"
$1
"
to 10.200.0.0/15 table bat_route priority 500
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment