Friday, August 19, 2011

How to set maximum size for a TCP Connection ?

Using iptables we can do this this


root# iptables -I FORWARD -o eth2 -p tcp --syn -j TCPMSS --set-mss 1440

Set maximum size of TCP connection to 1440

You can test using

root# tshark -n -i eth2 tcp port 80
Engineering Studio — free local tools

SKP Engineering Labs

Local browser utilities. No input is sent to a server.