Changeset 9bf0d71


Ignore:
Timestamp:
04/15/13 10:45:03 (17 months ago)
Author:
Kris Moore <kris@…>
Branches:
master, 9.1-release, 9.2-release, releng/10.0, releng/10.0.1, releng/10.0.2, releng/10.0.3
Children:
c3f709f
Parents:
f66423f
Message:
  • Set default netmasks when setting the ipv4 / ipv6 address
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src-sh/warden/bin/warden

    r80fe156 r9bf0d71  
    127127defaultrouter-ipv4: Lets you set the default IPv4 router for this jail 
    128128defaultrouter-ipv6: Lets you set the default IPv6 router for this jail 
    129         flags: Lets you set additional flags to pass to the 'jail' command at startup 
     129             flags: Lets you set additional flags to pass to the 'jail' command at startup 
    130130 
    131131Usage: 
     
    686686         case $OPT in 
    687687             ipv4) IP4="${4}" 
    688                  echo "$IP4" > "${JMETADIR}/ipv4" 
     688                 get_ip_and_netmask "${IP4}" 
     689                 IP4="${JIP}" 
     690                 MASK4="${JMASK}" 
     691                 if [ -z "$MASK4" ] ; then MASK4="24"; fi 
     692                 echo "$IP4/$MASK4" > "${JMETADIR}/ipv4" 
    689693                 ;; 
    690694             ipv6) IP6="${4}" 
    691                  echo "$IP6" > "${JMETADIR}/ipv6" 
     695                 get_ip_and_netmask "${IP6}" 
     696                 IP6="${JIP}" 
     697                 MASK6="${JMASK}" 
     698                 if [ -z "$MASK6" ] ; then MASK4="64"; fi 
     699                 echo "$IP6/$MASK6" > "${JMETADIR}/ipv6" 
    692700                 ;; 
    693701       alias-ipv4) EXTRAIPS="${4}" 
Note: See TracChangeset for help on using the changeset viewer.