User Tools

Site Tools


linux_network_ppp

/etc/ppp/ip-up.d/01-iprule.sh

ip rule add from $4 lookup $1
ip route add table $1 default dev $1

/etc/ppp/ip-up.d/02-route.sh

ip route add default via $5 || true

Fix MTU

iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
linux_network_ppp.txt · Last modified: 2017/01/05 06:39 by felixonmars