LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 05-16-2005, 02:27 PM   #1
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Rep: Reputation: 15
proxy server behind router?


hello, i'm wondering if this is possible or safe?
Code:
"The Internet" -> ROUTER -> OTHER COMPUTERS FOR HOME USE
                         +> "PROXY SERVER" (linux box)
The thing is, at my school they have a server that blocks things like websearches that include certain keywords (if researching a game for history, for example, "games" would be forbidden) and even important multimedia. I'd like to proxy to an old computer i have at home (pentium-s 150mhz) and have that connect me to the internet so I can bypass this.

I've visited sites with public proxy servers and I find them slow, and I fear they're caching and watching my activity. I don't want to pay for another DSL line; I'd just like to run a router with an existing line. Will it work behind a router? Should I DMZ it or crack open port 8080 or something? If i'm the only one who is using this proxy server, will it be safe? Is it strong enough to work?

Haha, I'm a hobbist with minimal networking experience.

Last edited by toaster.waffle; 05-16-2005 at 02:30 PM.
 
Old 05-17-2005, 12:34 PM   #2
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Original Poster
Rep: Reputation: 15
How about

internet -> linux box -> router ->computers on network
 
Old 06-01-2005, 08:24 PM   #3
redss
Member
 
Registered: Jun 2003
Posts: 165

Rep: Reputation: 16
What you describe should work just fine. I also do the same thing. You can run squid on the linux box as a proxy server, and log into your router's setup to open the port that squid uses (3128 by default). Or even better, just open a port on the router for use with ssh, and use an ssh client (like putty) to log into your linux box from the internet, and use ssh tunneling to forward port 3128 to squid. The latter option is harder to configure though. If you need tips on that let me know.
 
Old 06-01-2005, 08:39 PM   #4
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Original Poster
Rep: Reputation: 15
wicked, a reply.

well, the mother board the computer i was going to use broke (the keyboard jack STOPPED working)

but if i set up squid, would i just enter the IP address given to the router with port 3128? is there any security risk having it behind the router? or is it safer?
 
Old 06-01-2005, 08:55 PM   #5
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
internet -> router -> proxy -> LAN

if youre not a linux firewall expert then the above setup will be much more secure. Routers usually have decent firewalls that will keep 99% of the bad guys out. Try this

Router - 192.168.1.1
filter ports 1 - 99 and 101 - 254

Proxy Server External IP - 192.168.1.100
Proxy Server Internal IP - 192.168.0.1

Use 192.168.0.X for your LAN computers and setup 192.168.0.1 as their Gateway. Should be easy to do and pretty darn secure.
 
Old 06-01-2005, 11:17 PM   #6
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Original Poster
Rep: Reputation: 15
I'm not looking to connect to the proxy from my LAN, but from another location.

would that setup still work?
 
Old 06-02-2005, 07:41 AM   #7
msound
Member
 
Registered: Jun 2003
Location: SoCal
Distribution: CentOS
Posts: 465

Rep: Reputation: 30
you should just be able to setup port forwarding on your router so the requests get passed through to your proxy server. just like hosting a web and email server from behind a router. and by having the machine behind the router it will help to protect it from other malicious connection attempts.

router's external ip 22.95.159.24 (example)
forward port 3128yo 192.168.0.100
proxy's lan ip 192.168.0.100

in your web browser, proxy address 22.95.159.24:3128
 
Old 06-02-2005, 09:53 AM   #8
fuelinjection
Member
 
Registered: Nov 2003
Location: County Durham, England
Distribution: Fedora
Posts: 238

Rep: Reputation: 30
Theres always to option of installing a web based proxy on your machine. You would simply install the website on your machine which would then be setup as a web server. You could then forward all traffic for port 80 from your router to your linux box.

When your at school, you could then just simply visit your box http://192.192.5.1:80, this would give you a text field. Simply enter the web address you want to look at and it'll take you there.

You could do as what others have been saying, but I fear that there may be a firewall on your school network which could prevent you from using your own proxy server. It maybe that the firewall will only accept traffic from a specific IP address(i.e. the proxy server).

For the web based proxy, I think you can get something called CGI-Proxy. The only problem is, is that is doesnt work with secure site (or it didnt last year).
 
Old 06-02-2005, 07:54 PM   #9
toaster.waffle
Member
 
Registered: Feb 2005
Location: Ontario, Canada
Distribution: Gentoo
Posts: 97

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by fuelinjection

You could do as what others have been saying, but I fear that there may be a firewall on your school network which could prevent you from using your own proxy server. It maybe that the firewall will only accept traffic from a specific IP address(i.e. the proxy server).
we're given the option in Netscape and Firefox to select a proxy. I have used public proxy esrvers and have it work (very very slow) but i fear that i'm being logged and stuff (despite the "anonymous" and "transparent".

also, i will learn more about networking, which is nice.
 
  


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
squid proxy server configuration & distribution of internet without proxy gaurav_gupta082 Linux From Scratch 2 07-31-2010 11:25 AM
Router/Proxy scammeh^ Linux - Networking 7 06-29-2005 09:01 AM
DNS proxy on router: useful? Kropotkin Linux - Networking 1 11-10-2004 10:35 AM
Proxy settings? Linux browser to router! :S warnesey333 Linux - Networking 14 10-02-2004 01:49 PM
Router Behind a PROXY ????????? peachy Linux - Networking 5 08-26-2004 05:12 PM


All times are GMT -5. The time now is 01:28 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration