OtagoHarbour <(E-Mail Removed)> writes:
> On Nov 21, 4:32Â*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> OtagoHarbour <peterdlau...@gmail.com> writes:
>> > On Nov 21, 1:25Â*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> >> OtagoHarbour <peterdlau...@gmail.com> writes:
>> >> > On Nov 20, 9:19Â*pm, Joe Pfeiffer <pfeif...@cs.nmsu.edu> wrote:
>> >> >> OtagoHarbour <peterdlau...@gmail.com> writes:
>> >> >> > On Nov 19, 10:54Â*am, Not Disclosed <not_disclo...@yahoo.com> wrote:
>> >> >> >> Have you tried reseting your router? Have you opened the proper ports in
>> >> >> >> your ubuntu box?
>>
>> >> >> > Thank you for your reply. Â*I set my port forwarding on the router to
>> >> >> > Web Server
>> >> >> > TCP Any -> 80
>> >> >> > TCP Any -> 443
>>
>> >> >> > I use the same box for both Ubuntu and Windows. Â*It's just that I get
>> >> >> > port forwarding when I boot in Windows but not with Ubuntu.
>>
>> >> >> Since the router is forwarding properly, it sounds like you don't have
>> >> >> the ports open on the windows/ubuntu box under ubuntu. Â*Try turning the
>> >> >> ubuntu firewall off entirely and see what happens -- and, since I've
>> >> >> done things like this myself, make sure the web server is actually
>> >> >> running under ubuntu...
>>
>> >> > Thank you very much for your reply. Â*I tried to turn the Ubuntu
>> >> > firewall off with
>>
>> >> > $ iptables --flush
>>
>> >> > I tried to get the web server running with the following steps.
>> >> > $ cd /etc/apache2/sites-enabled
>> >> > $ sudo vi 000-default
>> >> > Â* Â* Under <Directory /var/www/>
>> >> > Â* Â* changed "Allow Override None" to "Allow Override All"
>> >> > $ sudo Â*a2enmod rewrite
>> >> > $ sudo /etc/init.d/apache2 restart
>> >> > $ cd /var
>> >> > $ sudo chown -R www-data www
>>
>> >> > Unfortunately, I still cannot access my web page, even from my home
>> >> > computers, when the server is running Ubuntu.
>>
>> >> Can you talk to any other daemons (like sshd) on it? Â*Can you ping it?
>>
>> > I can ping to the IP address (192.168.1.6) of the web server, and also
>> > to the web site name, from any computer on my home network. Â*That's
>> > actually progress since I was not able to do that, from the PC
>> > connected to the router by wireless, before I made the changes
>> > outlined above. Â*However, I cannot connect by putting the web site
>> > name or 192.168.1.2 in the URL box on FireFox.
>>
>> Still trying to figure out whether it's likelier to be a firewall issue
>> or a daemon issue (what you've described doing should have cleared up
>> either one...). Â*Try logging in to that machine, and see if you can open
>> a web page at 127.0.0.1 (of course, that's the loopback address).
>
> Yes. That worked fine.
>
>>
>> Were you able to ssh to it from another machine?
>
> I tried
>
> $ ssh 192.168.1.6
>
> from another PC on the LAN and got
>
> ssh: connect to host 192.168.1.6 port 22: Connection timed out
>
>>Â*Also, if you've got
>> another linux machine on the network, try using nmapfe to see if you can
>> see any open ports.
>
> It said that all ports were filtered. None were "open" or "closed".
> The filtering could have been from the other linux machine on which I
> ran nmapfe.
>
> Thanks,
> Peter.
My best guess is that your iptables are still configured to drop
incoming packets. At one time I configured my iptables by hand, but in
recent years I've felt life is just too short. My suggestion would be
to install one of the firewall packages available under ubuntu (I
actually do a lot of my configuration using webmin; firewalling is one
of the many things it can configure), and then turn it off using that
package's configuration tool.
|