From: Henry N. <Hen...@Ar...> - 2008-01-23 20:52:02
|
Frédéric L. W. Meunier wrote: > On Wed, 23 Jan 2008, Henry Nestler wrote: > >> Josep Ma [JAZ] wrote: >>> As you say, you have to use a syntax like >>> "eth0=slirp,,tcp:22:22/tcp:80:80" to open ports from colinux in slirp mode. >>> >>> Let's verify a few steps: >>> >>> How have you configured the eth in linux? >>> you know you have to use the IP 10.0.2.15/24 , the gateway 10.0.2.2, and >>> the DNS server 10.0.2.3, do you? (Configuring it with DHCP should also >>> work). >> Be shure to have netmask 255.255.255.0 >> All other, or default generated netmask for ip 10.0.2.15 dos't work. >> >>> Do you get to internet from colinux? >>> Ping doesn't work with slirp, but you can try telnet, ssh, wget.... >>> >>> Now, if that works, how do you try to connect to colinux from windows? >>> Slirp connection makes colinux act as if it was the windows machine. >>> This means that you have to connect to localhost. Example: >>> http://localhost/ should connect to an http server in colinux, if using >>> the above eth0 configuration. (That is, of course, if there port isn't >>> already used in windows). >>> >>> If that still doesn't work, you would need to be more specific as to >>> which configuration are you using and how do you try to use it. >> Yes. Plesase check the steps from one to other network step by step. >> First inside coLinux check the running webserver, for example >> $ cd /tmp >> $ wget http://localhost/ >> Would get your index.htm without errors. >> $ wget http://10.0.2.15/ >> Should do the same without error. >> >> Go to windows side and open your browser with url >> http://localhost/ >> Should get your index.htm on windows. >> If not, check your firewall. Disable firewall temporaly, shutdown and >> start colinux again. >> >> If that not helps, check the running processes inside taskman. >> colinux-slirp-net-daemon.exe must run and should have the parameters >> "tcp:22:22/tcp:80:80". If taskman dos't give you the parameters, use the >> ProcessExplorer from http://www.sysinternals.com (redirection to MS). >> >> After the process parameter are ok, than check the listen port on tcp. >> You can do it also with ProcessExplorer or with tcpView.exe (from >> http://www.sysinternals.com). YOu should see an listen 0.0.0.0 on port >> 22 and 80. > > Everything you both listed is right, but http://localhost/ > doesn't work from Windows. It does only if I run a native > Windows server. I don't know your difference you means. Windows != Windows Server ? If not native Windows? What else is it? > In TCPView, I see: > > colinux-slirp-net-daemon.exe TCP PERVALIDUS:80 PERVALIDUS:0 > LISTENING Please disable DNS Name Resolution on TCPview. It should be listen on 0.0.0.0 (every networks) Check: The first lines from Windows command NETSTAT.EXE /a /n (I don't know the paremters right). The IP 0.0.0.0 on port 80 and 22 should be "listen". Think it is, TCPview shows the same. Check: Stop coLinux. The port 80 and 22 should no longer listen. Try other port for remapping, for example tcp:2222:22/tcp:4000:80 Than on the windows side the port 4000 is your webserver and port 80 inside coLinux. Type the URL http://localhost:4000/ in your Windows browser. > I don't have any firewall running on Windows, but added > colinux-slirp-net-daemon.exe to the list of exceptions in > Windows Firewall. If you have no firewall on windows, why you can add exceptions to firewall? Try complete disable the windoes internal firewall. If you not would risk some, you can disconnect your networkcable for this testing time. Slirp is usable from windows to coLinux and via versa without any external network. Check: We talk about coLinux 0.7.1, 0.7.2 or 0.8.x? Not older, please. > On Linux there's iptables, but the same rules > work on Linux. > > netstat on coLinux shows: > > tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN Ok, let coLinux config it untouched. -- Henry N. |