User Tools

Site Tools


linux_network_ppp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

linux_network_ppp [2017/01/05 06:39] (current)
felixonmars created
Line 1: Line 1:
 +==== /​etc/​ppp/​ip-up.d/​01-iprule.sh ====
 +<​code>​
 +ip rule add from $4 lookup $1
 +ip route add table $1 default dev $1
 +</​code>​
 +
 +==== /​etc/​ppp/​ip-up.d/​02-route.sh ====
 +<​code>​
 +ip route add default via $5 || true
 +</​code>​
 +
 +==== Fix MTU ====
 +<​code>​
 +iptables -A FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
 +</​code>​
  
linux_network_ppp.txt ยท Last modified: 2017/01/05 06:39 by felixonmars