6 аплинков pppoe, балансировка - всё работает (от одного провайдера) все с белыми адресами, но, возникла необходимость на один конкретный сервер отправить через один конкретный линк. Исключил этот линк из балансировки - проблем нет, завёл правила которые выпускают на один сервер с одного аплинка - в торче проблем нет, но при падении этого аплинка и поднятии его - маршрутизация в ту сторону падает, ребут не помогает, помогает простой откат настроек на последнюю версию без изменений:
Нужный линк - 00.ppppoe-ISP06, IP 123.123.123.123
212.48.195.247 - шлюз провайдера
216.66.84.54 - адрес, куда надо попасть только с одного аплинка (06)
Частичная конфа:
ip route
Код: Выделить всё
add check-gateway=ping comment=BACKUP distance=1 gateway=11.sfp routing-mark=route_backup
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP06 routing-mark=route_isp_06
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP01routing-mark=route_isp_06
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP02 routing-mark=route_isp_06
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP03 routing-mark=route_isp_06
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP04 routing-mark=route_isp_06
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP05 routing-mark=route_isp_06
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp routing-mark=route_isp_06
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP01 routing-mark=route_isp_01
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP02 routing-mark=route_isp_01
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP03 routing-mark=route_isp_01
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP04 routing-mark=route_isp_01
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP05 routing-mark=route_isp_01
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP06 routing-mark=route_isp_01
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp routing-mark=route_isp_01
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP02 routing-mark=route_isp_02
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP03 routing-mark=route_isp_02
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP04 routing-mark=route_isp_02
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP05 routing-mark=route_isp_02
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP06 \routing-mark=route_isp_02
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP01 routing-mark=route_isp_02
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp routing-mark=route_isp_02
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP03 routing-mark=route_isp_03
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP04 routing-mark=route_isp_03
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP05 routing-mark=route_isp_03
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP06routing-mark=route_isp_03
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP01routing-mark=route_isp_03
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP02 routing-mark=route_isp_03
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp routing-mark=route_isp_03
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP04 routing-mark=route_isp_04
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP05 routing-mark=route_isp_04
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP06 routing-mark=route_isp_04
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP01 routing-mark=route_isp_04
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP02 routing-mark=route_isp_04
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP03 routing-mark=route_isp_04
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp routing-mark=route_isp_04
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP05 routing-mark=route_isp_05
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP06 routing-mark=route_isp_05
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP01 routing-mark=route_isp_05
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP02 routing-mark=route_isp_05
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP03 routing-mark=route_isp_05
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP04 routing-mark=route_isp_05
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp routing-mark=route_isp_05
add check-gateway=arp distance=1 gateway=212.48.195.247%00.pppoe-ISP01
add check-gateway=ping distance=1 gateway=212.48.195.247%00.pppoe-ISP03
add check-gateway=ping distance=1 gateway=212.48.195.247%00.pppoe-ISP05
add check-gateway=ping distance=1 gateway=212.48.195.247%00.pppoe-ISP01
add check-gateway=ping distance=1 gateway=212.48.195.247%00.pppoe-ISP02
add check-gateway=ping distance=1 gateway=11.sfp
add check-gateway=ping distance=1 gateway=212.48.195.247%00.pppoe-ISP04
add check-gateway=ping distance=1 gateway=212.48.195.247%00.pppoe-ISP06
add check-gateway=arp distance=2 gateway=212.48.195.247%00.pppoe-ISP02
add check-gateway=arp distance=3 gateway=212.48.195.247%00.pppoe-ISP03
add check-gateway=arp distance=4 gateway=212.48.195.247%00.pppoe-ISP04
add check-gateway=arp distance=5 gateway=212.48.195.247%00.pppoe-ISP05
add check-gateway=arp distance=6 gateway=212.48.195.247%00.pppoe-ISP06
add check-gateway=arp comment=BACKUP distance=7 gateway=11.sfp
add distance=1 dst-address=149.154.167.0/24 gateway=00.BYPASS_LV
add distance=1 dst-address=216.66.84.54/32 gateway=00.pppoe-ISP06 pref-src=123.123.123.123
Код: Выделить всё
add action=mark-connection chain=input comment="############## PCC \F1\F3\EC\
\EC\E8\F0\EE\E2\E0\ED\E8\E5 \E0\EF\EB\E8\ED\EA\EE\E2 ##############" \
connection-state=new in-interface=00.pppoe-ISP01 log-prefix=pppoe1 \
new-connection-mark=conn_isp_01 passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
00.pppoe-ISP02 log-prefix=pppoe2 new-connection-mark=conn_isp_02 \
passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
00.pppoe-ISP03 new-connection-mark=conn_isp_03 passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
00.pppoe-ISP04 new-connection-mark=conn_isp_04 passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
00.pppoe-ISP05 new-connection-mark=conn_isp_05 passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
00.pppoe-ISP06 new-connection-mark=conn_isp_06 passthrough=yes
add action=mark-connection chain=input connection-state=new in-interface=\
11.sfp new-connection-mark=conn_backup passthrough=yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=00.pppoe-ISP01 log-prefix=pppoe1 new-connection-mark=\
conn_isp_01 passthrough=yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=00.pppoe-ISP02 log-prefix=pppoe2 new-connection-mark=\
conn_isp_02 passthrough=yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=00.pppoe-ISP03 new-connection-mark=conn_isp_03 passthrough=\
yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=00.pppoe-ISP04 new-connection-mark=conn_isp_04 passthrough=\
yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=00.pppoe-ISP05 new-connection-mark=conn_isp_05 passthrough=\
yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=00.pppoe-ISP06 new-connection-mark=conn_isp_06 passthrough=\
yes
add action=mark-connection chain=prerouting connection-state=new \
in-interface=11.sfp new-connection-mark=conn_backup passthrough=yes
add action=mark-routing chain=output connection-mark=conn_isp_01 log-prefix=\
pppoe1 new-routing-mark=route_isp_01 passthrough=yes
add action=mark-routing chain=output connection-mark=conn_isp_02 log-prefix=\
pppoe2 new-routing-mark=route_isp_02 passthrough=yes
add action=mark-routing chain=output connection-mark=conn_isp_03 \
new-routing-mark=route_isp_03 passthrough=yes
add action=mark-routing chain=output connection-mark=conn_isp_04 \
new-routing-mark=route_isp_04 passthrough=yes
add action=mark-routing chain=output connection-mark=conn_isp_05 \
new-routing-mark=route_isp_05 passthrough=yes
add action=mark-routing chain=output connection-mark=conn_isp_06 \
new-routing-mark=route_isp_06 passthrough=yes
add action=mark-routing chain=output connection-mark=conn_backup \
new-routing-mark=route_backup passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local new-connection-mark=conn_isp_01 passthrough=yes \
per-connection-classifier=both-addresses:5/0 src-address-list=BOGONS
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local new-connection-mark=conn_isp_02 passthrough=yes \
per-connection-classifier=both-addresses:5/1 src-address-list=BOGONS
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local new-connection-mark=conn_isp_03 passthrough=yes \
per-connection-classifier=both-addresses:5/2 src-address-list=BOGONS
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local new-connection-mark=conn_isp_04 passthrough=yes \
per-connection-classifier=both-addresses:5/3 src-address-list=BOGONS
add action=mark-connection chain=prerouting connection-mark=no-mark \
dst-address-type=!local new-connection-mark=conn_isp_05 passthrough=yes \
per-connection-classifier=both-addresses:5/4 src-address-list=BOGONS
add action=mark-connection chain=prerouting comment="\CE\F2\EA\EB\FE\F7\E5\ED\
\EE \E4\EB\FF \F2\EE\E3\EE, \F7\F2\EE\E1\FB IPv6 \E1\FB\EB \F7\E8\F1\F2\FB\
\E9 \E8 \E1\E5\E7 \E4\EE\EF\F2\F0\E0\F4\F4\E8\EA\E0. \CF\F0\E8 \E2\EA\EB\
\FE\F7\E5\ED\E8\E8 \ED\E0\F1\F2\F0\EE\E8\F2\FC PCC \E2 Advanced" \
connection-mark=no-mark disabled=yes dst-address-type=!local \
new-connection-mark=conn_isp_06 passthrough=yes \
per-connection-classifier=both-addresses:6/5 src-address-list=BOGONS
add action=mark-routing chain=prerouting connection-mark=conn_isp_01 \
new-routing-mark=route_isp_01 passthrough=yes src-address-list=BOGONS
add action=mark-routing chain=prerouting connection-mark=conn_isp_02 \
new-routing-mark=route_isp_02 passthrough=yes src-address-list=BOGONS
add action=mark-routing chain=prerouting connection-mark=conn_isp_03 \
new-routing-mark=route_isp_03 passthrough=yes src-address-list=BOGONS
add action=mark-routing chain=prerouting connection-mark=conn_isp_04 \
new-routing-mark=route_isp_04 passthrough=yes src-address-list=BOGONS
add action=mark-routing chain=prerouting connection-mark=conn_isp_05 \
new-routing-mark=route_isp_05 passthrough=yes src-address-list=BOGONS
add action=mark-routing chain=prerouting connection-mark=conn_isp_06 \
new-routing-mark=route_isp_06 passthrough=yes src-address-list=BOGONS
add action=mark-connection chain=prerouting connection-mark=no-mark \
new-connection-mark=oTher passthrough=yes
Пытался в мангла прописывать
Код: Выделить всё
add action=mark-routing chain=prerouting comment=dst-address=216.66.84.54/32 new-routing-mark=route_isp_05 passthrough=no
Куда рыть?