User Tools

Site Tools


doc:uci:mptcp

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
doc:uci:mptcp [2014/08/04 10:47]
xedp3x
doc:uci:mptcp [2015/05/25 14:14] (current)
kellerkind spelling correction
Line 1: Line 1:
-====== ​Disclaimer ​======+====== ​MultipathTCP and OpenWRT ​====== 
 + 
 +This page discuss the MultipathTCP support in OpenWRT. 
 + 
 +===== Disclaimer ===== 
 **this is not part of the trunk jet** **this is not part of the trunk jet**
-clone it form https://​github.com/​xedp3x/​openwrt if you like.+clone it from https://​github.com/​xedp3x/​openwrt if you like.
  
 ===== Multipath TCP ===== ===== Multipath TCP =====
Line 9: Line 14:
 You have to install on both devices the patches Kernel. For PCs see at [[http://​multipath-tcp.org]] You have to install on both devices the patches Kernel. For PCs see at [[http://​multipath-tcp.org]]
  
-If you PC and Server have a connection your router can't use the mptcp protocol. You have to solutions:+If your PC and Server have a connection your router can't use the mptcp protocol. You have two solutions:
   * use a proxy on the router   * use a proxy on the router
-  * use a VPN to an endpoint with faster network. So you can use all uplinks for all traffic inclusive to unpatched Server.+  * use a VPN to an endpoint with faster network. So you can use all uplinks for all traffic inclusive to an unpatched Server.
  
 ==== Build image ==== ==== Build image ====
Line 27: Line 32:
  
 ==== Configurat ==== ==== Configurat ====
-mp-tcp ​are running without any config. But to use it with multiple interfaces on you device you have to configure the interfaces.+mp-tcp ​is running without any config. But to use it with multiple interfaces on your device you have to configure the interfaces.
  
 To enable the scripts call To enable the scripts call
Line 42: Line 47:
 | handover | Establish a connection only if no other interface available (slower switch but normally none traffic) | | handover | Establish a connection only if no other interface available (slower switch but normally none traffic) |
  
-submit ​you change with:+submit ​your change with:
   uci commit   uci commit
   /​etc/​init.d/​network restart   /​etc/​init.d/​network restart
  
-The script ​generate ​multiple default routes in different tables and rules. That my makes problems with other packages. I'm sure that it will **not work with multiwan**+The script ​generates ​multiple default routes in different tables and rules. That may make problems with other packages. I'm sure that it will **not work with multiwan**
  
 ==== Test ==== ==== Test ====
Line 55: Line 60:
 If you have installed the patched net-tools on you pc you can see it in a better way by If you have installed the patched net-tools on you pc you can see it in a better way by
   netstat -m   netstat -m
-The patch are not portet to this repo jet.+The patch is not portet to this repo jet.
  
 ===== VPN Example ===== ===== VPN Example =====
-This is an example for an VPN over 2 WAN connectionsI route the whole network to the VPN endpoint and do the NAT therSo I need a back route from there.+This is an example for VPN over 2 WAN connectionIt routes ​the whole network to the VPN endpoint and does the NAT thereconsequently it needs a back route from there.
  
-With this configuration ​you have no encryption on the VPN link. This is faster but it is not secure. ​Use only this if you don't need secure, for example if you have only traffic in the internet. +The following ​configuration ​has **no encryption** on the VPN link. This is faster but it is not secure. ​In addition it updates ​the MAC address ​to prevent ​problems ​in case you have 2 ISP clients ​but the same address.
-I also update ​the MAC address ​because you can get problems ​if you have 2 ISP clients ​with the same address.+
  
   network.globals.multipath=enable   network.globals.multipath=enable
Line 149: Line 153:
   keepalive 10 120   keepalive 10 120
   ​   ​
-  #​comp-lzo ​        # Compression - must be turned on at both end+  #​comp-lzo ​        # Compression - must be turned on at both ends
   persist-key   persist-key
   persist-tun   persist-tun
Line 165: Line 169:
   ip route add 192.168.1.0/​24 via 10.9.8.2 dev $1   ip route add 192.168.1.0/​24 via 10.9.8.2 dev $1
  
-Don'​t ​vergot ​the NAT at the Server. (google ​for examples "debain ​nat")+Don'​t ​forget ​the NAT at the Server. (browse ​for examples "debian ​nat")
doc/uci/mptcp.1407142061.txt.bz2 · Last modified: 2014/08/04 10:47 by xedp3x