ip rule add from $4 lookup $1 ip route add table $1 default dev $1
ip route add default via $5 || true
iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu