network.subr (49110) | network.subr (49122) |
---|---|
1#!/bin/sh - 2# | 1#!/bin/sh - 2# |
3# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $ | 3# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $ |
4# From: @(#)netstart 5.9 (Berkeley) 3/30/91 5 6# Note that almost all the user-configurable behavior is no longer in 7# this file, but rather in /etc/rc.conf. Please check that file 8# first before contemplating any changes here. If you do need to change 9# this file for some reason, we would like to know about it. 10 11# First pass startup stuff. --- 79 unchanged lines hidden (view full) --- 91 showstat=true 92 fi 93 if [ "${showstat}" = "true" ] 94 then 95 ifconfig ${ifn} 96 fi 97 done 98 | 4# From: @(#)netstart 5.9 (Berkeley) 3/30/91 5 6# Note that almost all the user-configurable behavior is no longer in 7# this file, but rather in /etc/rc.conf. Please check that file 8# first before contemplating any changes here. If you do need to change 9# this file for some reason, we would like to know about it. 10 11# First pass startup stuff. --- 79 unchanged lines hidden (view full) --- 91 showstat=true 92 fi 93 if [ "${showstat}" = "true" ] 94 then 95 ifconfig ${ifn} 96 fi 97 done 98 |
99 # Warm up user ppp if required, must happen before natd. 100 if [ "X$ppp_enable" = X"YES" ]; then 101 # Establish ppp mode. 102 if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \ 103 -a "X$ppp_mode" != X"dedicated" ]; then \ 104 ppp_mode="auto"; 105 fi 106 ppp_command="-${ppp_mode} "; 107 108 # Switch on alias mode? 109 if [ "X$ppp_alias" = X"YES" ]; then 110 ppp_command="${ppp_command} -alias"; 111 fi 112 113 echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile} 114 fi 115 |
|
99 # Initialize IP filtering using ipfw 100 echo "" 101 /sbin/ipfw -q flush > /dev/null 2>&1 102 if [ $? = 0 ] ; then 103 firewall_in_kernel=1 104 else 105 firewall_in_kernel=0 106 fi --- 32 unchanged lines hidden (view full) --- 139 if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then 140 echo -n "Warning: kernel has firewall functionality, " 141 echo "but firewall rules are not enabled." 142 echo " All ip services are disabled." 143 fi 144 fi 145 fi 146 | 116 # Initialize IP filtering using ipfw 117 echo "" 118 /sbin/ipfw -q flush > /dev/null 2>&1 119 if [ $? = 0 ] ; then 120 firewall_in_kernel=1 121 else 122 firewall_in_kernel=0 123 fi --- 32 unchanged lines hidden (view full) --- 156 if [ "$IPFW_DEFAULT" = "65535 deny ip from any to any" ]; then 157 echo -n "Warning: kernel has firewall functionality, " 158 echo "but firewall rules are not enabled." 159 echo " All ip services are disabled." 160 fi 161 fi 162 fi 163 |
147 # Warm up user ppp if required. 148 if [ "X$ppp_enable" = X"YES" ]; then 149 # Establish ppp mode. 150 if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \ 151 -a "X$ppp_mode" != X"dedicated" ]; then \ 152 ppp_mode="auto"; 153 fi 154 ppp_command="-${ppp_mode} "; 155 156 # Switch on alias mode? 157 if [ "X$ppp_alias" = X"YES" ]; then 158 ppp_command="${ppp_command} -alias"; 159 fi 160 161 echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile} 162 fi 163 | |
164 # Additional ATM interface configuration 165 if [ -n "${atm_pass1_done}" ]; then 166 atm_pass2 167 fi 168 169 # Configure routing 170 171 if [ "x$defaultrouter" != "xNO" ] ; then --- 210 unchanged lines hidden --- | 164 # Additional ATM interface configuration 165 if [ -n "${atm_pass1_done}" ]; then 166 atm_pass2 167 fi 168 169 # Configure routing 170 171 if [ "x$defaultrouter" != "xNO" ] ; then --- 210 unchanged lines hidden --- |