You are not logged in.
Dear all,
I began trying Arch Linux this week. Because I have only one computer (running Fedora 9), I installed Arch Linux inside it using QEMU (w/ kqemu accelerator module). I'm satisfied with the performance of Arch in general but I recently ran into some trouble...
My plan is to build something as illustrated in the diagram:
The machine's hardware is a little crappy so I'm running only one of the virtualized Arch hosts. All the NAT stuff are done by Shorewall on the hosting Fedora system.
After a bit of configuration, the Arch virtual host got connected to the Internet and successfully updated itself. Then I installed the OpenSSH server on it. I tested the SSH service from my Fedora system and it was running fine.
I then installed Lighttpd on the Arch virtual host with minimal tweaking of the configuration file (without changing the default port number). This time the trouble began: Lighttpd couldn't serve remote client's requests. I put a dummy index.html in Lighttpd's document root directory, but this page can only be accessed by local clients. My web browser on the Fedora system couldn't even leave a trace in Lighttpd's access.log!
I further tested the connection using telnet. From Fedora, I tried
$ telnet -d virt-arch-1 80
(virt-arch-1 being the local name for the virtual server)
And got the following error message:
Trying 10.0.2.11...
setsockopt (SO_DEBUG): Permission denied
telnet: connect to address 10.0.2.11: Connection refused
I even tried nmap port scan on virt-arch-1. It reported Port 22 open for SSH but nothing else. I checked the /etc/hosts.allow and /etc/hosts.deny files and am pretty sure all inbound connections are allowed by them. I also checked the iptables and there's nothing blocked by it (I even tried purging it with iptables -F).
I can't understand why Lighttpd failed to run while SSH is OK. Am I missing something?
Thanks!
In the face of ambiguity, refuse the temptation to guess. --- Tim Peters
Offline
OK silly me. I configured the server to bind to only local sockets (server.bind = "localhost"). I didn't discover this until I "lsof -i"'ed for all the sockets on the system and found a glaring "localhsot:www" listening by Lighttpd.
Problem solved.
In the face of ambiguity, refuse the temptation to guess. --- Tim Peters
Offline