fix: dynamic firewall config + UFW support + anti-spoof bug fix
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
This commit is contained in:
@@ -18,6 +18,8 @@ type DiagResult struct {
|
||||
IP6ForwardNote string `json:"ip6_forward_note,omitempty"`
|
||||
Masquerade6 *bool `json:"masquerade6"`
|
||||
Masquerade6Note string `json:"masquerade6_note,omitempty"`
|
||||
UFWActive *bool `json:"ufw_active"`
|
||||
UFWForwardNote string `json:"ufw_forward_note,omitempty"`
|
||||
TUNCreate string `json:"tun_create"`
|
||||
TUNRunning bool `json:"tun_running"`
|
||||
TUNName string `json:"tun_name,omitempty"`
|
||||
|
||||
Reference in New Issue
Block a user