Update README.md and glorytun-setup

Signed-off-by: Adrien Gallouët <adrien@gallouet.fr>
This commit is contained in:
Adrien Gallouët
2019-02-12 11:10:55 +00:00
parent b91788080f
commit 324ba6d525
2 changed files with 11 additions and 8 deletions

View File

@@ -59,7 +59,9 @@ TABLE=200
# keep the current route to HOST
SRC=$(ip route get "$HOST" | awk '/src/{getline;print $0}' RS=' ')
ip rule add from "$SRC" table main pref "$((PREF-1))" || true
glorytun path up "$SRC" dev "$DEV"
# limit to 100Mbit by default
glorytun path up "$SRC" dev "$DEV" rate rx 12500000 tx 12500000
# forward everything else to the tunnel
ip rule add from all table "$TABLE" pref "$PREF" || true