|
Broadband-Hamnet™ Forum :: General |
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-08- 12:35:35
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
SM7I's post above suggests 'yes'--that GRE does run on the 16/4MB linksys versions with bbhn. SM7I, is this confirmed--are you doing this today?
However, for the future, given the age of the linksys hardware and the inherent limited ability to continue to support in upgrades to OpenWRT, it would not be in our best interest to give a lot of weight to constrain a bbhn packaged implementation to these limitations. (Still opportunity for everyone to experiment with any/all tunneling options.) |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-08- 12:38:54
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
SM7I's post above suggests 'yes'--that GRE does run on the 16/4MB linksys versions with bbhn. SM7I, is this confirmed--are you doing this today?
However, for the future, given the age of the linksys hardware and the inherent limited ability to continue to support in upgrades to OpenWRT, it would not be in our best interest to give a lot of weight to constrain a bbhn packaged implementation to these limitations. (Still opportunity for everyone to experiment with any/all tunneling options.) |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-08- 16:04:59
|
|
|
KG6JEI |
|
Member |
|
Joined: 2013-12-02- 19:52:05
Posts: 516
Location: |
|
|
|
Two item overlooked are the NAT problem and the filtering problem. GRE through many routers won't work if NAT is involved, those that do support GRE may may have it disabled and at the moment directly exposing a node on the public web wouldn't be wise in my opinion. vtund has a better chance of working as it's either TCP or UDP based on config and can't be blocked based on protocol number(as GRE can) this may mean it is more likely to work on random networks as well, of course a true layer 7 firewall may be able to block it but that's even more rare. |
IP Logged
|
Note: Most posts submitted from iPhone |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-08- 19:32:46
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
GRE and NAT: This is a valid issue in terms of supportablilty and complexity to package a tunnel solution. The typical home/business network is NAT and additional manual setup outside the Mesh node would be needed for the hub GRE tunnel to establish. Although to put into perspective, vtund also needs to port forward the connecting port default 5000. 1 forward (vtund) vs 3 forwards (GRE).
Referring to Johan, SM7I's, documentation of bbhn-GRE:
--------
Since GRE tunneling uses protocol 47 (GRE) and TCP 1723 this needs to be opened / forwarded in any firewall or NAT device, used in between the Internet and the HSMM node, towards the HSMM GRE node. Decide which node will be the responding device and open / forward protocol 47 and TCP 1723 to that node. This is normally called PPTP and often available as a preconfigured service in most routers / firewalls.
The other nodes can be seen as initiators and will thus be “calling” in to the node that you decided to be the “hub”
-------- |
IP Logged
|
Last Edited On: 2014-10-08- 19:43:54 By AE6XE for the Reason additional comment... |
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-09- 04:14:16
|
|
|
KG6JEI |
|
Member |
|
Joined: 2013-12-02- 19:52:05
Posts: 516
Location: |
|
|
|
Most home and corporate firewalls in my experience muck up GRE when NAT is involved even when it is the initiator side. GRE passthrough only really started appearing a few years ago on commonly sold routers. GRE does not play well when NAT is involved in my experience (Its been a while since I setup one but years gone by I've set up hundreds). Also our friends at a very well known ISP that loves to filter traffic across their backbone and prioritize traffic has been reported in the past to flat out block the GRE protocol (by protocol number ) (they might of come off of that policy since but the fact they did it once) If your attaching to some random network somewhere your going to want the most flexible you can get.
|
IP Logged
|
Note: Most posts submitted from iPhone |
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-09- 10:48:57
|
|
|
k5dlq |
|
Member |
|
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA |
|
|
|
good discussion. sounds like GRE is "potentially" more NAT-unfriendly but lighter, and vtun is very NAT friendly but slightly heavier. Sounds to me to be more "user friendly", vtun may be the way to go as it reduces the number of potential problem points.
D.
|
IP Logged
|
Darryl - K5DLQ
www.aredn.org |
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-09- 11:11:08
|
|
|
k5dlq |
|
Member |
|
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA |
|
|
|
AE6XE, FYI, I sent you an email.... |
IP Logged
|
Darryl - K5DLQ
www.aredn.org |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-09- 12:14:59
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
Same here. My opinion/vote is that vtund is a good fit overall: relatively small footprint, still low complexity, transport options tcp/udp, compression options, and 128bit/no security all built in.
GRE doesn't come native with these options and makes it more complex if you want to add them in. |
IP Logged
|
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 07:10:52
|
|
|
k5dlq |
|
Member |
|
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA |
|
|
|
Is there a way to tag the ethernet port on a UBNT Bullet M2 to be a WAN port?
Trying to figure out a way to test the vtund server running on my WRT54GS from my Bullet M2 (both on my local LAN).
I don't have a managed switch.
thx, Darryl |
IP Logged
|
Darryl - K5DLQ
www.aredn.org |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 08:24:12
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
In the sense that this is a linux computer and we can program it do to anything, yes.
You might trial-n-error attempt to swap around the physical interfaces (eth0, eth0.1) assigned to the logical interfaces (LAN, WAN) in /etc/config/network UCI config file (risk is you revert to tftp to reload an image).
I believe this will break the setup gui code (don't do a 'save' in setup). You may wish to allow 2222, 8080, and 1978 ports open from WAN to access the node. Conrad may know if other hardcoded physical interface dependencies of what might break. The firewall zones and olsrd are based on the logical interface definitions (WAN, LAN, etc.), so 'should' still work.
config interface lan
option ifname "eth0" <- change to "eth0.1"
config interface wan
option ifname "eth0.1" <- change to "eth0"
~$65 for a GS105E is a known path from A to B... |
IP Logged
|
Last Edited On: 2014-10-10- 08:26:26 By AE6XE for the Reason formatting... |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 08:52:30
|
|
|
k5dlq |
|
Member |
|
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA |
|
|
|
good point. i just ordered a GS105E on Amazon for $45. problem solved. ;-) |
IP Logged
|
Darryl - K5DLQ
www.aredn.org |
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-10- 10:30:41
|
|
|
AE5CA |
|
Member |
|
Joined: 2012-05-19- 21:52:33
Posts: 81
Location: |
|
|
|
It is possible to use a WRT54 to be you switch. The principle is kind of their in the instructions to activate dtd-linking on the WRT's at http://ubnt.hsmm-mesh.org/products/BBHN/wiki/HowTo/Enable%20DTDLINK%20on%20Linksys?version=1 Basically if you edit the /etc/vlan.conf file to add one of the Lan Ports to Vlan 1 you can use a WRT as the smart switch.
option vlan1 “3t 4 5t” Will provide internet to a ubnt node plugged the lan port next to the wan port. You would probable want to DTD link the two nodes as well with a: option vlan2 "3t 5t" Clint, AE5CA
|
IP Logged
|
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-10- 10:52:03
|
|
|
k5dlq |
|
Member |
|
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA |
|
|
|
So, to make sure I understand completely... my current WRT54GS v2 has the following in the /etc/vlan file.. config switch eth0 option vlan0 "1 2 3 4 5*" option vlan1 "0 5"
---------- You suggest that I change to: config switch eth0 option vlan0 "1 2 3 4 5*" option vlan1 "0 5" option vlan2 "0t 1t" -------- Then, I can plug the UBNT M2 into the LAN port 1 (next to the WAN port 0). This way, LAN port 1 is tagged and will bridge to the WAN port.
do I have that correct?
|
IP Logged
|
Last Edited On: 2014-10-10- 10:55:40 By k5dlq for the Reason |
Darryl - K5DLQ
www.aredn.org |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 11:00:40
|
|
|
SM7I |
|
Member |
|
Joined: 2012-04-30- 14:56:55
Posts: 79
Location: JO65mo |
|
|
|
Yes, we use the GL models with GRE tunneling. About encryption and why we also chose GRE is that in the early discussions it came up a need to comply with fcc part 97 that states that hamradio may not be encrypted, thus we did not need a heavier implementation.
About NAT, yes it is given that you have to either use DMZ mode or do forwarding in some way or publish the node directly onto internet, but given the fact that we use Linux there are no issues in hardening the node for a rather experienced Linuxuser.
GRE works very well and we have done a proof-of-concept solution involving mostly Sweden, but also Spain, Hawaii and Canada. |
IP Logged
|
IT infrastructure and security professional |
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-10- 11:21:00
|
|
|
k5dlq |
|
Member |
|
Joined: 2012-05-11- 08:05:13
Posts: 233
Location: Magnolia, TX USA |
|
|
|
Yes, but as GRE is not related to Part 97, since, that encryption is not done over RF. It's only done over the tunnel and the tunnel is only over the WAN port. |
IP Logged
|
Darryl - K5DLQ
www.aredn.org |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 11:32:06
|
|
|
SM7I |
|
Member |
|
Joined: 2012-04-30- 14:56:55
Posts: 79
Location: JO65mo |
|
|
|
I don't disagree with you, but there were questionmarks about this in the early discussions and we chose to be on the safe side. Also, some rules and regulations may vary depending on DXCC. |
IP Logged
|
IT infrastructure and security professional |
|
|
|
|
|
|
Subject :Re:Virtual Tunnels..
2014-10-10- 11:37:31
|
|
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 11:45:27
|
|
|
SM7I |
|
Member |
|
Joined: 2012-04-30- 14:56:55
Posts: 79
Location: JO65mo |
|
|
|
One other positive benefit of running unecrypted is that we don't have the overhead traffic otherwise generated by encryption which makes it possible to run the solution over fairly low bandwidth providers like the NMT system running on 450 Mc up north in Sweden where GSM doesn't cover vast areas. |
IP Logged
|
IT infrastructure and security professional |
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 11:47:42
|
|
|
|
|
|
|
|
Subject :Re:Re:Virtual Tunnels..
2014-10-10- 12:20:57
|
|
|
AE6XE |
|
Member |
|
Joined: 2013-11-05- 00:09:51
Posts: 116
Location: |
|
|
|
In regards to using the linksys as a switch for UBNT devices in context to running vtund... This configuration still has the WAN port only on the linksys. To tunnel to the UBNT would be like connecting up in the middle of a mesh rather than the edge of the mesh. It could be 1 hop (via DTD) or 10 hops (via RF, DTD) into the mesh, increasing points of failure with each hop, but identical in config files. The linksys would be routing the traffic and need to port forward into the mesh for incoming vtund client connections. Nothing special to run the vtund client on the UBNT, except olsrd could change the default gateway and break the tunnel connection. This architecture isn't typical/optimized/recommended, but technically could work. |
IP Logged
|
|
|
|
|