Root cause: UFW FORWARD policy DROP overrides lmvpn_nat accept rules. DNS (small UDP) worked but TCP packets were silently dropped. - Add firewall_linux.go: dynamic NAT/forward/UFW config from ApplySettings - Add firewall_darwin.go/firewall_other.go: stubs - Fix anti-spoof bug in switch.go: return dropPacket sentinel instead of nil, so spoofed packets are no longer written to TUN - Simplify install_linux.sh: remove hardcoded subnets and NAT config - Add UFW detection to diag panel
14 lines
250 B
Go
14 lines
250 B
Go
//go:build darwin
|
|
|
|
package vpn
|
|
|
|
import "log"
|
|
|
|
func configureFirewall(ipNet, ipNet6 string, tunName string) {
|
|
log.Printf("防火墙配置在当前平台不支持,请手动配置 NAT 和转发规则")
|
|
}
|
|
|
|
func checkUFWActive() bool {
|
|
return false
|
|
}
|