# Add default chains.
firewall_tcp_state_flags
firewall_connection_tracking
+ firewall_tcp_clamp_mss
# Add policies for every zone.
policy_add_localhost
iptables -A FORWARD -p tcp -j BADTCP
}
+function firewall_tcp_clamp_mss() {
+ log DEBUG "Adding rules to clamp MSS to path MTU..."
+ iptables -t mangle -A FORWARD \
+ -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
+}
+
function firewall_connection_tracking() {
log INFO "Creating Connection Tracking chain..."
iptables_chain_create CONNTRACK