Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 31st January 2008, 19:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by satimis
1)
Forward ports 80, 443 and 8080 all to 192.168.0.20 (CentOS IP addr.)

Appache default page of CentOS can be visited with;

http://public-ip


The problem on Ubuntu is SquirrelMail, the webmail, unable to work.
Port 8080 must be forwarded to port 80 on your CentOS server, and port 80 must be forwarded to port 80 on your Ubuntu server.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 1st February 2008, 14:16
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
Default

Quote:
Originally Posted by falko
Port 8080 must be forwarded to port 80 on your CentOS server, and port 80 must be forwarded to port 80 on your Ubuntu server.
Hi falko,


I suppose your advice to be done on the router (Linksy) which is password-locked by ISP. I can't touch it.


Steps to be performed;

1)
Forward ports 80, 443 and 8080 all to 192.168.0.20 (CentOS IP addr)


2)
On "Applications and gaming" tab - forward port 8080 to 192.168.0.10 (Ubuntu IP addr)


3)
On "Port Triggering" tab - translate 8080 to 80


(Remark: port.conf of Ubuntu is listening "port 80". I'll leave other ports, other than those 3 ports mentioned above, still forwarded to 192.168.0.10 - Ubuntu IP addr)


If I'm wrong, please correct me. I'll request ISP to make such changes.


If your advice has to be done on httpd.conf (CentOS) and port.conf (Ubuntu) respectively. Please advise how to make them in detail. TIA


B.R.
satimis
Reply With Quote
  #13  
Old 2nd February 2008, 18:56
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

Quote:
Originally Posted by satimis
Steps to be performed;

1)
Forward ports 80, 443 and 8080 all to 192.168.0.20 (CentOS IP addr)


2)
On "Applications and gaming" tab - forward port 8080 to 192.168.0.10 (Ubuntu IP addr)
You can forward one port to just one system. You can't forward port 8080 to two systems.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 3rd February 2008, 14:17
satimis satimis is offline
Senior Member
 
Join Date: Oct 2006
Posts: 533
Thanks: 4
Thanked 2 Times in 2 Posts
 
Default

Quote:
Originally Posted by falko
You can forward one port to just one system. You can't forward port 8080 to two systems.
Thanks for your advice.

In my case what can I do? SquirrelMail needs web port.


Performed following further test;
-----------------------------------------


Forward port 443 to CentOS, the Guest, instead of 8080. Ubuntu works on 2 www ports, 80 and 8080.


On CentOS
=======

Edit /etc/httpd/conf/httpd.conf
Add "Listen 443" and comment out;
Listen 80
Listen 8080


# service httpd start
Code:
Starting httpd: (98)Address already in use: make_sock: could not bind to address [::]:443
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:443
no listening sockets available, shutting down
Unable to open logs
The fix is as follow;

Edit /etc/httpd/conf.d/ssl.conf
comment out "Listen 443"
Code:
....
#
# When we also provide SSL we have to listen to the
# the HTTPS port in addition.
#
#Listen 443
...

# service httpd start
Code:
Starting httpd:                                            [  OK  ]

https://public_ip
displays Apache default page on CentOS


http://public_ip
displays Apache default page on Ubuntu

http://public_ip/mail
starts SquirrelMail on Ubuntu


But it needs the ssl.conf listening on port 443 - SSL httpd


Furthermore if forwarding all www ports, 80, 443, 8080 to CentOS then leaving no www port connected to Ubuntu, SquirrelMail won't work. It is a web-base application. I'm now at dilemma.


I can revoke all changes made. This is only a test on virtualization. I have no intention to run CentOS, the Guest, as Web server.


I'm now at lost what will be the use or advantage to go virtualization? I can't run mail and web server on Host/Guest separately. What shall I make use of the Guest ? Only for testing? I think virtualization will only be suitable for running multiple public IPs.


I haven't tested if w/o web port connected on Host, the Mail Server, whether I can run SquirrelMail remotely. I suppose the chance is remote. Any comment/advice? TIA



satimis

Last edited by satimis; 3rd February 2008 at 14:22.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Going to setup a small company server... but how? LINUXstarter Server Operation 13 23rd December 2007 18:33
CentOS 5.1 Server Setup: LAMP, Email, DNS, FTP, ISPConfig aaa999 Server Operation 8 20th December 2007 16:30
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
How to setup VMware Server on Centos 5.0 Osricson Suggest HOWTO 3 2nd May 2007 10:48
Problems with Postfix Mysql Courier PatrickAdrichem Installation/Configuration 3 13th April 2007 15:44


All times are GMT +2. The time now is 20:43.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.