LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 02-29-2012, 02:18 PM   #1
hendersx
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Rep: Reputation: Disabled
setting up home proxy linux server


hi i would like to create a home proxy on my linux server, id like to be able to connect such as:

device --------------------- proxy --------------------------- internet
outside--------https------- home -------------http----------- www

i want to connect to the proxy so that all traffic goes in https and then to rest of web in http, and i would like to make all the https traffic look like its going to a website hosted on the server with the proxy.


i apreciate any help, any suggestions for software such as apache or squid, or anything i can research for help.
thanks in advance.

Last edited by hendersx; 02-29-2012 at 03:31 PM.
 
Old 03-01-2012, 10:21 AM   #2
SAbhi
Member
 
Registered: Aug 2009
Location: Bangaluru, India
Distribution: CentOS 6.5, SuSE SLED/ SLES 10.2 SP2 /11.2, Fedora 11/16
Posts: 665

Rep: Reputation: Disabled
you should be more specific technically...

u wanted to route all your traffic to a web proxy right..

u have to configure a proxy server for that purpose ..

u need to check whether required package is installed or not:

Quote:
rpm -qa squid

if the package is installed already it will show you at the next line .
if not command prompt will appear...

to install this package:

get the OS dvd, goto the Package directory and type:

rpm -ivh squid
u need to edit this file: /etc/squid/squid.conf
for further process tell some more options you need to have in your proxy server.
 
Old 03-01-2012, 05:36 PM   #3
hendersx
LQ Newbie
 
Registered: Feb 2012
Posts: 2

Original Poster
Rep: Reputation: Disabled
thanks very much i only want to use for http traffic, so i want to make it all go to a host site on the proxy then forwarded from here. t
thanks
 
Old 03-08-2012, 02:52 AM   #4
mejohnsn
Member
 
Registered: Sep 2009
Posts: 174

Rep: Reputation: Disabled
Various Choices for Proxy Server under Linux

You can certainly use squid. You can also use Apache. There is a container <Proxy> you can use together with directives ProxyRequests and ProxyVia (you almost always need this) in httpd.conf.

In fact, I have it set up to do that on my home server. I use the following to get it to work for any machine in my home LAN, but on port 8080 (I have 'Listen 8080' elsewhere in httpd.conf):

<IfModule mod_proxy.c>
ProxyRequests On
ProxyVia On
<Proxy *:8080>
Require valid-user
AuthName "ClosedProxy"
AuthType Basic
AuthUserFile /home/mejohnsn/serverPwdFileBasic
Order allow,deny
Allow from 192.168.0.0/255.255.255.0
Satisfy Any
</Proxy>
</IfModule>

And I used htpasswd to create the one user and password in serverPwdFileBasic

Now for what you are doing, you don't need all that complexity: I was trying to get it to work without password (authentication challenge) for machines inside, but with challenge for machines outside. But for machines outside, I get the challenge, yet authentication fails even when I do enter the right user/password. So it is still safe from hackers But this will be the topic of another post.

Don't forget to open up port 8080 on the firewalls on all machines inside your LAN. Or change it to port 80, if as likely it is already open.

The article at http://www.devshed.com/c/a/Administr...roxy-Server/2/ on using Apache as a proxy server is pretty elementary, but still pretty good. I lifted a lot of the above config from there.
 
  


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
Setting up a home network wifi-ap/proxy/router etc cjreyn Linux - Networking 1 01-16-2011 10:49 AM
problems with setting linux home server Doctor22 Linux - Server 6 04-05-2007 05:52 AM
Setting up a Linux home server slash587 Linux - Networking 3 03-19-2006 01:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:28 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
Open Source Consulting | Domain Registration