Multiple Interface
-
Hello,
I have 3 Interfaces
1-WAN
2-LAN ==> 192.168.10.0/23
3-MTA <== for mail server local 192.168.178.0/24I have local mail server having two NIC one is directly connected with local ip of same subnet as MTA interface of firewall and one with WAN IP for mail server.
on mail server I have added a static route to route lan subnet via local interface which is connected to firewall MTA .
ip route add 192.168.10.0/23 via 192.168.178.1 dev eth0
Now all I want is to route all port 25 request which is made locally to route MTA interface which are made from LAN subnet ?
any help would be appreciated.Regards
-
@scorpoin all connections to 25 from LAN? That would be like this but port 25:
https://docs.netgate.com/pfsense/en/latest/recipes/dns-redirect.html -
Only a hint or tip by site from me about that set up.
Would it not be better to set up the mail server in a
DMZ able to connect the internet and also from the
LAN users fetching their mail? I mean it is common
and not a work around and you spare a eth port too.I have 3 Interfaces
1-WAN
2-LAN ==> 192.168.10.0/23
3-MTA <== for mail server local 192.168.178.0/24WAN, LAN, DMZ port and in the DMZ the mail server
will be placed. It is also able to set up the IP on the
pfSense and then on the server the or a local private
IP address. You may be also able to set up a reverse
proxy such lightSquid on the pfSense in front of the
mail server, so no direct contact is existing. -
I did exactly same now question is , I don't want to send request of port 25 via WAN but it suppose to goes via DMZ (MTA) .