Hi,
So, first a quick overview of my setup:
I'm running FreeBSD 7.2. I used ezjail to create a jail for an apache webserver.I am using PF for my firewall and have logging enabled as well as using the keyword "log" in all of my block,pass statements. I am running BIND for dns resolution inside my jail. I only have one nic, so have a cloned interface (lo1), which I have my jail's IP assigned to. In my pf.conf I have "set skip on 1o0".
I have sendmail disabled on both my host and my jail and I am using ssmtp to forward mail. Everything is working fine except I can't get ssmtp to work from inside my jail. I can hit my webserver from the external interface and DNS resolves inside my jail.
When I try to test ssmtp from inside my jail, I do not see the packets attempt to transverse my external interface (they are not logged as passed or blocked), but it does pass in and out of the internal interface.
In verbose mode I see this error:
If I try to telnet from inside the jail to 127.0.0.1 I get the following error:
ssmtp works fine outside the jail. In the jail, I have tried changing the values of:
but that doesn't make any difference. What am I missing here? I will gladly provide more information, but I'm not really sure what's needed.
Thank you in advance for any help!
Moe
So, first a quick overview of my setup:
I'm running FreeBSD 7.2. I used ezjail to create a jail for an apache webserver.I am using PF for my firewall and have logging enabled as well as using the keyword "log" in all of my block,pass statements. I am running BIND for dns resolution inside my jail. I only have one nic, so have a cloned interface (lo1), which I have my jail's IP assigned to. In my pf.conf I have "set skip on 1o0".
I have sendmail disabled on both my host and my jail and I am using ssmtp to forward mail. Everything is working fine except I can't get ssmtp to work from inside my jail. I can hit my webserver from the external interface and DNS resolves inside my jail.
When I try to test ssmtp from inside my jail, I do not see the packets attempt to transverse my external interface (they are not logged as passed or blocked), but it does pass in and out of the internal interface.
In verbose mode I see this error:
Code:
# echo "testing mail service from my apache jail" | mail -v root root... Connecting to [127.0.0.1] via relay... root... Deferred: Connection refused by [127.0.0.1]
Code:
127.0.0.1:25: Non-recoverable failure in name resolution
ssmtp works fine outside the jail. In the jail, I have tried changing the values of:
Code:
root=
mailhub=
rewriteDomain=
hostname=
Thank you in advance for any help!
Moe