kurz der Überblick :)
Es laufen 2 Jails - ein Apache / ein Mail Jail in denen die jeweiligen Dienste installiert sind und alles soweit funktioniert.
Das Problem ist nur dass die Jails untereinander nicht kommunizieren können (über TCP) - vermute mal ein Problem mit der PF Konfiguration.
ifconfig
Code: Select all
lo1 = 127.0.10.1 / 255.255.255.255
lo2 = 127.0.20.1 / 255.255.255.255
pf
Code: Select all
....
int="em0"
int_www="lo1"
int_mail="lo2"
master="123.456.789.321"
www="127.0.10.1"
mail="127.0.20.2"
rdr on $int proto tcp from any to $master port 80 -> $www port 80
rdr on $int proto tcp from any to $master port 25 -> $mail port 25
usw. für Ports 465, 995 ...
nat on $int from $www to any -> $master
nat on $int from $mail to any -> $master
set block-policy return
...
pass out quick on $int proto tcp from $www port 80 to any
pass out quick on $int proto tcp from $mail port 25 to any
rdr on $int_www from any to $www port 25 -> $mail port 25
habe ich es schon probiert, was aber nicht will. Auch auf der Testkiste ein "finales"
pass in all
pass out all
Wollte nicht helfen wie etwas:
pass in quick on $int_mail from $mail to $www port 80
Denke mal das Problem dürften die NAT Regeln sein, nur möchte ich ungern damit auf dem Produktionssystem "spielen".