If "/ip firewall nat add chain=src-nat out-interface=<public_if> action=srcnat to-address=2.2.2.2" is not easy, then one needs TP-Link WR740N - it has much more easier configuration interface
The original poster didn't make themselves clear, but people following behind looking for information on how to implement NAT444 don't want to read this kind of passive aggressive answer. Can we at least try to make these forums useful and friendly? The wiki documentation is incomplete, so can't give all the answers. (And a wiki is meant to allow collaboration)
NAT444/CGN/LSN takes effort to implement effectively. Yes, I know it's just source NAT, but it would just be called NAT if that was the only consideration. NAT444 usually comes with problems, the biggest of which seems to be accountability. Logging every NAT translation is resource consuming. RFC 7422 deterministic address mapping is a good workaround and I have used it effectively on previous Mikrotik deployments.
The script published on the wiki page doesn't work any more. I spent an hour or so working out how to fix this and discovered something has changed in RouterOS since this was published. You now need to add an extra
inside the addNatRules function. Without this it just fails. See:
https://wiki.mikrotik.com/wiki/Manual:S ... r_function. I also noticed that the list of rules has an off-by-one error. The jump-list rules are one short at the top so can't reach all the rules at the bottom. I don't know how to fix this since I'm a network engineer.
So, does Mikrotik support NAT444? Well, only inasmuch as it supports NAT for IPv4. For a CGN/LSN solution you have to learn RFC 7422, installation of Mikrotik scripts, Mikrotik version numbers, differences in scripting in Mikrotik releases, and even how to re-write Mikrotik scripts. I appreciate this was given as a config macro, but don't claim it's anything but a broken example from 10 years ago, please.
Some improvements Mikrotik could make:
- Allowing RFC 7422 static rules to be deployed using the UI or even an online tool would be the ideal method
- Showing examples on how to trace back through RFC 7422 mapping would be useful
- Showing how to pin a subscriber to their mapping would also help.
- Fixing the documentation and scripts is vital, since it makes your position weaker when blaming customers for getting confused
Without this Mikrotik can't claim to have a solution, just a bit of NAT and a broken script.
Ben