|
Size: 1212
Comment:
|
Size: 1471
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 11: | Line 11: |
| If the nodes are in restricted mode (compatibility with the Internet), they should share their Internet connection. This can be easily done, in fact, when a node X, connected to the Internet, activates the masquerading, the other nodes can also connect by setting as the default gateway the node X. | 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. |
| Line 13: | Line 17: |
| 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. | 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. |
| Line 17: | Line 29: |
| 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" |
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] |
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.
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]
