Помогите новичку разобратся...

Раздел для тех, кто начинает знакомиться с MikroTik
Правила форума
Как правильно оформить вопрос.
Прежде чем начать настройку роутера, представьте, как это работает. Попробуйте почитать статьи об устройстве интернет-сетей. Убедитесь, что всё, что Вы задумали выполнимо вообще и на данном оборудовании в частности.
Не нужно изначально строить Наполеоновских планов. Попробуйте настроить простейшую конфигурацию, а усложнения добавлять в случае успеха постепенно.
Пожалуйста, не игнорируйте правила русского языка. Отсутствие знаков препинания и неграмотность автора топика для многих гуру достаточный повод проигнорировать топик вообще.

1. Назовите технологию подключения (динамический DHCP, L2TP, PPTP или что-то иное)
2. Изучите темку "Действия до настройки роутера".
viewtopic.php?f=15&t=2083
3. Настройте согласно выбранного Вами мануала
4. Дочитайте мануал до конца и без пропусков, в 70% случаев люди просто не до конца читают статью и пропускают важные моменты.
5. Если не получается, в Winbox открываем терминал и вбиваем там /export hide-sensitive. Результат в топик под кат, интимные подробности типа личных IP изменить на другие, пароль забить звездочками.
6. Нарисуйте Вашу сеть, рисунок (схему) сюда. На словах может быть одно, в действительности другое.
Ответить
tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

Есть роутер и 3g модем, задача стоит сделать чтоб модем запускался при отключение основного провайдера, и при подключение основного провайдера чтоб интернет работал через него, только что делал все по этой инструкции http://micro-drive.ru/stati/41-rezervir ... odema.html, но после окончания всей настройки работает все только через 3g, подключение к интернету происходит через pptp, я понимаю что я сделал что то не так, а что именно не могу понять.. помогите пожалуйста:)


Erik_U
Сообщения: 1753
Зарегистрирован: 09 июл 2014, 12:33

ВЫ что-то сделали не так!

Попробуйте конфигурацию сюда выложить, убрав пароли и адреса.
Если, конечно, не хотите сохранить интригу.


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

Код: Выделить всё

/interface bridge
add admin-mac=64:D1:54:90:8A:2E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment=ISP1
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
    disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=\
    MikroTik-908A33 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-Ceee \
    disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=\
    MikroTik-908A32 wireless-protocol=802.11
/interface pptp-client
add add-default-route=yes connect-to=******** disabled=no name=pptp-out1 \
    password=******** user=*******
/ip neighbor discovery
set ether1 discover=no
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/port
set 0 name=usb1
/interface ppp-client
add apn=3g.kyivstart.net comment=ISP2 data-channel=2 dial-on-demand=no \
    disabled=no info-channel=1 name="3g Mpdem" port=usb1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=\
    ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
    invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface=ether1
/ip firewall nat
# pptp-out1 not ready
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=\
    pptp-out1
add action=masquerade chain=srcnat out-interface="3g Mpdem"
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add comment=ISP2 disabled=yes distance=1 gateway="3g Mpdem"
add comment=ISP1 disabled=yes distance=1 dst-address=0.0.0.0/24 gateway=ether1
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=ether1
/system clock
set time-zone-name=Europe/Kiev
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
/tool netwatch
add down-script="ip route set [find comment=\"ISP1\"] disabled=yes\r\
    \ninterface ppp-client enable [find comment=\"ISP2\"]" host=8.8.4.4 \
    interval=10s up-script="ip route set [find comment=\"ISP1\"] disabled=no\r\
    \ninterface ppp-client disable [find comment=\"ISP2\"]"
[admin@MikroTik] > 
Несколько раз пробовал, ничего не выходит....


Erik_U
Сообщения: 1753
Зарегистрирован: 09 июл 2014, 12:33

У вас при подклбючении РРР туда автоматом ставится дефолт роутер
/interface pptp-client
add add-default-route=yes connect-to=******** disabled=no name=pptp-out1 \
password=******** user=*******

Нужно автоматику выключить,
а в IP/Routes создать 2 статические записи дефолта с разными метриками.
Для SP1 метрику 2, для SP2 метрику 1.


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

Извиняюсь, а можно поподробнее? Я не пойму что нужно сделать:( не судите строго...


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

Erik_U писал(а): 16 мар 2018, 09:32 У вас при подклбючении РРР туда автоматом ставится дефолт роутер
/interface pptp-client
add add-default-route=yes connect-to=******** disabled=no name=pptp-out1 \
password=******** user=*******

Нужно автоматику выключить,
а в IP/Routes создать 2 статические записи дефолта с разными метриками.
Для SP1 метрику 2, для SP2 метрику 1.
автоматика это вот этот пункт add-default-route? я его выключил, а вот второй пункт не пойму...


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

Код: Выделить всё

# mar/18/2018 22:37:51 by RouterOS 6.39.2
# software id = LPJF-7DKB
#
/interface bridge
add admin-mac=64:D1:54:90:8A:2E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment=ISP1
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce disabled=no \
    distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-908A33 \
    wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-Ceee \
    disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-908A32 \
    wireless-protocol=802.11
/interface pptp-client
add connect-to=********* disabled=no name=pptp-out1 password=******* user=\
   *********
/ip neighbor discovery
set ether1 discover=no
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/port
set 0 name=usb1
/interface ppp-client
add apn=3g.kyivstart.net comment=ISP2 data-channel=2 dial-on-demand=no disabled=no \
    info-channel=1 name="3g Mpdem" port=usb1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf:  drop all from WAN not DSTNATed" \
    connection-nat-state=!dstnat connection-state=new in-interface=ether1
/ip firewall nat
# pptp-out1 not ready
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=\
    pptp-out1
add action=masquerade chain=srcnat out-interface="3g Mpdem"
add action=masquerade chain=srcnat out-interface=ether1
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add comment=ISP2 distance=1 gateway="3g Mpdem"
add comment=ISP1 disabled=yes distance=2 gateway=pptp-out1
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=ether1
/system clock
set time-zone-name=Europe/Kiev
/system routerboard settings
set init-delay=0s
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
/tool netwatch
add down-script="ip route set [find comment=\"ISP1\"] disabled=yes\r\
    \ninterface ppp-client enable [find comment=\"ISP2\"]" host=8.8.4.4 interval=10s \
    up-script="ip route set [find comment=\"ISP1\"] disabled=no\r\
    \ninterface ppp-client disable [find comment=\"ISP2\"]"
подскажите что сейчас не так??
логин и пароль от провайдера верные!)


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

все по новой переделал, тепеперь к основному провайдеру подключаюсь, но интрнета при этом нет....

Код: Выделить всё

 # jan/02/1970 00:39:48 by RouterOS 6.39.2
# software id = LPJF-7DKB
#
/interface bridge
add admin-mac=64:D1:54:90:8A:2E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce \
    disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=\
    MikroTik-908A33 wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-Ceee \
    disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=\
    MikroTik-908A32 wireless-protocol=802.11
/interface pptp-client
add comment=ISP1 connect-to=******* disabled=no name=pptp-out1 \
    password=******user=******
/ip neighbor discovery
set ether1 discover=no
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/port
set 0 name=usb1
/interface ppp-client
add apn=3g.kyivstar.net comment=ISP2 data-channel=2 default-route-distance=1 \
    dial-on-demand=no disabled=no info-channel=1 name="3G MODEM" port=usb1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=\
    192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=\
    ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" \
    connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" \
    connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=\
    invalid
add action=drop chain=forward comment=\
    "defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat \
    connection-state=new in-interface=ether1
add action=drop chain=input comment="Deny invalid connections" \
    connection-state=invalid
add chain=input comment="Permit icmp" protocol=icmp
add action=drop chain=output comment=\
    "Deny 8.8.4.4 to reserved internet-channel" dst-address=8.8.4.4 \
    out-interface=all-ppp protocol=icmp
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=\
    ether1
add action=masquerade chain=srcnat out-interface=pptp-out1
add action=masquerade chain=srcnat out-interface="3G MODEM"
/ip route
add comment=ISP2 distance=1 gateway="3G MODEM"
add comment=ISP1 disabled=yes distance=2 gateway=pptp-out1
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=ether1
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=pptp-out1
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
/tool netwatch
add down-script="ip route set [find comment=\"ISP1\"] disabled=yes\r\
    \ninterface ppp-client enable [find comment=\"ISP2\"]" host=8.8.4.4 \
    interval=20s up-script="ip route set [find comment=\"ISP1\"] disabled=no\r\
    \ninterface ppp-client disable [find comment=\"ISP2\"]"


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

подскажите пожалуймта, надеюсь последний раз:) после включения запускается подключение pptp, но при этом интернет не работает пускает только в лкалку, хотя в личном кабинете я вижу подключение пошло от роутера, далее попробовал сменить пароль от учетки основного провайдера и роутер не переключился на 3g, помогите решить этот вопрос, буду очень благодарен!!!

Код: Выделить всё

# mar/20/2018 15:41:34 by RouterOS 6.39.2
# software id = LPJF-7DKB
#
/interface bridge
add admin-mac=64:D1:54:90:8A:2E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-908A33 \
    wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-Ceee disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=MikroTik-908A32 \
    wireless-protocol=802.11
/interface pptp-client
add comment=ISP1 connect-to=megaline.org.ua disabled=no name=pptp-out1 password=77416555 user=kompmaster
/ip neighbor discovery
set ether1 discover=no
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/port
set 0 name=usb1
/interface ppp-client
add apn=3g.kyivstar.net comment=ISP2 data-channel=2 default-route-distance=1 dial-on-demand=no disabled=no info-channel=1 name="3G MODEM" port=usb1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf:  drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface=ether1
add action=drop chain=input comment="Deny invalid connections" connection-state=invalid
add chain=input comment="Permit icmp" protocol=icmp
add action=drop chain=output comment="Deny 8.8.4.4 to reserved internet-channel" dst-address=8.8.4.4 out-interface=all-ppp protocol=icmp
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=ether1
add action=masquerade chain=srcnat out-interface=pptp-out1
add action=masquerade chain=srcnat out-interface="3G MODEM"
add action=accept chain=srcnat out-interface=pptp-out1
/ip route
add comment=ISP2 distance=2 gateway="3G MODEM"
add comment=ISP1 disabled=yes distance=1 gateway=pptp-out1
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=ether1
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=pptp-out1
/system clock
set time-zone-name=Europe/Kiev
/system routerboard settings
set init-delay=0s
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
/tool netwatch
add down-script="ip route set [find comment=\"ISP1\"] disabled=yes\r\
    \ninterface ppp-client enable [find comment=\"ISP2\"]" host=8.8.4.4 interval=20s up-script=\
    "ip route set [find comment=\"ISP1\"] disabled=no\r\
    \ninterface ppp-client disable [find comment=\"ISP2\"]"


tma
Сообщения: 5
Зарегистрирован: 14 мар 2018, 02:15

если тут еще кто то есть помогите!))) сменил провайдера опять сделал настройку резервирования, но при включенных двух каналах интернет идет через 3g, спасите...
# software id = LPJF-7DKB
#
/interface bridge
add name=LAN
add admin-mac=64:D1:54:90:8A:2E auto-mac=no comment=defconf name=bridge
/interface ethernet
set [ find default-name=ether1 ] comment=ISP1
set [ find default-name=ether2 ] name=ether2-master
set [ find default-name=ether3 ] master-port=ether2-master
set [ find default-name=ether4 ] master-port=ether2-master
set [ find default-name=ether5 ] master-port=ether2-master
/interface wireless
set [ find default-name=wlan1 ] band=2ghz-b/g/n channel-width=20/40mhz-Ce disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=Leno4ka wireless-protocol=802.11
set [ find default-name=wlan2 ] band=5ghz-a/n/ac channel-width=20/40/80mhz-Ceee disabled=no distance=indoors frequency=auto mode=ap-bridge ssid=Leno4ka5 \
wireless-protocol=802.11
/ip neighbor discovery
set ether1 discover=no
/interface wireless security-profiles
set [ find default=yes ] authentication-types=wpa2-psk,wpa2-eap mode=dynamic-keys wpa2-pre-shared-key= *****
/ip hotspot profile
set [ find default=yes ] html-directory=flash/hotspot
/ip pool
add name=default-dhcp ranges=192.168.88.10-192.168.88.254
/ip dhcp-server
add address-pool=default-dhcp disabled=no interface=bridge name=defconf
/port
set 0 name=usb1
/interface ppp-client
add apn=3g.kyivstar.net data-channel=2 dial-on-demand=no disabled=no info-channel=1 name="3G Kyivstar" port=usb1
/interface bridge port
add bridge=bridge comment=defconf interface=ether2-master
add bridge=bridge comment=defconf interface=wlan1
add bridge=bridge comment=defconf interface=wlan2
/ip address
add address=192.168.88.1/24 comment=defconf interface=bridge network=192.168.88.0
/ip dhcp-client
add comment=defconf dhcp-options=hostname,clientid disabled=no interface=ether1
/ip dhcp-server network
add address=192.168.88.0/24 comment=defconf gateway=192.168.88.1
/ip dns
set allow-remote-requests=yes
/ip dns static
add address=192.168.88.1 name=router
/ip firewall filter
add action=accept chain=input comment="defconf: accept ICMP" protocol=icmp
add action=accept chain=input comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=input comment="defconf: drop all from WAN" in-interface=ether1
add action=fasttrack-connection chain=forward comment="defconf: fasttrack" connection-state=established,related
add action=accept chain=forward comment="defconf: accept established,related" connection-state=established,related
add action=drop chain=forward comment="defconf: drop invalid" connection-state=invalid
add action=drop chain=forward comment="defconf: drop all from WAN not DSTNATed" connection-nat-state=!dstnat connection-state=new in-interface=ether1
add action=drop chain=input comment="Deny invalid connections" connection-state=invalid
add chain=input comment="Permit icmp" protocol=icmp
add chain=input comment=" Permit established connections" connection-state=established
add action=drop chain=output comment="Deny 8.8.4.4 to reserved internet-channel" dst-address=8.8.4.4 out-interface=all-ppp protocol=icmp
add action=drop chain=input comment="Deny invalid connections" connection-state=invalid
add chain=input comment="Permit icmp" protocol=icmp
add chain=input comment="Permit established connections" connection-state=established
add chain=input comment="Permit related connections" connection-state=related
add action=drop chain=input comment="Deny new connections" connection-state=new in-interface=!bridge
add action=drop chain=output comment="Deny 8.8.4.4 to reserved internet-channel" dst-address=8.8.4.4 out-interface=all-ppp protocol=icmp
/ip firewall nat
add action=masquerade chain=srcnat comment="defconf: masquerade" out-interface=ether1
add action=masquerade chain=srcnat out-interface="3G Kyivstar"
add action=masquerade chain=srcnat out-interface="3G Kyivstar"
/ip route
add comment=ISP1 distance=1 gateway=10.154.0.1
add comment=ISP2 distance=2 gateway="3G Kyivstar"
add check-gateway=ping distance=1 dst-address=8.8.4.4/32 gateway=ether1
/system clock
set time-zone-name=Europe/Kiev
/system routerboard settings
set init-delay=0s
/tool mac-server
set [ find default=yes ] disabled=yes
add interface=bridge
/tool mac-server mac-winbox
set [ find default=yes ] disabled=yes
add interface=bridge
/tool netwatch
add down-script="ip route set [find comment=\"ISP1\"] disabled=yes\r\
\ninterface ppp-client enable [find comment=\"ISP2\"]" host=8.8.4.4 interval=30s up-script=\
"ip route set [find comment=\"ISP1\"] disabled=no\r\
\ninterface ppp-client disable [find comment=\"ISP2\"]"


Ответить