I’m having a bit of a problem understanding MSS Clamping on VyOS. It’s working fine, but I’m a little bit puzzled as to why I have to do it this certain way.
I have three interfaces on my VyOS installation, two internal interfaces running standard Ethernet, MTU 1500. I’ve then got on external interface running PPPoE, MTU 1492 (MSS 1452). I’m running “VyOS 1.2-rolling-201908271639”.
I have the following policy route;
set policy route MSS description 'TCP MSS Clamping for PPPoE' set policy route MSS rule 5 protocol 'tcp' set policy route MSS rule 5 set tcp-mss '1452' set policy route MSS rule 5 tcp flags 'SYN'
If I set this policy on the PPPoE interface using the following command;
set interfaces ethernet eth1 pppoe 0 policy route 'MSS'
Doing this will result in outbound SYN packets leaving VyOS with an MSS of 1460 (too-high) thus causing slow internet browsing, etc.
If I set this policy on the INSIDE interface using the following command;
set interfaces ethernet eth2 policy route 'MSS'
Doing this will result in outbound SYN packets leaving VyOS with an MSS of 1452 (correct size), thus - all-ok.
Now my question is for why am I required to set this on inside interfaces, my understanding is that this should be set on Outside interfaces to set outbound SYN packets to the correct MSS. For example, I could have multiple tunnel interfaces which all require different MSS clamping options - however, with what I’m doing at the moment - I’d be required to set the lowest MSS on all inside interfaces.
Hope this makes sense, hopefully I’m just doing something wrong - or my understanding of where you set MSS Clamping is incorrect.