From: Hari K. D. <har...@gm...> - 2010-05-08 06:35:56
|
I am running CentOS 5.3 via colinux on a laptop running XP Prof. I have been connecting to internet via a tuntap adapter via ICS on my wifi, but I need to step up a little bit to make my life easier, especially with VPN. I went through http://colinux.wikia.com/wiki/Network and it seems like slirp is my best bet and the easiest, but I can't get it working at all. I have this set in the command line config file: eth0=slirp On the linux side, I used dhcp and after a reboot, I do get the right values for ip (10.0.2.15) and gateway (10.0.2.2). I can ping to 10.0.2.2 and 10.0.2.3 as well, but I can't ping to anything outside, even though their ip gets resolved. I do have a workaround (I think) for now, since I was able to get pcap-bridge working (albeit, with great difficulty) on my wifi and for VPN, I am using ICS over VPN adapter. The idea is that when in the office, the pcap-bridge should provide both internet and intranet access, while at home, pcap-bridge would provide internet while tuntap will provide intranet (when VPN is up). In both instances, tuntap will also serve to provide a fast local access between XP and linux. I have verified this from my home, but won't be able to verify until some time next week when I will be in the office. One issue with the above setup that I can't figure out right now is the name resolution for VPN. I am able to access using ip addresses (after adding an explicit route), but name resolution fails, even though I edited /etc/resolve.conf to add the search domains and nameserver ips (that I obtained from my VPN adapter on windows side). I guess I can live with being able to access by ip addresses (I could add some of these that I frequently access to /etc/hosts), but I am hoping that getting slirp working will not only simplify the setup, it will also solve the name resolution issue. I would appreciate any help in troubleshooting the slirp issue (or even the name resolution). PS: In case anyone is looking to get pcap-bridge to work for wifi on a HP EliteBook 6930p, this is what I had to do (again, I am using centos): - Use the same wifi MAC address on both the linux and windows side - Enable nopromisc mode Ex: Command line config file: eth2=pcap-bridge,"Wireless Network Connection",<wifi mac>,nopromisc /etc/sysconfig/network-scripts/ifcfg-eth2: HWADDR=<wifi mac> |