Hi there, > Breaking this out into its own thread. > > > Currently when creating a new dynamic NAT session, the source IP and source > port are considered. If I've understood this right, the next time the user > (source IP) sends traffic matching the previous traffic (source IP + source > port), the same external IP should be assigned. > > > However, I'd want to make sure the source IP always gets the same external > IP, regardless of port used. > > > I'm looking for suggestions and ideas as to how this can be achieved. Is the > 4-tuple hash key the only deciding factor here?
The NAT implementation address and port allocation algorithm is plugable. You can add your own. Check out nat.h: /* Address and port allocation function */ nat_alloc_out_addr_and_port_function_t *alloc_addr_and_port; Best regards, Ole
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12143): https://lists.fd.io/g/vpp-dev/message/12143 Mute This Topic: https://lists.fd.io/mt/29639823/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-