LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-29-2006, 10:40 AM   #1
clinux_rulz
Member
 
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 1.2.3.4:8080

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

Cheers.

Clinton.
 
Old 05-31-2006, 02:53 AM   #2
clinux_rulz
Member
 
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.

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

Any ideas?
 
  


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

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

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