From 7197f99c984ec67018cc1ee4dfaacbd47a8e5c8c Mon Sep 17 00:00:00 2001 From: Erisa A Date: Mon, 1 Aug 2022 02:52:09 +0100 Subject: [PATCH] Add IPv6 routes to example service This is necessary for the example since it says `-6 "[::1]:1000"` --- go-mmproxy.service.example | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/go-mmproxy.service.example b/go-mmproxy.service.example index d50f299..1e87b1f 100644 --- a/go-mmproxy.service.example +++ b/go-mmproxy.service.example @@ -7,9 +7,13 @@ Type=simple LimitNOFILE=65535 ExecStartPost=/sbin/ip rule add from 127.0.0.1/8 iif lo table 123 ExecStartPost=/sbin/ip route add local 0.0.0.0/0 dev lo table 123 +ExecStartPost=/sbin/ip -6 rule add from ::1/128 iif lo table 123 +ExecStartPost=/sbin/ip -6 route add local ::/0 dev lo table 123 ExecStart=/usr/bin/go-mmproxy -4 127.0.0.1:1000 -6 "[::1]:1000" -allowed-subnets /usr/share/path-prefixes.txt -l 0.0.0.0:1234 ExecStopPost=/sbin/ip rule del from 127.0.0.1/8 iif lo table 123 ExecStopPost=/sbin/ip route del local 0.0.0.0/0 dev lo table 123 +ExecStopPost=/sbin/ip -6 rule del from ::1/128 iif lo table 123 +ExecStopPost=/sbin/ip -6 route del local ::/0 dev lo table 123 Restart=on-failure RestartSec=10s