From: Mike <dis...@bo...> - 2008-03-29 09:44:33
|
> > I connect to internet through a router using wep encryption and fixed IP > > adresses. > > > > The host has a wifi card (ZyDas zd1211, usb), > > -MAC 00:11:E2:00:EA:93 > > -ip 192.168.2.23 (name PhysicalNetwork) > > -gw 192.168.2.254 > > -pcap-bridge 192.168.2.24 (Colinux-TAP-external-network) > > -taptun 192.168.100.1 (Colinux-TAP-guest-network) > > > > > > The guest (Archlinux, runs squid),has > > eth0: 192.168.2.25 (name Colinux-TAP-external-network) > > eth1: 192.168.100.2 (name Colinux-TAP-guest-network) > > > > The connection to the guest through 192.168.100.1-192.168.100.2 works. > > > > Hope, we talk about a scene, that was in wiki as > http://colinux.wikia.com/wiki/Network#TAP_-_Private_Connection_with_Hosting_OS Yep, that's exactly what I want. -snip- > eth0 should not bridge to any "TAP". The "pcap-bridge 192.168.2.24" > should configure to your real LAN "(name PhysicalNetwork)" or the name > of WiFI card. But, I'm afraid pcap-bridge does not work for your card. > Some times helps to disable CRC checksum in this card. Some Access > points don't allow to injecting different MAC on same air channel. In > that case pcap-bridge would never work. I cannot find where to disable CRC checksum in this ZyDas adapter. Also tried another USB adapter (Netgear) same problem, so I've given up trying to inject straight into the Wifi adapter. Pity that it does not work, in my other PC (wired) it works perfect. -snip > > An other way would better work: Let windows bridge the WiFi with you > second TAP (Colinux-TAP-external-network), hope this is the name. You > needs to have 2 Win32-TAP drivers for that scenario and you must give > the right names in the colinux config, autodetection does not work with > more as one TAP-Win32. OK the scenario would than be: (for simplicity lets forget the host->guest connection for now) Internet Router: 192.168.2.254 Colinux: eth0: (taptun 10.0.1.1 255.255.255.0 10.0.1.255 gw 10.0.1.2) Host: wtap0 (WinTAP 10.0.1.2 255.255.255.0 10.0.1.255 gw 192.168.2.254) phys (Wifi 192.168.2.23 255.255.255.0 192.168.2.255 gw 192.168.2.254) +---------------------+ +-------------------------+ | Colinux guest | | WinXP host | +-----+ | eth0 +<------>+ wtap0 phys +<--->+lan | | ^ | +------>???<------+ | ^ +-----+ +---------------------+ | +-------------------------+ | | | 10.0.1.0 192.168.2.0 network network Question now is how to make sure the wtap0 forwards all communication to phys and vice versa? > Don't use the same MAC more as ones, this would never work. OK that's clear > > iwconfig is not usable inside coLinux. The client does not know the > external hardware (wifi, ethernet cable, or DSL modem). OK. Mike |