LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   http request forwarding to proxy (https://www.linuxquestions.org/questions/linux-networking-3/http-request-forwarding-to-proxy-707638/)

rohit_67066 02-26-2009 01:10 AM

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

GlennsPref 02-26-2009 07:18 PM

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

rohit_67066 02-26-2009 10:47 PM

thank you
 
Quote:

Originally Posted by GlennsPref (Post 3458817)
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.


All times are GMT -5. The time now is 07:20 AM.