Привет! Возможен ли такой сценарий? У меня есть 2 WAN-соединения: 1 Ethernet (wan1) и PPPoE (pppoe1), оба с фиксированными IP-адресами. В локальной сети у меня есть SMTP-сервер на 192.168.1.3. Мне нужно следующее: компьютеры в локальной сети используют pppoe1 для доступа в Интернет, а SMTP-сервер принимает и отвечает на входящие подключения по обоим WAN-соединениям (wan1 и pppoe1). Я пытался это сделать, но SMTP-сервер доступен извне только через pppoe1.
Моя таблица маршрутизации:
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 A S 80.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
1 ADC 192.168.1.0/24 192.168.1.2 lan1
2 ADC 192.168.2.0/24 192.168.2.1 wan2
3 ADC 195.xxx.xxx.227/32 87.xxx.xxx.200 pppoe1
4 A S 217.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
5 ADC 217.xxx.xxx.16/28 217.xxx.xxx.18 wan1
6 A S 217.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
7 A S 217.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
8 A S 0.0.0.0/0 87.xxx.xxx.200 r 195.xxx.xxx.227 pppoe1
Правила NAT:
1 ;;; SMTP Server (pppoe1)
chain=dstnat dst-address=87.xxx.xxx.200 protocol=tcp dst-port=25
action=dst-nat to-addresses=192.168.1.3 to-ports=25
2 ;;; SMTP Server (wan1)
chain=dstnat dst-address=217.xxx.xxx.18 protocol=tcp dst-port=25
action=dst-nat to-addresses=192.168.1.3 to-ports=25
SMTP доступен только с 87.xxx.xxx.200. Как это исправить?
P.S. 192.168.1.0/24 - LAN (ether1)
192.168.2.0/24 - ADSL модем, подключенный к этой сети (ether2)
Моя таблица маршрутизации:
# DST-ADDRESS PREF-SRC G GATEWAY DISTANCE INTERFACE
0 A S 80.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
1 ADC 192.168.1.0/24 192.168.1.2 lan1
2 ADC 192.168.2.0/24 192.168.2.1 wan2
3 ADC 195.xxx.xxx.227/32 87.xxx.xxx.200 pppoe1
4 A S 217.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
5 ADC 217.xxx.xxx.16/28 217.xxx.xxx.18 wan1
6 A S 217.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
7 A S 217.xxx.xxx.0/24 217.xxx.xxx.18 r 217.xxx.xxx.17 wan1
8 A S 0.0.0.0/0 87.xxx.xxx.200 r 195.xxx.xxx.227 pppoe1
Правила NAT:
1 ;;; SMTP Server (pppoe1)
chain=dstnat dst-address=87.xxx.xxx.200 protocol=tcp dst-port=25
action=dst-nat to-addresses=192.168.1.3 to-ports=25
2 ;;; SMTP Server (wan1)
chain=dstnat dst-address=217.xxx.xxx.18 protocol=tcp dst-port=25
action=dst-nat to-addresses=192.168.1.3 to-ports=25
SMTP доступен только с 87.xxx.xxx.200. Как это исправить?
P.S. 192.168.1.0/24 - LAN (ether1)
192.168.2.0/24 - ADSL модем, подключенный к этой сети (ether2)
