LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 02-26-2009, 01:10 AM   #1
rohit_67066
Member
 
Registered: Jan 2007
Posts: 55

Rep: Reputation: 15
http request forwarding to proxy


hi

i want to redirect the packet to proxy server. can u help me.

Present network.

MY internal network ==> switch ==> proxyserver ==> router ==> internet.
(for internet i use
to connect proxy, in web browser==> lan settings ==> proxy server ip address )

What i want is

My internal network ==> getway or firewall ==> switch ==> proxy server ==> router==> internet. ( where this getway or firewall i can configure for forward http request to proxy server.)


so that i can separate my internal network from intranet but able to access the internet.


help me out

raghu
 
Old 02-26-2009, 07:18 PM   #2
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, I use squid proxy, and make connections transparently with iptables firewall.

But my iptables rules allow for transparent proxy requests.

Also, On my small (very) home network,

Quote:
My internal network ==> getway or firewall ==> switch ==> proxy server ==> router==> internet.
is all on this box (system).

My other computers connect to this one to access the internet via the proxy as well as this one via browser settings.

I have found this site very useful...

http://www.linuxhomenetworking.com/w...ess_with_Squid
Code:
Version 2.6 and Beyond: Newer versions of Squid simply require you to add the word "transparent" to the default "http_port 3128" statement. In this example, Squid not only listens on TCP port 3128 for proxy connections, but will also do so in transparent mode.

http_port 3128 transparent
these lines for the iptables script...
Code:
 Configuring iptables to Support the Squid Transparent Proxy

The examples below are based on the discussion of Linux iptables in Chapter 14, "Linux Firewalls Using iptables". Additional commands may be necessary for you particular network topology.
Allowing the fw to access the internet...
Code:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables#Allowing_Your_Firewall_To_Access_The_Internet
So, you need to add to /etc/squid/squid.conf, /etc/../iptables and /etc/sysctl.conf (packet forwarding)

cheers, Glenn
 
Old 02-26-2009, 10:47 PM   #3
rohit_67066
Member
 
Registered: Jan 2007
Posts: 55

Original Poster
Rep: Reputation: 15
thank you

Quote:
Originally Posted by GlennsPref View Post
Hi, I use squid proxy, and make connections transparently with iptables firewall.

But my iptables rules allow for transparent proxy requests.

Also, On my small (very) home network,



is all on this box (system).

My other computers connect to this one to access the internet via the proxy as well as this one via browser settings.

I have found this site very useful...

http://www.linuxhomenetworking.com/w...ess_with_Squid
Code:
Version 2.6 and Beyond: Newer versions of Squid simply require you to add the word "transparent" to the default "http_port 3128" statement. In this example, Squid not only listens on TCP port 3128 for proxy connections, but will also do so in transparent mode.

http_port 3128 transparent
these lines for the iptables script...
Code:
 Configuring iptables to Support the Squid Transparent Proxy


The examples below are based on the discussion of Linux iptables in Chapter 14, "Linux Firewalls Using iptables". Additional commands may be necessary for you particular network topology.
Allowing the fw to access the internet...
Code:
http://www.linuxhomenetworking.com/wiki/index.php/Quick_HOWTO_:_Ch14_:_Linux_Firewalls_Using_iptables#Allowing_Your_Firewall_To_Access_The_Internet
So, you need to add to /etc/squid/squid.conf, /etc/../iptables and /etc/sysctl.conf (packet forwarding)

cheers, Glenn
hi glenn ,

i will go through and will be back with result, thank you.
 
  


Reply



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
Routing http request? stiffy Linux - Server 6 02-27-2007 04:31 PM
http request mkamyar Linux - Software 5 08-30-2005 02:30 AM
HTTP::Request and CPAN support amer_58 Linux - Newbie 2 03-30-2005 11:46 AM
Authentication In A Http Request With Kerberos Ephraim Programming 0 08-03-2004 04:13 AM
HTTP request parsing: POST mofofish Programming 3 12-05-2003 10:11 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:41 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