MCPcopy Create free account
hub / github.com/google/nftables / Masq

Struct Masq

expr/expr.go:331–338  ·  view source on GitHub ↗

Masq (Masquerade) is a special case of SNAT, where the source address is automagically set to the address of the output interface. See also https://wiki.nftables.org/wiki-nftables/index.php/Performing_Network_Address_Translation_(NAT)#Masquerading

Source from the content-addressed store, hash-verified

329// automagically set to the address of the output interface. See also
330// https://wiki.nftables.org/wiki-nftables/index.php/Performing_Network_Address_Translation_(NAT)#Masquerading
331type Masq struct {
332 Random bool
333 FullyRandom bool
334 Persistent bool
335 ToPorts bool
336 RegProtoMin uint32
337 RegProtoMax uint32
338}
339
340const (
341 // NF_NAT_RANGE_PROTO_RANDOM defines flag for a random masquerade

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected