Repository : ssh://git@open-mesh.org/doc
On branches: backup-redmine/2017-07-13,master
commit 21727f0a9f503c8f77a9079d5576b8f5676dffdd Author: Marek Lindner mareklindner@neomailbox.ch Date: Sun May 31 18:24:52 2009 +0000
doc: batmand/InternetTuning
21727f0a9f503c8f77a9079d5576b8f5676dffdd batmand/InternetTuning.textile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/batmand/InternetTuning.textile b/batmand/InternetTuning.textile index 6b666ebc..29c76f8f 100644 --- a/batmand/InternetTuning.textile +++ b/batmand/InternetTuning.textile @@ -1,4 +1,8 @@ -'''Gateway''' + +h2. Internet tuning + + +*Gateway*
Batman offers to announce the avaibility of an internet connection. You can use the gateway class option (-g down/up) to tell batman how much bandwidth is available. You can specify the download and upload speed - batman will choose the nearest gateway class to represent your speed and propagate it in the network. The following examples should illustrate the usage:
@@ -25,7 +29,7 @@ That behaviour allows the gateway maintainer to distinguish between traffic insi Additionally, you have to make sure that the gateway allows forwarding and that the firewall masquerades all traffic coming through gate0.
-'''!GatewayClient''' +*!GatewayClient*
You can tell batman to watch out for announced gateways and connect to them via the routing class option (-r). This option allows you to influence which gateway will be chosen. Currently, there are 3 modes available:
@@ -51,10 +55,10 @@ batman 0.3.1 and before: If you plan to attach non-batman clients to your batman internet client you have to masquerade all outgoing packets on interface gate0 (e.g. iptables).
batman 0.3.2 and later: -The batman daemon will try to locate the iptables binary to setup the masquerading automatically. This behaviour can be disabled using the "--disable-client-nat" option. If the outgoing packets are not masqueraded (the iptables binary wasn't found / the automatism disabled) batman will switch to the "half tunnel" mode which operates without masquerading. Beware: This mode __requires__ the gateway to have a routing entry for each client that accesses the internet (e.g. non-batman clients may be announced via HNA). Also, batman won't be able to automatically detect whether the chosen gateway is connected to the internet or not as only outgoing packets go through gate0. +The batman daemon will try to locate the iptables binary to setup the masquerading automatically. This behaviour can be disabled using the "--disable-client-nat" option. If the outgoing packets are not masqueraded (the iptables binary wasn't found / the automatism disabled) batman will switch to the "half tunnel" mode which operates without masquerading. Beware: This mode +requires+ the gateway to have a routing entry for each client that accesses the internet (e.g. non-batman clients may be announced via HNA). Also, batman won't be able to automatically detect whether the chosen gateway is connected to the internet or not as only outgoing packets go through gate0.
-'''Tuning''' +*Tuning*
To be more flexible and better integrate into different setups and environments batman has a runtime interface which you can connect to. You can change batmans behaviour on the fly and adapt to changing requirements.