diff --git a/config/config.go b/config/config.go index d9dcf9feb..92d5e0b09 100644 --- a/config/config.go +++ b/config/config.go @@ -208,7 +208,7 @@ func UnmarshalRawConfig(buf []byte) (*RawConfig, error) { ProxyGroup: []map[string]interface{}{}, Tun: Tun{ Enable: false, - Stack: "lwip", + Stack: "gvisor", DNSListen: "0.0.0.0:53", AutoRoute: true, }, diff --git a/listener/tun/dev/dev.go b/listener/tun/dev/dev.go index 13dca8d5f..4df41cbac 100644 --- a/listener/tun/dev/dev.go +++ b/listener/tun/dev/dev.go @@ -21,6 +21,7 @@ type TunDevice interface { func SetLinuxAutoRoute() { log.Infoln("Tun adapter auto setting global route") + addLinuxSystemRoute("0") addLinuxSystemRoute("1") addLinuxSystemRoute("2/7") addLinuxSystemRoute("4/6") @@ -34,6 +35,7 @@ func SetLinuxAutoRoute() { func RemoveLinuxAutoRoute() { log.Infoln("Tun adapter removing global route") + delLinuxSystemRoute("0") delLinuxSystemRoute("1") delLinuxSystemRoute("2/7") delLinuxSystemRoute("4/6")