ip settings not work for jail 'service' type

Bjoern A. Zeeb bzeeb-lists at lists.zabbadoz.net
Thu Jul 21 12:51:07 UTC 2011


On Jul 20, 2011, at 10:03 PM, Subbsd wrote:

> Hi
> 
> Jail configuration with "complete” works perfectly with IP4, IP6 and
> their secondary.
> But if try jailed 'service' - it does not work. For example:
> 
> 1) have uncomment:
> ftp     stream  tcp     nowait  root    /usr/libexec/ftpd       ftpd -l
> 
> 2) have jail cfg like:
> jail_enable="YES"
> jail_list="example"             # Space separated list of names of jails
> jail_example_rootdir="/"
> jail_example_hostname="${hostname}"
> jail_example_interface="lo0"
> jail_example_ip="192.0.2.10"
> #jail_example_ip_multi0="10.0.0.1" # secondary - shouldn't work?
> sockstat show *:21
> jail_example_exec_start="service inetd onestart"
> jail_example_exec_stop="service inetd onestop"
> 
> 3)
> service jail start example

And does inetd run at that point?  Did it log anything to your logfiles?


> 
> 4)
> ftp 192.0.2.10
> (no connection)
> 
> I somewhere was mistaken or it shouldn't work? Thanks
> _______________________________________________
> freebsd-jail at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-jail
> To unsubscribe, send any mail to "freebsd-jail-unsubscribe at freebsd.org"

-- 
Bjoern A. Zeeb                                 You have to have visions!
         Stop bit received. Insert coin for new address family.



More information about the freebsd-jail mailing list