I am about to deploy a NAT-server using VPP and cgnat.
We have several NAT-servers running VyOS cgnat the ordinary way and those work wonders. Now with VPP however i am confused on how i can see port allocation like the command:
“show nat cgnat allocation”
Are there an equivalent for VPP or do i need to do the math myself?
Logging of source-port and external address is crucial for our operations
current test-config
set vpp nat cgnat exclude rule 10 local-address ‘100.64.0.1’
set vpp nat cgnat exclude rule 20 local-address ‘100.64.4.1’
set vpp nat cgnat exclude rule 30 local-address ‘100.64.8.1’
set vpp nat cgnat exclude rule 40 local-address ‘100.64.12.1’
set vpp nat cgnat exclude rule 60 local-address ‘100.64.64.1’
set vpp nat cgnat exclude rule 70 local-address ‘100.64.68.1’
set vpp nat cgnat exclude rule 80 local-address ‘100.64.72.1’
set vpp nat cgnat exclude rule 50 local-address ‘100.64.74.1’
set vpp nat cgnat interface inside ‘eth5’
set vpp nat cgnat interface outside ‘eth6’
set vpp nat cgnat rule 10 inside-prefix ‘100.64.0.0/20’
set vpp nat cgnat rule 10 outside-prefix ‘X.X.X.X/27’
set vpp nat cgnat rule 20 inside-prefix ‘100.64.64.0/20’
set vpp nat cgnat rule 20 outside-prefix ‘X.X.X.X/27’
set vpp settings interface eth5
set vpp settings interface eth6
Only command i can find is:
show vpp nat cgnat mappings
Inside Outside Sharing ratio Ports per host Sessions
100.64.0.0/20 X.X.X.X/27 128 504 0
100.64.64.0/20 X.X.X.X/27 128 504 0