rssnsj / minivtun

A fast, secure and reliable VPN service based on non-standard protocol
GNU General Public License v3.0
246 stars 102 forks source link

mtu和keepalive这两个参数怎么设置才合理? #6

Closed pexcn closed 8 years ago

pexcn commented 8 years ago
  -m, --mtu <mtu>                     set MTU size, default: 1416.
  -k, --keepalive <keepalive_timeo>   interval of keep-alive packets, default: 13
rssnsj commented 8 years ago

比较保险的值:

  1. MTU:1300 现在虽然默认值是1416,但后面我会改成1300,因为我发现有些变态的网络是用VPN出去的,也就是考虑在VPN中跑VPN的情况。
  2. Keepalive间隔:(10~20) 这个不能太长也不能太短,太长UDP session会超时断开,太短容易被*FW识别出。
pexcn commented 8 years ago

好的,感谢!