edofullo Io ricordavo che le regole di firewall fossero processate in sequenza, finchè non se ne trova una che fa match.
Vero my bad pensavo parlassimo delle regole di traslazione
edofullo Si ma per il NAT 1:1 è una gran rottura di cocomeri... forse si potrebbe mettere un bel if e in caso si sia in 1:1 assegnarlo?
Direttamente dallo sviluppatore di NAT46:
Why does your interface not have an IP address?
IP-addressing-wise this interface doesn’t exist - the MAP standard doesn’t split the port overload and v4-v6 translation… one in theory can assign an IP (which?) to it, but since conceptually it is a point to point interface to a “virtual magic translator box”, one don’t need address on it.
So to me this looks very similar to a PPP tunnel and I really don't
understand why you don't provide an IP to that interface. Is it
because there is actually no gateway so the data would be stuck?it’s more that that address would need to come from somewhere - and be essentially bogus. Between dealing with a bogus address and none at all the latter option seemed more appealing.
Well the firewall for sure knows the DNAT and SNAT v4 address to perform
the NAPT operations, I'm not completely sure if you calculate it using the
provided roules.You can not just assign the public IPv4 address that you have only
part of. You do not own that address, you only own selected port
ranges from it.If you assign it to an interface, you suddenly have to deal with the
OS port allocation algorithms as well, etc.