|
Broadband-Hamnet™ Forum :: General |
|
|
|
|
|
Subject :WAN/Internet to Mesh access, how does the routing work?..
2014-08-13- 16:24:46
|
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2014-08-14- 06:31:38
|
|
|
KG6JEI |
|
Member |
|
Joined: 2013-12-02- 19:52:05
Posts: 516
Location: |
|
|
|
What happens when the MESH GW checkbox is enabled, saved and rebooted is that the OLSR DYN GW module is enabled in the config files
The OLSR DYN GW module controls the injecting of a 0.0.0.0/0 HNA address
http://olsr.org/git/?p=olsrd.git;a=blob;f=lib/dyn_gw/README_DYN_GW is the main readme for the DYN_GW module.
The main item is that it performs a ping to the BBHN website (single ping) every 60 seconds with a fallback to Google as a safety net (the 4exact servers are listed in the source code.)
If any of the the pings are successful for a set amount of time than a HNA of 0.0.0.0/0 is published by the module (same feature that tells nodes about your local 'direct' subnet')
Once a HNA of 0.0.0.0/0 is published other nodes will see the route and add it to the routing tables on each field node in routing table 31 so they than can then get to the internet by going to the publishing node.
If the ping fails a set number of times the route is removed from publication and the nodes remove the 0.0.0.0/0 route from the table via that node thus changing the GW routing
A route of 0.0.0.0/0 means 'SEND EVERYTHING' to me. If the node is told to send all data but does not forward it onto the internet as a whole it WILL confuse the users if they are expecting to get out to the web and can't (depending how close they are to that filtering node vs the open node)
In addition if someone else turns on mesh GW and is closer they will not be able to get to your network on your WAN port so keep that in mind with your design and be sure to set the policies for your network.
|
IP Logged
|
Note: Most posts submitted from iPhone |
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2014-08-14- 08:13:31
|
|
|
AE4ML |
|
Member |
|
Joined: 2014-06-01- 15:17:42
Posts: 47
Location: Spotsylvania VA USA |
|
|
|
If the mesh need to see the internet then I think you just answered why I haven't been able to access from my mesh to the local network. On my ISP router I deny everything from the mesh and only allow my local PC's and wireless devices access to the internet.
At this time I don't want the mesh to touch the internet. with that said, I haven't been able to go from my local network and traverse the other side of the mesh network.
I would think a change to check access to the next hop router on the WAN side would be sufficient to populate the 0.0.0.0/0 route. I plan on being extremely prejudice on what is and isn't permitted to the internet off of the mesh. |
IP Logged
|
Michael Lussier
AE4ML
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2014-08-15- 00:36:41
|
|
|
N4SV |
|
Member |
|
Joined: 2014-04-08- 19:54:23
Posts: 23
Location: |
|
|
|
Thanks Conrad, I had no idea the algorithm was quite that complicated. Obviously my "non-Internet/Internet" test concept won't work because those sites can't be ping'd. Don't suppose the 4 sites in the list in the OLSR code can be easily modified? I'd like to keep my local mesh in a closed system for proof-of-concept testing; I completely agree with Michael's comment in this thread as to keeping a tight control on what goes in and out of my WAN port. Thanks again for the detailed response.
73, Bill, N4SV |
IP Logged
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-19- 14:15:25
|
|
|
N8JJ |
|
Member |
|
Joined: 2014-07-23- 14:46:49
Posts: 15
Location: Beavercreek, Ohio |
|
|
|
I am noticing that when I enable WAN access, the mesh also has access to my LAN. Isn't the a security and routing issue. Multiple nodes could be using 192.168.0.x for example and create a IP conflict.
|
IP Logged
|
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-21- 13:37:32
|
|
|
N6DLH |
|
Member |
|
Joined: 2011-12-27- 20:03:33
Posts: 14
Location: Hampton Virginia |
|
|
|
That seems really strange. There is a firewall on the WAN port of the gateway mesh node. I just went through trying to allow access to a meshed web server. I had to reconfigure the firewall.user file on the mesh gateway to allow the forwarding of port 80.Even one of my main computers access the LAN from a wireless connection, I cannot access the past the gateway mesh by default. So I have that on the mesh via ethernet cable to allow remote administration of the server. Even then I have to unplug the wireless card to get past the local node.
I am no expert in this, (So I could be wrong!) but have been playing with them off and on since I could count all the modes on the world map in several minutes. It seems odd to be able to see the LAN from the mesh via the mesh Gateway.
Also there should not be a conflict since the the comptuers on the mesh would not use that type of public IP, they should all be on the 10.0.0.0 public
Dave
N6DLH |
IP Logged
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-21- 13:53:23
|
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-21- 14:06:39
|
|
|
N8JJ |
|
Member |
|
Joined: 2014-07-23- 14:46:49
Posts: 15
Location: Beavercreek, Ohio |
|
|
|
I sent a detailed note to the developers on how to duplicate the problem. I'll see what they say. |
IP Logged
|
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-21- 14:10:43
|
|
|
N6DLH |
|
Member |
|
Joined: 2011-12-27- 20:03:33
Posts: 14
Location: Hampton Virginia |
|
|
|
Mike,
Other may be able to chime in here....
If you SSH into the gateway there is a file under /etc/config.firewall.user if you use the line vi /etc/config/firewall.user you can see the information there. Like you I only want certain access to the mesh. You can port forward port 2222 and have access to the SSH into the gateway. Now you have the option of opening port 2222 on the gateway WAN port but keeping it closed on the ISP port to isolate that from the Internet.
One thing I have been thinking about doing is trying to keep the port 8080 closed on my ISP router, but using the DHCP ip for the WAN port on the gateway router and opening 8080 to allow me to access the status page on the gateway router. Hopefully from there is will allow access to all the other nodes on the network via 8080 but that is still uncertain to me. |
IP Logged
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-21- 14:16:58
|
|
|
AE4ML |
|
Member |
|
Joined: 2014-06-01- 15:17:42
Posts: 47
Location: Spotsylvania VA USA |
|
|
|
That's why I love Cisco router. ACLs are easy as well as port forwarding.
I will have to look into firewall on the node. Thanks |
IP Logged
|
Michael Lussier
AE4ML
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-22- 04:36:44
|
|
|
|
|
|
|
|
Subject :Re:WAN/Internet to Mesh access, how does the routing work?..
2015-05-22- 07:37:53
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
The technical implementation of the 'gateway' is such that if there is no route on the mesh to an IP address, then send traffic to the 'gateway'. Here's what this 'default' route looks like on the gateway node (there's more complexity with policy routing we'll ignore for the moment):
Destination Gateway Genmask Flags Metric Ref Use Iface
default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0.1 Thus, any IP address that mesh traffic is being routed to, and the mesh has no specific routing definition, will go to 192.168.1.1. Changing the netmask to 255.255.255.254 for a 192.168.x.x route, bumps it to the default route.
All, please consider that this design and behavior is how all your home netgear, linksys, etc. routers work. The same scenario occurs when you connect 2 netgear devices back to back, for example:
Netgear_A_WAN_port -> Netgear_B_LAN_port/Netgear_B_WAN_port -> ISP_Internet_port
10.x.x.x_network -> 192.168.x.x_network -> internet
It is a design choice for the 10.x.x.x network to openly talk with the 192.168.x.x network (and venders' default is 'yes'). If the design choice is to not have access to the intermediate network, then a config setting can be made given know-how (on ether side of the fence). There are a few options for the intended behavior, DMZ, don't daisy chain, and more.
Joe AE6XE |
IP Logged
|
Last Edited On: 2015-05-22- 07:40:22 By AE6XE for the Reason |
|
|
|
|