pieterlouw / caddy-net

Proxy server type for Caddy server (https://github.com/mholt/caddy)
Apache License 2.0
66 stars 11 forks source link

Has caddy-net an equivalent of Transparent directive? #10

Open etique57 opened 6 years ago

etique57 commented 6 years ago

Hello,

I have the tried the following:

proxy 25: smtpserver:25 {
  host mx.mydomaine.net
  tls off
}

With a configuration as such: router:25 -> frontend:25 -> smtpserver:25

I just noticed that with this setup, my smtp server was acting like an openrelay, which as per my postfix is normal if the requests come from my "internal network".

Redirecting the nat on my router (with masquerade) as follow solved the issue: router:25 -> smtpserver:25