conf/114119: /etc/rc.d/jail improvements for networking (netmask)

Roger Gujord roger at gujord.com
Fri Jun 29 09:30:03 UTC 2007


>Number:         114119
>Category:       conf
>Synopsis:       /etc/rc.d/jail improvements for networking (netmask)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Jun 29 09:30:02 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     Roger Gujord
>Release:        FreeBSD 6.2-RELEASE
>Organization:
>Environment:
>Description:
Added support for specifying netmasks in /etc/rc.conf:
jail_cellname_netmask="255.255.255.240"

Can be used if netmask must be other than the hosts netmask (ex. several subnets or different ip-ranges with other netmasks).
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

35a36
> 	eval _netmask=\"\$jail_${_j}_netmask\"
80a82
> 	debug "$_j netmask: $_netmask"
102c104,106
< 
---
> 	if [ -z "${_netmask}" ]; then
> 		_netmask="255.255.255.255"
> 	fi
270c274
< 			ifconfig ${_interface} alias ${_ip} netmask 255.255.255.255
---
> 			ifconfig ${_interface} alias ${_ip} netmask ${_netmask}


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list