Is it possible scenario?
I have 2 WAN links, 1 ethernet (wan1) and PPPoE (pppoe1) both with static IPs
In the local network I have SMTP Server on 192.168.1.3
I need the following:
1. LAN computers use pppoe1 to access Internet
2. SMTP Server is listeting and recieving incoming connections on both wan1 and pppoe1
I tried to do this but SMTP Server is accessible from outside only by pppoe1
My route table:
Code: Select all
# 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
Code: Select all
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
How can I fix it?
P.S.
192.168.1.0/24 - LAN (ether1)
192.168.2.0/24 - ADSL Modem connected to this network (ether2)