Bug 197230 - [patch] Add rcNG startup script to configure ng_tcpmss(4)
Summary: [patch] Add rcNG startup script to configure ng_tcpmss(4)
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: conf (show other bugs)
Version: 9.3-RELEASE
Hardware: Any Any
: --- Affects Some People
Assignee: Eugene Grosbein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-01-31 21:38 UTC by Eugene Grosbein
Modified: 2018-08-18 03:48 UTC (History)
1 user (show)

See Also:


Attachments
rc.d/tcpmss script and documentation (4.10 KB, patch)
2015-01-31 21:38 UTC, Eugene Grosbein
no flags Details | Diff
rc.d/tcpmss script and documentation (4.10 KB, patch)
2015-01-31 21:57 UTC, Eugene Grosbein
no flags Details | Diff
rc.d/tcpmss script and documentation (4.10 KB, patch)
2015-02-01 12:27 UTC, Eugene Grosbein
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Eugene Grosbein 2015-01-31 21:38:24 UTC
Created attachment 152425 [details]
rc.d/tcpmss script and documentation

This PR supplies new rcNG startup script to ease configuration and use of ng_tcpmss(4) netgraph node with ipfw(8) rules for custom TCP MSS adjustments.
It contains the script itself and patches for defaults/rc.conf and rc.conf.5 manual page. Description from the manual:

     tcpmss_enable
                 (bool) Set to ``NO'' by default.  Setting this to ``YES''
                 enables configuration of ng_tcpmss(4) netgraph nodes to per-
                 form custom TCP MSS adjustments using ipfw(8) rules. The
                 tcpmss_instances variable must also be set then. Kernel mod-
                 ules netgraph(4), ng_ipfw(4), and ng_tcpmss(4) will be loaded
                 if the kernel was not built with corresponding options
                 NETGRAPH, options NETGRAPH_IPFW, and options NETGRAPH_TCPMSS.

     tcpmss_instances
                 (str) Set to the list of ng_tcpmss(4) instances to configure
                 on this host. Values of the list are used to form instance
                 names and as netgraph cookies, so they should be numbers. A
                 tcpmss_<number> variable is assumed to exist for each value
                 of the list.  The value of this variable is used as maxMSS to
                 configure the ng_tcpmss(4) instance.

                 To adjust MSS to corresponding maxMSS value configured with
                 tcpmss_<number> variable one can use ipfw(8) rules like:

                 netgraph <number> tcp from any to any setup in

     tcpmss_verbose
                 (bool) Set to ``YES'' to enable verbose ng_tcpmss(4) configu-
                 ration messages.
Comment 1 Eugene Grosbein 2015-01-31 21:57:15 UTC
Created attachment 152426 [details]
rc.d/tcpmss script and documentation

Fixed some misprints in the patch
Comment 2 Eugene Grosbein 2015-02-01 12:27:42 UTC
Created attachment 152435 [details]
rc.d/tcpmss script and documentation

Another misprint is fixed.
Comment 3 Hiren Panchasara freebsd_committer 2016-12-23 07:43:28 UTC
Anyone interested in commiting this work?
Comment 4 Eugene Grosbein freebsd_committer 2017-09-19 17:34:46 UTC
My PR.