Routing or TCP Relay

Started by mahescho, December 09, 2023, 02:35:34 PM

Previous topic - Next topic
Hi,

my setup looks like this:

MailServer -> OpnSense1 -> Wireguard (Internet) -> OpnSenese2 -> Internet

Port 25 of the mail server has to be routet to OpnSese2 to reach other mail servers. IMHO there are two possible solutions:

1. A policy based route on OpnSense2 pointing to the LAN address of OpnSense2 where the packets get nated and routed out to the internet.

2. A TCP relay on OpnSese2 used at the mailserver.

For 1. I can't figure out how to configure the routing in OpnSesnse1 and for 2. I don't know which plugin to use. A Mail-Relay on OpnSense2 is no option for me.

Any suggestions?

TIA
Matthias
OPNsense 24.1.6-amd64
FreeBSD 13.2-RELEASE-p11
OpenSSL 3.0.13

As usual, I do not know for whatever reason you have to apply such a weird setup....  ::)

Anyways: Are you having issues in outgoing or incoming connections?

Do you want the mailserver be reachable by public IP? Or does the outgoing mail traffic has to use the public IP of your opnsense2?

/KNEBB