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
| 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 |
| 331 | type Masq struct { |
| 332 | Random bool |
| 333 | FullyRandom bool |
| 334 | Persistent bool |
| 335 | ToPorts bool |
| 336 | RegProtoMin uint32 |
| 337 | RegProtoMax uint32 |
| 338 | } |
| 339 | |
| 340 | const ( |
| 341 | // NF_NAT_RANGE_PROTO_RANDOM defines flag for a random masquerade |
nothing calls this directly
no outgoing calls
no test coverage detected