15 start_cmd="netoptions_start"
21 if [ -z "${_netoptions_initdone}" ]; then
22 echo -n 'Additional TCP/IP options:'
23 _netoptions_initdone=yes
31 for _af in inet inet6; do
32 afexists ${_af} && eval netoptions_${_af}
34 [ -n "${_netoptions_initdone}" ] && echo '.'
39 case ${log_in_vain} in
42 echo -n " log_in_vain=${log_in_vain}"
43 ${SYSCTL} net.inet.tcp.log_in_vain=${log_in_vain} >/dev/null
44 ${SYSCTL} net.inet.udp.log_in_vain=${log_in_vain} >/dev/null
47 ${SYSCTL} net.inet.tcp.log_in_vain=0 >/dev/null
48 ${SYSCTL} net.inet.udp.log_in_vain=0 >/dev/null
52 if checkyesno tcp_extensions; then
53 ${SYSCTL} net.inet.tcp.rfc1323=1 >/dev/null
56 echo -n " rfc1323 extensions=${tcp_extensions}"
57 ${SYSCTL} net.inet.tcp.rfc1323=0 >/dev/null
60 if checkyesno tcp_keepalive; then
61 ${SYSCTL} net.inet.tcp.always_keepalive=1 >/dev/null
64 echo -n " TCP keepalive=${tcp_keepalive}"
65 ${SYSCTL} net.inet.tcp.always_keepalive=0 >/dev/null
68 if checkyesno tcp_drop_synfin; then
70 echo -n " drop SYN+FIN packets=${tcp_drop_synfin}"
71 ${SYSCTL} net.inet.tcp.drop_synfin=1 >/dev/null
73 ${SYSCTL} net.inet.tcp.drop_synfin=0 >/dev/null
76 case ${ip_portrange_first} in
79 echo -n " ip_portrange_first=$ip_portrange_first"
80 ${SYSCTL} net.inet.ip.portrange.first=$ip_portrange_first >/dev/null
84 case ${ip_portrange_last} in
87 echo -n " ip_portrange_last=$ip_portrange_last"
88 ${SYSCTL} net.inet.ip.portrange.last=$ip_portrange_last >/dev/null
95 if checkyesno ipv6_ipv4mapping; then
97 echo -n " ipv4-mapped-ipv6=${ipv6_ipv4mapping}"
98 ${SYSCTL} net.inet6.ip6.v6only=0 >/dev/null
100 ${SYSCTL} net.inet6.ip6.v6only=1 >/dev/null
103 if checkyesno ipv6_privacy; then
105 echo -n " IPv6 Privacy Addresses"
106 ${SYSCTL} net.inet6.ip6.use_tempaddr=1 >/dev/null
107 ${SYSCTL} net.inet6.ip6.prefer_tempaddr=1 >/dev/null
110 case $ipv6_cpe_wanif in
111 ""|[Nn][Oo]|[Nn][Oo][Nn][Ee]|[Ff][Aa][Ll][Ss][Ee]|[Oo][Ff][Ff]|0)
112 ${SYSCTL} net.inet6.ip6.no_radr=0 >/dev/null
113 ${SYSCTL} net.inet6.ip6.rfc6204w3=0 >/dev/null
117 echo -n " IPv6 CPE WANIF=${ipv6_cpe_wanif}"
118 ${SYSCTL} net.inet6.ip6.no_radr=1 >/dev/null
119 ${SYSCTL} net.inet6.ip6.rfc6204w3=1 >/dev/null