This looks easy on paper but it gives me a headache. An ISP gives a /29 subnet.
Let's say 220.127.116.11/29 is a GW and port eth1 in my Mikrotik has an IP 18.104.22.168/29.
Ports eth2,3,4,5 are LAN network with multiple devices connected. I would like two of them (10.0.0.7,10.0.0.8 ) to use other IPs from the /29 range (22.214.171.124/29 and 126.96.36.199/29) and the rest of hosts to use 188.8.131.52
So in theory I add all /29 IPs to my WAN interface (so eth1 has 184.108.40.206/29, 220.127.116.11/29 and 18.104.22.168/29)
I also create two rules in NAT for each host:
The problem is this is not working. Am I missing something or it's not as straightforward as I think?
Code: Select all
/ip firewall nat add chain=dstnat dst-address=22.214.171.124 action=dst-nat to-addresses=10.0.0.7 /ip firewall nat add chain=srcnat src-address=10.0.0.7 action=src-nat to-addresses=126.96.36.199