hello all,
i have a local network, connected to a Mikrotik router, which has 3 different connections to the internet (3 ADSL modems).
i mangle all the devices from the localnet i want, to route through the specific gateway (ADSL modem) i want..
i also have a main mark, which is used as a “default” gateway for unmangled devices via ADSL-1.
when i try to ping those three different outside addresses from the internet, I can only ping the “default” address (ADSL-1).
my modems are setup to forward all packets to Mikrotik router.
so, is there any way to solve this problem, since i have an external monitor server, to notify me if an ADSL modem is down..
Regards,
George
/ip route
add check-gateway=ping distance=1 gateway=10.122.2.245 pref-src=10.122.2.246 routing-mark=ADSL-3 scope=255
add check-gateway=ping distance=1 gateway=192.168.2.1 pref-src=192.168.2.100 routing-mark=ADSL-1 scope=255
add check-gateway=ping distance=1 gateway=10.122.2.249 pref-src=10.122.2.250 routing-mark=ADSL-2 scope=255
add check-gateway=ping distance=1 gateway=192.168.2.1 pref-src=192.168.2.100 scope=255
/ip firewall mangle
add action=mark-routing chain=prerouting comment="DC-2 from ADSL-3" dst-address=!10.0.0.0/8 in-interface=LocalNet \
new-routing-mark=ADSL-3 src-address=10.122.2.27
add action=mark-routing chain=prerouting comment="DC-1 from ADSL-2" dst-address=!10.0.0.0/8 in-interface=LocalNet \
new-routing-mark=ADSL-2 src-address=10.122.2.26
add action=mark-routing chain=prerouting comment="Gagarin (Weather) from ADSL-2" dst-address=!10.0.0.0/8 in-interface=\
LocalNet new-routing-mark=ADSL-2 src-address=10.122.2.45
add action=mark-routing chain=prerouting comment="Kropotkin (Zbutsam) from ADSL-1" dst-address=!10.0.0.0/8 in-interface=\
LocalNet new-routing-mark=ADSL-1 src-address=10.122.2.44
add action=mark-routing chain=prerouting comment="Stravinsky (Tritonous) from ADSL-2" dst-address=!10.0.0.0/8 \
in-interface=LocalNet new-routing-mark=ADSL-2 src-address=10.122.2.47
add action=mark-routing chain=prerouting comment="Marx (Jazzetry) from ADSL-2" dst-address=!10.0.0.0/8 in-interface=\
LocalNet new-routing-mark=ADSL-2 src-address=10.122.2.48
i still cant solve this problem..
anyone can help ?
Sob
June 2, 2017, 12:02am
4
Router needs a little hint where to send replies:
/ip firewall mangle
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=<adsl1> new-connection-mark=isp1 \
passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=<adsl2> new-connection-mark=isp2 \
passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark in-interface=<adsl3> new-connection-mark=isp3 \
passthrough=yes
add action=mark-routing chain=output connection-mark=isp1 new-routing-mark=ADSL-1 passthrough=yes
add action=mark-routing chain=output connection-mark=isp2 new-routing-mark=ADSL-2 passthrough=yes
add action=mark-routing chain=output connection-mark=isp3 new-routing-mark=ADSL-3 passthrough=yes