Hi dguitar,
Thanks for your advice.
This is my 1st time going virtualization. It is a test only NOT for production.
Quote:
If this is displaying the Ubuntu homepage, then you have (or ur ISP ) has setup port forwarding to the wrong Internal IP address.
|
I called ISP to double check my request "port 8080 to be forwarded to 192.168.0.20". They confirmed my request. Is there any way to check it here?
On Ubuntu
=========
$ netstat -an | grep 8080
No printout.
Does it mean port 8080 already forwarded? If YES how to check it has been forwarded to the correct internal IP on the router?
$ netstat -an | grep 80
Code:
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
unix 2 [ ] DGRAM 8000 @/com/ubuntu/upstart
unix 3 [ ] STREAM CONNECTED 18180
$ netstat -an | grep 443
Code:
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN
Ports 80 and 443 are open. Which file I have to edit to disable them running? OR is there any way to stop them running temporarily? Thanks.
Quote:
Just want to point something else out to you - if you are running VMWare and you want ur Virtual Machine to be a web server, the Physical host does NOT need to be running those services. They are in no way related. Nor do you need to have those Ports open on the PHYSICAL host. Really all you need running is VMWare (IE: not SMTP/POP, WWW etc).
|
Noted and thanks. On this test I'm trying to make Ubuntu as Mail Server and CentOS as Web Server.
Quote:
Summary - Apache and Sendmail should not be running on your Ubuntu - nor should port 80/443/8080 be open.
Code:
netstat -an | grep 443
This is checking to see if your machine is Listening on port 443 (which is the https port).
|
On Ubuntu;
Ports 80 and 443 are open. Please see above. I stop /etc/init.d/apache2 running, leaving /etc/init.d/httpd.vmware running. I'm not much clear of the function of "httpd.vmware"? On CentOS /etc/init.d/httpd is running;
# /etc/init.d/httpd status
Code:
httpd (pid 2659 2658 2657 2656 2655 2654 2653 2652 2650) is running..
I made further check on CentOS of ports 80, 443, 8080 as follows;
satimis@mail:~$ ssh 192.168.0.20
Code:
satimis@192.168.0.20's password:
Last login: Mon Jan 28 16:20:40 2008
(ssh connect CentOS)
[satimis@centos ~]$ su -
Password:
[root@centos ~]# netstat -an | grep 8080
No printout. Port 8080 is not listening ???
[root@centos ~]# netstat -an | grep 443
tcp 0 0 :::443 :::* LISTEN
Is port 443 listening OR NOT? "0 :::443" only one "0" there ?
[root@centos ~]# netstat -an | grep 80
Code:
tcp 0 0 :::80 :::* LISTEN
unix 2 [ ] DGRAM 6806
unix 2 [ ] DGRAM 6480
Also one (1) "0" there.
Edit-1:
1)
Made futher test on Ubuntu as follows
=====================================
https://public_ip (display Apache default page of Ubuntu)
https://public_ip:80
(Alert popup - public_ip has sent an incorrect or unexpected message: Error Code:-12263 [OK].
pressing [OK] displays Apache default pape of Ubuntu)
https://public_ip:8080 (Unable to connect)
https://public_ip:443 (display Apache default page of Ubuntu)
http://public_ip (display Apache default page of Ubuntu)
http://public_ip:80 (display Apache default page of Ubuntu, w/o Alert popup)
http://public_ip:8080 (Unable to connect)
http://public_ip:443
Code:
(Bad Request
Your browser sent a request that this server could not understand.
Reason: You're speaking plain HTTP to an SSL-enabled server port.
Instead use the HTTPS scheme to access this URL, please.
Hint: https://mail.satimis.com/ )
2)
Called ISP again confirming port 8080 forwarded to 192.168.0.20 (CentOS IP addrs). ISP can't connect CentOS on 192.168.0.20 , connection refused. They asked me whether I need to have following 2 features enalbled;
- port triggering
- UPNP
???
I have no idea what are they for? Advice would be appreciated. TIA
3)
I can request ISP to have all 3 www ports 80, 443, 8080 forwarded to 192.168.0.20 (CentOS IP addr). In such arrangement Ubuntu will have no www ports. I won't run Ubuntu, the Mail Server, as a web server on this test. However I have Webmin and Usermin running on Ubuntu. They need web to connect. Will there be any problem? Thanks
Edit-2
ISP made following setting;
a)
Forward ports 80, 443 and 8080 all to CentOS, 192.168.0.20
Apache default page of CentOS can be visited with
http://public_ip
But SquirrelMail, the Webmail, on Ubuntu can't work. It requires web. Any solution suggested? TIA
b)
Set DMZ on 192.168.0.20
Apache default page of CentOS can be visited with
http://public_ip
But all other ports on Ubuntu won't work.
B.R.
satimis