|
10 | 10 | .\" notice, this list of conditions and the following disclaimer in the |
11 | 11 | .\" documentation and/or other materials provided with the distribution. |
12 | 12 | .\" |
13 | | -.Dd April 12, 2021 |
| 13 | +.Dd August 30, 2025 |
14 | 14 | .Dt SYNCACHE 4 |
15 | 15 | .Os |
16 | 16 | .Sh NAME |
@@ -39,6 +39,8 @@ MIBs for controlling TCP SYN caching |
39 | 39 | .Nm sysctl Cm net.inet.tcp.syncache.count |
40 | 40 | .It |
41 | 41 | .Nm sysctl Cm net.inet.tcp.syncache.see_other |
| 42 | +.It |
| 43 | +.Nm sysctl Cm net.inet.tcp.syncache.rst_on_sock_fail |
42 | 44 | .El |
43 | 45 | .Sh DESCRIPTION |
44 | 46 | The |
@@ -107,6 +109,18 @@ and run only with |
107 | 109 | set |
108 | 110 | .Va net.inet.tcp.syncookies_only |
109 | 111 | to 1. |
| 112 | +To use |
| 113 | +.Nm syncookies |
| 114 | +to handle bucket overflows in the |
| 115 | +.Nm syncache |
| 116 | +set |
| 117 | +.Va net.inet.tcp.syncookies |
| 118 | +to 1. |
| 119 | +The default value for |
| 120 | +.Va net.inet.tcp.syncookies_only |
| 121 | +is 0 and the default value for |
| 122 | +.Va net.inet.tcp.syncookies |
| 123 | +is 1. |
110 | 124 | .Pp |
111 | 125 | The |
112 | 126 | .Nm |
@@ -169,6 +183,9 @@ However, extra |
169 | 183 | .Xr ucred 9 |
170 | 184 | referencing is required on every incoming SYN packet processed. |
171 | 185 | The default is off. |
| 186 | +.It Va rst_on_sock_fail |
| 187 | +Send a TCP RST segment if the socket allocation fails. |
| 188 | +The default is on. |
172 | 189 | .El |
173 | 190 | .Pp |
174 | 191 | Statistics on the performance of the |
@@ -206,8 +223,16 @@ Entries dropped due to ICMP unreachable messages. |
206 | 223 | Failures to allocate new |
207 | 224 | .Nm |
208 | 225 | entry. |
| 226 | +.It Li "cookies sent" |
| 227 | +SYN cookies sent in SYN ACK segments. |
209 | 228 | .It Li "cookies received" |
210 | | -Connections created from segment containing ACK. |
| 229 | +ACK segments with valid syncookies which resulted in TCP connection |
| 230 | +establishment. |
| 231 | +.It Li "spurious cookies rejected" |
| 232 | +Received ACKs, for which the syncache lookup failed and also no syncookie was |
| 233 | +recently sent. |
| 234 | +.It Li "failed cookies rejected" |
| 235 | +Received ACKs for which the syncookie validation failed. |
211 | 236 | .El |
212 | 237 | .Sh SEE ALSO |
213 | 238 | .Xr netstat 1 , |
|
0 commit comments