mirror of
https://github.com/fosrl/newt.git
synced 2026-03-07 03:06:42 +00:00
Add disable icmp
This commit is contained in:
@@ -41,6 +41,7 @@ type PortRange struct {
|
|||||||
type SubnetRule struct {
|
type SubnetRule struct {
|
||||||
SourcePrefix netip.Prefix // Source IP prefix (who is sending)
|
SourcePrefix netip.Prefix // Source IP prefix (who is sending)
|
||||||
DestPrefix netip.Prefix // Destination IP prefix (where it's going)
|
DestPrefix netip.Prefix // Destination IP prefix (where it's going)
|
||||||
|
DisableIcmp bool // If true, ICMP traffic is blocked for this subnet
|
||||||
RewriteTo string // Optional rewrite address for DNAT - can be IP/CIDR or domain name
|
RewriteTo string // Optional rewrite address for DNAT - can be IP/CIDR or domain name
|
||||||
PortRanges []PortRange // empty slice means all ports allowed
|
PortRanges []PortRange // empty slice means all ports allowed
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user