new set of multi-IPv4/v6/noIP jail patches

alexus alexus at gmail.com
Sat Jun 21 17:37:08 UTC 2008


this is against
http://sources.zabbadoz.net/freebsd/jail/20080617-01-jail-7.0R.diff
with 7.0-RELEASE-p2

On Sat, Jun 21, 2008 at 1:35 PM, alexus <alexus at gmail.com> wrote:
> cc -c -O -pipe  -std=c99 -g -Wall -Wredundant-decls -Wnested-externs
> -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
> -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdinc
> -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL
> -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common
> -finline-limit=8000 --param inline-unit-growth=100 --param
> large-function-growth=1000  -mno-align-long-strings
> -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2
> -mno-sse3 -ffreestanding -Werror  /usr/src/sys/kern/kern_jail.c
> cc1: warnings being treated as errors
> /usr/src/sys/kern/kern_jail.c: In function 'prison_if':
> /usr/src/sys/kern/kern_jail.c:876: warning: unused variable 'sai6'
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/t.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
> bash-3.2#
>
> On Fri, Jun 20, 2008 at 10:10 AM, Ruben van Staveren <ruben at verweg.com> wrote:
>>
>>> Maybe Im stupid, but I cant figure out the syntax in rc.conf for multiple
>>> ips.
>>
>>
>> You might try this patch against /etc/rc.d/jail to help starting
>> multi-IPv4/v6/no-IP jails
>>
>> Just the 1st iteration
>>
>> open issues
>>
>> * add support for no-IP jails
>> * handle ipv6 addresses more cleanly (support notations like
>> 2001:888:1029::10.1.1.1, 2001:888:1029:0:0:0:0:1)
>>
>> this is because you'll get "address not assigned" errors because ifconfig
>> doesn't seem to make the v6 address canonical. This only happens when you
>> stop the jail btw.
>>
>> you'll need to stuff v6 stuff in _ipv6 variables though.
>>
>>
>>
>>
>>
>>
>> Regards,
>>        Ruben
>>
>>
>>
>
>
>
> --
> http://alexus.org/
>



-- 
http://alexus.org/


More information about the freebsd-jail mailing list