Re: [Vtun-Users] Can Vtun provide a long distance ethernet bridge? & What does the config look li
Status: Inactive
Brought to you by:
mtbishop
From: bishop <bi...@pl...> - 2001-11-20 09:50:25
|
Jym wrote: > > I need to connect two LANS. I want every ethernet packet on LAN 1 to be > sent to LAN 2 and vice versa. I want the connection between the two > LANS to be via a UDP socket. I even want all broadcast traffic to be > sent. Basically I need the Linux ethernet card on both sides to be put > in promiscous mode. > I basically want to create the equivalent of connecting two ethernet > networks for ALL ethernet taffic, unicast, multicast and broadcast. > > Can Vtun do this? It has to be done at a pure ethernet level. So, like, a bridge, right? Think so. Google thinks I can find something via the string "brcfg vtun". A few hints there if you want to see what I've seen in the last 10 minutes. > If it can be done what does the config files look like on client and > server. If I had the following: > > LAN Linux box A is IP address 192.168.1.1 and > LAN Linux box B is IP address 10.1.1.1 Assumptions: - you have your kernel patched for bridging - you have brcfg installed, tested and working - inner ethernet interfaces are already added to the bridge via brcfg > I want to tunnel ethernet traffic and nothing else. I want to use UDP > because I don't need reliability and UDP looks the most like my original > ethernet traffic. > > What does the client config file look like? # Generated via string "client" # on Tue Nov 20 01:22:05 PST 2001 options { # Path to various programs ppp /usr/sbin/pppd; ifconfig /sbin/ifconfig; route /sbin/route; firewall /sbin/ipchains; } # Default host options default { persist yes; # Try to reconnect if disconnected } # ----=----=----=---- CLIENT STUFF ----=----=----=---- client-server { pass o0URDDEAdXY; # Our Password up { # 192.168.1.2 - local, 192.168.1.1 - remote ifconfig "%% 192.168.1.2 pointopoint 192.168.1.1 mtu 1450"; program /sbin/brcfg "device %% enable"; }; down { program /sbin/brcfg "device %% disable"; }; } > What does the server config file look like? # Generated via string "server" # on Tue Nov 20 01:18:11 PST 2001 options { # Path to various programs ppp /usr/sbin/pppd; ifconfig /sbin/ifconfig; route /sbin/route; firewall /sbin/ipchains; } # Default host options default { compress no; # Compression is off by default speed 0; # By default maximum speed, NO shaping keepalive yes; # Keep connection alive encrypt no; # some blowfish with dinner? type ether; # (tun, ether, tty (default), pipe) proto udp; # UDP should not be used with tty/pipe } # ----=----=----=---- SERVER STUFF ----=----=----=---- client-server { pass o0URDDEAdXY; # Password to connect to us. up { # 192.168.1.1 - local, 192.168.1.2 - remote ifconfig "%%"; program /sbin/brcfg "device %% enable"; }; down { program /sbin/brcfg "device %% disable"; }; } > Thanks so much for your help. Oh ho, there's a caveat or ten. In a few hours, someone much smarter will come by, edit all my copy and give you an answer that will work. this one MAY work. Won't it be fun to test, tho? I can't test n my stuff, because I'm not using TAPs or Bridges. Yet. Lemme know what you get, or just wait around for the really smart people to get into work. > -Jym- -- "I'm a nostalga-holic. we have no 12 step program. but once there is one, we will quickly grab 10 of the steps and try desperately to trade for the last 2" -- Keith Callbeck discussing eBay |