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


  Search this Thread
Old 05-29-2006, 11:40 AM   #1
Registered: Nov 2005
Distribution: Gentoo
Posts: 51

Rep: Reputation: 16
Configuring a transparent proxy on a client machine ONLY instead of a server machine.

Hi all,

I've been trying to find for awhile now how to configure a client machine to connect to the internet through a proxy on a server machine without configuring any applications on the client machine for proxy, by using the iptables command on the client machine.

All documentation i've googled on transparent proxying have been to do with setting up a transparent proxy either on the server machine or a machine between the server machine and the client machine.

The reason why I would like to set the client machine up this way, is that at uni my client machine is connects to the internet via a proxy on the server machine, I am unable to touch the server machine, and my client machine has commands that need the internet (most of which use port 80) and can not be configured for proxy.

I was kinda hoping I could do something like this ...

iptables -t nat -A PREROUTING -p tcp --dport 80 -j DNAT --to-destination

where is the ip of the proxy server.
It does not work tho.


Old 05-31-2006, 03:53 AM   #2
Registered: Nov 2005
Distribution: Gentoo
Posts: 51

Original Poster
Rep: Reputation: 16
Ok I think I worked out a part of it. I need to use the OUTPUT channel in the "nat" table, from my client machine.

The server uses a squid proxy.

iptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination
The only problem now is that it is a Authenticated proxy. I need to supply a username and password somehow.

Any ideas?


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
Transperant Proxy and web server on one machine = issue ... sys7em Linux - Networking 2 06-16-2005 03:29 PM
transparent proxy on a single machine kscott121 Linux - Networking 2 06-27-2004 09:37 PM
Sharing Proxy server by another Linux machine to configure sendmail joson Linux - Networking 7 12-16-2003 02:05 PM
client can't copy files to local machine through vsftpd server on RH9 tree_buddy Linux - Networking 7 09-15-2003 11:54 AM
How to view the web site hosted on win2k server which is a client machine? gogo Linux - Networking 10 10-19-2002 11:48 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:23 PM.

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