diff options
| author | Mike Makonnen <mtm@FreeBSD.org> | 2007-05-02 15:49:30 +0000 |
|---|---|---|
| committer | Mike Makonnen <mtm@FreeBSD.org> | 2007-05-02 15:49:30 +0000 |
| commit | e11cc001a950737d0543fd80aeae10ccc22e3bf8 (patch) | |
| tree | 0ccfea9a09944ac081fec9ed7d386151454746fc /etc | |
| parent | 47ba326abe12ba3591c6a389902f0889bad3dd3a (diff) | |
Notes
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/rc.d/netoptions | 44 | ||||
| -rw-r--r-- | etc/rc.d/routing | 41 |
2 files changed, 43 insertions, 42 deletions
diff --git a/etc/rc.d/netoptions b/etc/rc.d/netoptions index c4ea590eebfd..7104952d2ce8 100644 --- a/etc/rc.d/netoptions +++ b/etc/rc.d/netoptions @@ -11,7 +11,7 @@ load_rc_config 'XXX' -echo -n 'Additional TCP options:' +echo -n 'Additional IP options:' case ${log_in_vain} in [Nn][Oo] | '') log_in_vain=0 @@ -32,4 +32,46 @@ esac sysctl net.inet.tcp.log_in_vain="${log_in_vain}" >/dev/null sysctl net.inet.udp.log_in_vain="${log_in_vain}" >/dev/null ) + +case ${tcp_extensions} in +[Yy][Ee][Ss] | '') + ;; +*) + echo -n ' tcp extensions=NO' + sysctl net.inet.tcp.rfc1323=0 >/dev/null + ;; +esac + +case ${tcp_keepalive} in +[Nn][Oo]) + echo -n ' TCP keepalive=NO' + sysctl net.inet.tcp.always_keepalive=0 >/dev/null + ;; +esac + +case ${tcp_drop_synfin} in +[Yy][Ee][Ss]) + echo -n ' drop SYN+FIN packets=YES' + sysctl net.inet.tcp.drop_synfin=1 >/dev/null + ;; +esac + +case ${ip_portrange_first} in +[Nn][Oo] | '') + ;; +*) + echo -n " ip_portrange_first=$ip_portrange_first" + sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null + ;; +esac + +case ${ip_portrange_last} in +[Nn][Oo] | '') + ;; +*) + echo -n " ip_portrange_last=$ip_portrange_last" + sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null + ;; +esac + echo '.' diff --git a/etc/rc.d/routing b/etc/rc.d/routing index e251a9726b81..874eda517458 100644 --- a/etc/rc.d/routing +++ b/etc/rc.d/routing @@ -61,15 +61,6 @@ static_start() options_start() { echo -n 'Additional routing options:' - case ${tcp_extensions} in - [Yy][Ee][Ss] | '') - ;; - *) - echo -n ' tcp extensions=NO' - sysctl net.inet.tcp.rfc1323=0 >/dev/null - ;; - esac - case ${icmp_bmcastecho} in [Yy][Ee][Ss]) echo -n ' broadcast ping responses=YES' @@ -112,20 +103,6 @@ options_start() ;; esac - case ${tcp_keepalive} in - [Nn][Oo]) - echo -n ' TCP keepalive=NO' - sysctl net.inet.tcp.always_keepalive=0 >/dev/null - ;; - esac - - case ${tcp_drop_synfin} in - [Yy][Ee][Ss]) - echo -n ' drop SYN+FIN packets=YES' - sysctl net.inet.tcp.drop_synfin=1 >/dev/null - ;; - esac - case ${ipxgateway_enable} in [Yy][Ee][Ss]) echo -n ' IPX gateway=YES' @@ -140,24 +117,6 @@ options_start() ;; esac - case ${ip_portrange_first} in - [Nn][Oo] | '') - ;; - *) - echo -n " ip_portrange_first=$ip_portrange_first" - sysctl net.inet.ip.portrange.first=$ip_portrange_first >/dev/null - ;; - esac - - case ${ip_portrange_last} in - [Nn][Oo] | '') - ;; - *) - echo -n " ip_portrange_last=$ip_portrange_last" - sysctl net.inet.ip.portrange.last=$ip_portrange_last >/dev/null - ;; - esac - echo '.' } |
