LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Using Ubuntu Server 10.10 (https://www.linuxquestions.org/questions/linux-newbie-8/using-ubuntu-server-10-10-a-871066/)

mr_naz4u 03-25-2011 11:40 PM

Using Ubuntu Server 10.10
 
I have installed squid3 trans proxy, running successfully,
Through SQUID3
I need to publish my local webserver from my lan to access outside using internet, I have public ips provided by ISP my local webserver address is 192.168.1.5 and I want to bind this local address to a public ip (Ex: 61.8.153.212) to use it out side my lan through squid.

Please help in this regard

EricTRA 03-26-2011 12:42 AM

Hello and Welcome to LinuxQuestions,

If I understand you correctly you've set up Squid as a reverse proxy to publish your website(s) on the internet and 'hide' your real webservers behind Squid. Is that correct? Well all you have to do is redirect all incoming webtraffic on port 80 of your public IP to your Squid server. Depending on your network, you'll need to do that at router or firewall level. Can you tell us some more about your network? Do you have ADSL/Cable with a router to which you have access? Do you have a firewall securing your connection?

Kind regards,

Eric

mr_naz4u 03-28-2011 12:53 AM

Thanks ...
 
Quote:

Originally Posted by EricTRA (Post 4303811)
Hello and Welcome to LinuxQuestions,

If I understand you correctly you've set up Squid as a reverse proxy to publish your website(s) on the internet and 'hide' your real webservers behind Squid. Is that correct? Well all you have to do is redirect all incoming webtraffic on port 80 of your public IP to your Squid server. Depending on your network, you'll need to do that at router or firewall level. Can you tell us some more about your network? Do you have ADSL/Cable with a router to which you have access? Do you have a firewall securing your connection?

Kind regards,

Eric

Ya sure ...

I have a router and a H/W firewall for my lan but I am not using for this setup, this is a separate lan connected to a Wireless internet connection, my setup is as follows:

Internet tower
||
Ubuntu Server eth0(LAN) and eth1(WAN/Internet)
||
SQUID .......

I did not make Squid as a reverse proxy,
I have only squid proxy running on my ubuntu server 10.10,
one of my system on my lan is running a apache webserver on ubuntu 10.10 desktop with a website on it the IP is 192.168.1.5, I want this to be published to access outsite the lan using internet through SQUID, the public IP is 61.8.153.212.

Please help me .......

EricTRA 03-28-2011 01:00 AM

Hello,

If you didn't set up Squid as reverse proxy but as normal proxy then it's only going to serve the computers on your LAN, not publish your website/Apache webserver to the outside world. In the setup you have currently, you'll be able to use it as a cache for the computers on your LAN to speed up internet access, to do some filtering so that the computers on your network are prohibited the content you want to block, and so on.

If you want to use Squid to publish your website(s) to the internet you'll need to set it up as reverse proxy so the 'data flow' comes from the outside into your network, whereas you have it now set up in the normal way so that the 'data flow' goes from your LAN to the outside world.

From WikiPedia:
Quote:

Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests; to caching web, DNS and other computer network lookups for a group of people sharing network resources; to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS, SSL, Internet Gopher and HTTPS.[2]
Have a look at the following pages to learn how to set up Squid as a reverse proxy.
Squid reverse proxy (Visolve)
Squid reverse proxy (HowToForge)

Kind regards,

Eric

mr_naz4u 03-28-2011 02:10 AM

Nazil
 
Thanks,

I am using SQUID3 .......
I am not getting proper information to make my squid as reverse proxy,
Please give me a squid3 configuration for reverse proxy

Thanks once again .......

EricTRA 03-28-2011 02:17 AM

Hello,

What do you mean by not getting proper information? What in those links I posted is unclear to you. Especially the link to HowToForge is an 'almost' copy/paste guide that you can use. Nobody can 'give' you your configuration file for Squid since it depends on your network and your choices. It's all about you in this case, you have to put in the time to read and learn. After that you put together what you think is right and try it out. When you encounter errors you cannot solve, that's when you come to us to help you get an answer. I can 'give' you my configuration for a Squid reverse proxy but it will not serve you in your network nor will it teach you anything. So, read the documentation I pointed you to, change your configuration and try it. When something is not clear when you're following the documentation you can always ask for clarification here.

Kind regard,

Eric

mr_naz4u 03-28-2011 03:24 AM

Nazil
 
Ok ....

U mean all the steps shown in the Forge I'll have to follow, may b yes ...

I'll do that, thanks ....

EricTRA 03-28-2011 03:37 AM

Hello,

All the steps that apply to your network and setup. Don't literally copy/paste everything in the guide but change to reflect your LAN where needed.

Kind regards,

Eric

mr_naz4u 03-28-2011 03:56 AM

Nazil
 
Ya sure,

I'll do that,

Thanks .......

mr_naz4u 03-31-2011 12:38 AM

Nazil
 
Hello,

Good Morning,

Thanks for your support sofar ....

As you have sent me the links to follow and setup a squid reverse proxy, I have gone through your linked documents but I am not able to make it ....

I am very much new to this part of configuration ...

Please help me and give me only those steps which are used to make squid3 as a reverse proxy so that I can use my webservers published through squid e which are running on other computers ....

Please dont mistake me as I have not understood from your document which contains all TAGS with description ...

Thank you .......

mr_naz4u 03-31-2011 01:25 AM

EricTRA,
Please help only with required steps ....... for SQUID3 to make it reverse proxy

EricTRA 03-31-2011 01:31 AM

Hello,

What have you got so far? Post your squid.conf and I'll have a look at it. A little patience might be needed since I'm pretty busy at the moment, but changes are other LQ members look at it and put in their opinions too.

Kind regards,

Eric


All times are GMT -5. The time now is 05:33 AM.