Many to Many NAT

Well, I have done a lot of search, but didn’t find an exact answer to my case.

I have a local PPPoE server with around 4500 clients attached to it, I need to nat their subnet 10.64.0.0/16 to (5) Public IP addresses, I know it should be netmap with one line command but I couldn’t figure out how to make it.

I need to make something like Cisco’s Pool snat, where you have a pool of public IPs, and nat as much private subnets as you want to that pool.

thanks in advance

Netmap needs a full subnet for it to work, if you cannot specify that (both broadcast and network IPs) you can either use “same” or “src-nat” as the action and specify the pool of addresses there for the to-address. Src-nat will be random with what IP it chooses to NAT a connection out of, same will be consistent for individual IPs.