>> I disagree with you about the security issue of using localhost. Running >> sendmail in a non-vimage jail using its default config listening on >> localhost is still contained in the jail. Localhost is internally >> converted to the jails assigned ip address by jail(8). > How is anything listening on localhost internally converted yet still > contained in the jail? I mean what is the mechanism and why sendmail but not > other daemons? > >> Why do you think this is a non-trivial security issue? > telnet $jail 25 > ehlo ... > mail from: <...> > rcpt to: <...> > data > > Sendmail has never been a relatively secure app and DOS/DDOS and spam are > vulnerabilities but point taken. > > Problem is the localhost to external mapping impacts not just sendmail but > named, postfix and anything else listing on 127.0.0.1. > > I think, perhaps, you misunderstand this issue. Inside a jail, lo0[127.0.0.1] is mapped directly to the primary IP address of a jail.
For example, if you are building a typical public-facing web-hosting stack and you bind mysql to 127.0.0.1 expecting it to be only accessible to the localhost, you will be horribly surprised when you find you have just exposed your mysql server to the whole world. That is a terrible security issue because someone working as the system administrator for that web-host, should not need to be aware that 127.0.0.1 isn't really localhost for this particular host. localhost should behave according to spec, and should not just magically map loopback packets onto the public network. FTFRFC: 127.0.0.0/8 - This block is assigned for use as the Internet host loopback address. A datagram sent by a higher level protocol to an address anywhere within this block should loop back inside the host. This is ordinarily implemented using only 127.0.0.1/32 for loopback, but no addresses within this block should ever appear on any network anywhere [RFC1700, page 5]. -M _______________________________________________ freebsd-jail@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-jail To unsubscribe, send any mail to "freebsd-jail-unsubscr...@freebsd.org"