Hello, I’m new to mikrotik routers, please move this topic to appropriate section if something wrong with my choice of it.
I want to use Mikrotik RB750 for dual wan, when one WAN is dead another live WAN must work and no failures in connection must be.
I have below configuration for it, and some questions about this configuration.
/interface ethernet set WAN1 mac-address=30:85:A9:EC:7C:BA
/interface ethernet set WAN2 mac-address=30:85:A9:EC:7C:BA/ip dns set allow-remote-requests=yes cache-max-ttl=1w cache-size=5000KiB max-udp-packet-size=512 servers=213.157.196.131,80.77.52.133,8.8.8.8
/ ip address
add address=10.0.1.10/22 network=10.0.1.0 broadcast=10.0.4.255 interface=Local/ ip firewall mangle
add chain=prerouting dst-address=5.178.207.128/25 action=accept in-interface=Localadd chain=prerouting in-interface=WAN1 connection-mark=no-mark action=mark-connection
new-connection-mark=WAN1_connadd chain=prerouting in-interface=Local connection-mark=no-mark dst-address-type=!local
per-connection-classifier=both-addresses:1/0 action=mark-connection new-connection-mark=WAN1_conn
add chain=prerouting connection-mark=WAN1_conn in-interface=Local action=mark-routing
new-routing-mark=to_WAN1add chain=output connection-mark=WAN1_conn action=mark-routing new-routing-mark=to_WAN1
/ ip route
add dst-address=0.0.0.0/0 gateway=5.178.207.129 routing-mark=to_WAN1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=5.178.207.129 distance=1 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=WAN1 action=masquerade
First question is about interfaces…
I name my first two interface as WAN1 and WAN2, they have as default master port “none”, but third interface as Local and it has master port WAN1, does I change it to “none” or leave it alone?
Second question is about this command:
/ ip firewall mangle
add chain=prerouting dst-address=5.178.212.150/25 action=accept in-interface=Local
when I execute it with terminal it doesn’t show any error, but when I check IP/Firewall/Mangle with winbox menu I see different IP there like 5.178.150.128/25 I corrected it with winbox menu but it says “IP address is expected” and doesn’t allow to include there /25
what can I do to write there correct IP?
And Last is this configuration correct for my goal?
Thank you all for answers in advance