3 # Configure routing and miscellaneous network tunables
15 start_cmd="routing_start"
16 stop_cmd="routing_stop"
17 extra_commands="options static"
18 static_cmd="static_start"
19 options_cmd="options_start"
34 case ${defaultrouter} in
38 static_routes="default ${static_routes}"
39 route_default="default ${defaultrouter}"
43 # Setup static routes. This should be done before router discovery.
45 if [ -n "${static_routes}" ]; then
46 for i in ${static_routes}; do
47 eval route_args=\$route_${i}
48 route add ${route_args}
51 # Now ATM static routes
53 if [ -n "${natm_static_routes}" ]; then
54 for i in ${natm_static_routes}; do
55 eval route_args=\$route_${i}
56 atmconfig natm add ${route_args}
63 echo -n 'Additional routing options:'
64 case ${icmp_bmcastecho} in
66 echo -n ' broadcast ping responses=YES'
67 sysctl net.inet.icmp.bmcastecho=1 >/dev/null
71 case ${icmp_drop_redirect} in
73 echo -n ' ignore ICMP redirect=YES'
74 sysctl net.inet.icmp.drop_redirect=1 >/dev/null
78 case ${icmp_log_redirect} in
80 echo -n ' log ICMP redirect=YES'
81 sysctl net.inet.icmp.log_redirect=1 >/dev/null
85 case ${gateway_enable} in
87 echo -n ' IP gateway=YES'
88 sysctl net.inet.ip.forwarding=1 >/dev/null
92 case ${forward_sourceroute} in
94 echo -n ' do source routing=YES'
95 sysctl net.inet.ip.sourceroute=1 >/dev/null
99 case ${accept_sourceroute} in
101 echo -n ' accept source routing=YES'
102 sysctl net.inet.ip.accept_sourceroute=1 >/dev/null
106 case ${ipxgateway_enable} in
108 echo -n ' IPX gateway=YES'
109 sysctl net.ipx.ipx.ipxforwarding=1 >/dev/null
113 case ${arpproxy_all} in
115 echo -n ' ARP proxyall=YES'
116 sysctl net.link.ether.inet.proxyall=1 >/dev/null