Verified Commit 391b2448 authored by Sven enniK's avatar Sven enniK
Browse files

Merge remote-tracking branch 'origin/issue-19-private-packages'

parents e27a98a0 a6e187ba
Loading
Loading
Loading
Loading
+11 −2
Original line number Diff line number Diff line
@@ -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 400
	ip rule "$1" table public_gateway priority 401
	ip rule "$1" iif lo table local_gateway priority 420
	ip rule "$1" table public_gateway priority 430

	#batman tables
	ip rule "$1" to 10.200.0.0/15 table bat_route priority 500