I ran into a lot of issues with my udm pro and MSS. the ubiquiti interface settings have an option to set this but it was flaky at best and completely wrong almost always. To get around this, I just began to set the ip tables values directly myself when updating the MTU settings.
So i incorporated that into the script I have been using for it. Then i discovered your scripts which seemed slightly more robust, so I figured I would incorporate this as an option for anyone else who ran into the problem.
I gated this logic behind a boolean, SET_MSS so that it would not be on by default for others who already use this
I ran into a lot of issues with my udm pro and MSS. the ubiquiti interface settings have an option to set this but it was flaky at best and completely wrong almost always. To get around this, I just began to set the ip tables values directly myself when updating the MTU settings.
So i incorporated that into the script I have been using for it. Then i discovered your scripts which seemed slightly more robust, so I figured I would incorporate this as an option for anyone else who ran into the problem.
I gated this logic behind a boolean, SET_MSS so that it would not be on by default for others who already use this