YuriAM писал(а):
Настроить PBR по подобию
viewtopic.php?f=3&t=93443только для сервисов, а не для внутренних адресов.
Не получается.
Вот если по шагам.
1. Создаем новую таблицу маршрутизации
DFL-210 - Routing - Routing Tables - Add
Name: Alt
Ordering: Only (у меня стоит first)
Сделал - only.
2. Создаем новый маршрут в таблице Alt
DFL-210 - Routing - Routing Tables - Alt - Add
Interface: wan2
Network: all-nets
Gateway: wan2_gw
Local IP Address: (None)
Metric: 70
Route wan2 all-nets wan2_gw 70 No
Сделал.
Route wan2 all-nets wan2_gw 70 No
3. Создаем правило маршрутизации
DFL-210 - Routing - Routing Rules - Add
Name: Alt_rule
Forward Table: Alt
Return Table: main
Service: Services_wan2
Schedule: (None)
Interface Source: lan
Network Source: lannet
Interface Destination: wan1 (не знаю почему, но именно так работает)
Network Destination: all-nets
Alt_rule lan lannet wan1 all-nets Services_wan2
Сделал и c wan1 и с wan2 - попробовал.
4. Создаем разрешающее правило
DFL-210 - Rules - IP Rules - Add - IP Rule
Name: Allow_wan2_services
Action: NAT
Service: Services_wan2
Schedule: (None)
Interface Source: lan
Network Source: lannet
Interface Destination: wan2
Network Destination: all-nets
После всего сервисы через ван1 работают нормально.
Сервисы через ван2 не работают почему-то.
Я что-то не так прописал?