Size: 1471
Comment:
|
Size: 1639
Comment:
|
Deletions are marked like this. | Additions are marked like this. |
Line 27: | Line 27: |
The load balacing is done by the normal netsukuku code. It would be possible also to use multiple Internet connection at the same time with the interface bonding. |
NTK_RFC 0003
Subject: Internet Gateway Search
This text describes a change to the Npv7. It will be included in the final documentation, so feel free to correct it. But if you want to change the system here described, please contact us first.
If the nodes are in restricted mode (compatibility with the Internet), they should share their Internet connection. This can be easily done, in fact, if a node X, connected to the Internet, activates the masquerading, it is possible for the other nodes to connect by setting as the default gateway their rnode which lead to the node X.
This can be automated by Netsukuku itself and it requires small changes in the code: it is just necessary that the nodes connected to the Internet set a flag in the qspn_pkt, in this way the other nodes will know the routes to reach the Internet. Simple and easy. The same holds for the gnode.
In order to use the IGS it is necessary that every nodes mantain the default route. The node which shares its Internet connection doesn't have to modify its default route.
The load balacing is done by the normal netsukuku code. It would be possible also to use multiple Internet connection at the same time with the interface bonding.
MASQUERADING
Each node sharing the Internet connection has to masquerade its interfaces, so iptables must be used. In order to keep the daemon portable, NetsukukuD will launch the script found at /etc/netsukuku/masquerade.sh, which in Linux will be a simple script that executes "iptables -A POSTROUTING -t nat -j MASQUERADE".
related: [Netsukuku_RFC]