I have changed my ISP and have a problem with configuring my RouterOS installation.
The previous ISP provided only one external (1) IP address - thus I used SRC NAT with MASQUERADE all was fine.
However my new ISP gave me one internal (1) IP address and a range of IP addresses that are public (e.g. one (1) 87.199.20.70/30 and then a range of IP addresses which are pingable from the Internet - e.g. 217.122.1.50/29).
I am baffled how to setup this type of connection where I have 2 different subnets and would be grateful for any and all tips
You have to add 87.199.20.70/30 at WAN interface & 217.122.1.49/29 at LAN interface. Your usable IP will be 217.122.1.50-217.122.1.54 & configuration will be :
Thanks a lot And then for my local addresses to have internet access (e.g. clients in the 192.168.1.1/24 subnet) I should assign 192.168.1.1 to ether3 and create a SRCNAT/MASQUERADE rule in firewall?
Hmmmm.. unfortunately the proposed configuration doesen’t work
What I don’t understand - how does adding an IP to LAN2 (add address=217.122.1.49/29 disabled=no interface=ether2) make a difference when it’s not physically connected to any other LAN ports or in a bridge?
I have a similar situation with a /28 that is currently on a Fortigate that I want to move to MikroTik. If I understand the above it maps the 217.122.1.50 public address to the 192.168.1.10 address on the outgoing side (from the 192.168…) and provides NAT and source masking. What would the incoming side look like?
This would NAT all traffic through, you could reduce this to just the ports you want by adding some ports eg
dst-port=80,8080
Note that NAT happens first and then IP → Firewall → Filter so you need to make sure the traffic is allowed in the forward chain using the internal address as the dst-address, eg: