Community discussions

MikroTik App
 
0rz6000
just joined
Topic Author
Posts: 1
Joined: Mon Jun 26, 2023 12:12 pm

How to minimize NAT rules for multiple IPs?

Mon Jun 26, 2023 12:20 pm

I have more than 100 IP addresses, and I am currently using PCC(Per-Connection-Classifier) for Source NAT. Each IP corresponds to one SNAT rule.

The rule looks like:
chain=srcnat action=src-nat to-addresses=123.123.123.123 src-address=10.0.0.0/24 out-interface=qsfp28-1-1
per-connection-classifier=both-addresses-and-ports:80/4 log=no log-prefix=""

These IPs are using the same gateway. The reason I use PCC is because I want to perform load balancing for clients, avoiding always using the same IP to access the internet.

I am not sure about the impact on performance. My device is CCR2216-1G-12XS-2XQ
Is there any other way to reduce the number of rules?

Thanks.
 
gabrielpc1190
just joined
Posts: 3
Joined: Tue Nov 15, 2022 4:58 am

Re: How to minimize NAT rules for multiple IPs?

Thu Mar 28, 2024 9:31 am

I am thinking on doing the same.
I have 32 IP address and I want to SRC-NAT my 2000+ clients on them, so I think PCC may work for this.
Any thoughts?

Who is online

Users browsing this forum: Ahrefs [Bot], baragoon, Ferdinando1968, okw and 42 guests