LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-26-2011, 12:40 AM   #1
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Rep: Reputation: 0
Thumbs up 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
 
Old 03-26-2011, 01:42 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
1 members found this post helpful.
Old 03-28-2011, 01:53 AM   #3
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up Thanks ...

Quote:
Originally Posted by EricTRA View Post
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 .......
 
Old 03-28-2011, 02:00 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
1 members found this post helpful.
Old 03-28-2011, 03:10 AM   #5
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up 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 .......
 
Old 03-28-2011, 03:17 AM   #6
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 03-28-2011, 04:24 AM   #7
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up Nazil

Ok ....

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

I'll do that, thanks ....
 
Old 03-28-2011, 04:37 AM   #8
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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
 
Old 03-28-2011, 04:56 AM   #9
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up Nazil

Ya sure,

I'll do that,

Thanks .......
 
Old 03-31-2011, 01:38 AM   #10
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
Thumbs up 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 .......
 
Old 03-31-2011, 02:25 AM   #11
mr_naz4u
LQ Newbie
 
Registered: Mar 2011
Posts: 8

Original Poster
Rep: Reputation: 0
EricTRA,
Please help only with required steps ....... for SQUID3 to make it reverse proxy
 
Old 03-31-2011, 02:31 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
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

Last edited by EricTRA; 03-31-2011 at 03:48 AM. Reason: Typo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Ubuntu Server Vs. Ubuntu Desktop for home file server rhodes50 Ubuntu 28 12-19-2010 09:22 AM
Time Warp / Clock Problem - Ubuntu Alternate CD install over Ubuntu Server krimzen85 Linux - Software 2 08-07-2009 11:01 AM
LXer: Installing Xen On An Ubuntu 8.04 (Hardy Heron) Server From The Ubuntu Repositor LXer Syndicated Linux News 0 05-08-2008 03:10 PM
LXer: The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server) LXer Syndicated Linux News 0 04-27-2008 07:50 AM
LXer: Installing Xen On An Ubuntu Feisty Fawn Server From The Ubuntu Repositories LXer Syndicated Linux News 0 07-01-2007 07:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration