Hi,
I’m having problems with either dst-nat, or masqurade (I’m not 100% which one is causing the issues)…
MT1 Gateway, 3 Interfaces (2.9.6):
ether0 - 198.18.0.1/28
ether1 - 198.18.0.17/28
ether2 - unused
MT2 Border, 3 Interfaces (2.9.9):
ether0 - 198.18.0.2/28
ether1 - 192.168.1.1/24 (Masq, Private Network)
ether2 - 198.18.60.0/27 (Server Farm)
On MT1 I have:
0 X ;;; Transparent SMTP Service
chain=dstnat src-address=198.18.60.2 protocol=tcp dst-port=25
action=accept
1 X chain=dstnat protocol=tcp dst-port=25
src-address-list=Everyone (The Mesh)
dst-address-list=!Everyone (The Mesh) action=dst-nat
to-addresses=198.18.60.2 to-ports=25
Rule 0, Allows access from my SMTP Server, to go through the Gateway to the Internet. Rule 1, diverts traffic from my network, through MT2, to the Server Farm.
Using the Packet Sniffer, I can see these packets arriving at MT2. However, the source address of these packets, are the IP address of ether0, not the client (Which, leads me to believe that this is in fact affected by the masq rule on MT2).
MT2, has the following masq rule:
0 ;;; Outbound SRC NAT for Internal Network, excluding to the Server Farm
chain=srcnat src-address=192.168.1.0/24 action=masquerade
Masq everything from 192.168.1.0/24.
Does anyone have any idea why this is not working? Some quick notes:
- I do see the packet count increasing on the Gateway. Thus, the gateway sees the packet, and diverts it to 198.18.60.2
- I do see the packet arriving at MT2, HOWEVER, source-address has changed to the Interface address of MT1. It’s not the client address anymore.
- From MT2, I see no data arriving at the actual address where the Gateway redirects the traffic to.
Any help, much appreciated.
Thanks,