Re: [Vtun-Users] Can Vtun tunnel Ethernet traffic with just 1 NIC card?
Status: Inactive
Brought to you by:
mtbishop
|
From: Adam C. <ad...@eb...> - 2001-11-27 00:03:17
|
Sure you can, but it's insecure to have both incoming and outgoing traffic on one card. You also probably need a good NIC card (Intel or 3Com), the cheap ones are flaky and are prone to crashes if you push too much traffic through. Use IP aliases. I've gotten vtun to work over 1 NIC card and the linux box acting as a router. (and the client doesn't even need a static IP!). Of course I don't use this anymore... I've never done bridging over vtun. The standard way it seems here is connecting ethernet traffic between two internal LANs (192.168.1.0 and say 192.168.2.0) I guess you start with that and when you can do that, then you can start to try bridging over vtun. Shouldn't be too hard....but then again, everything sounds so easy until you actually do it. I'm thinking the gotcha here is the correct routes that you need to configure to enable bridging. Adam Chng ----- Original Message ----- From: "Barnes, Jym" <JB...@rg...> To: <vtu...@li...> Sent: Tuesday, November 20, 2001 5:51 PM Subject: [Vtun-Users] Can Vtun tunnel Ethernet traffic with just 1 NIC card? > I want to connect two LANS via Vtun. But I want to only have 1 NIC card in > the Linux box on each side. Is this possible? It would mean that the NIC > card would both need to be in promiscuous mode and also send traffic out > over the socket tunnel. > > I want this to work at a Ethernet level. I basically want a long distance > bridge. Also if anyone could point me to instructions on how to do this and > a config file I would appreciate it. I have read through everything I can > find including the entire vtun-users archive. > > One thing that has confused me is I have read that I should enable Linux > bridging. This surprises me because I thought that software was for doing > traditional NIC card to NIC card bridging. Basically sending the traffic > over the PC bus. In my case it is architecturally like bridging but VTUN > is really doing the bridging. So I don't understand why I would use the > Linux bridging software. > > How I think it should work: > > - Create TAP device that maps to a physical Ethernet. > - Have either the TAP or physical Ethernet device, not clear to me, put in > promiscuous mode > - Configure VTUN to tell it where to point to. An IP address on the other > system. I assume I don't have any routes or anything else. Just use > regular routes that my system already has for normal Internet traffic. > - VTUN then reads all Ethernet traffic off of TAP and sends over the wire. > And vice versa. > > I don't fully understand if I will have any TUN devices. Is the TUN device > the user interface into the tunnel to the other system? It would seem that > VTUN would just use a normal socket to do this. So I am guessing that I > would not have any TUN devices. But I don't know. > > Thanks a ton. > > -Jym- > > _______________________________________________ > Vtun-Users mailing list > Vtu...@li... > https://lists.sourceforge.net/lists/listinfo/vtun-users > |