LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-09-2011, 04:31 PM   #1
klingoncowboy4
Member
 
Registered: May 2007
Location: Seba Beach, Ab
Distribution: Fedora 14
Posts: 34

Rep: Reputation: 0
Squid Gateway configuration iptables help


Hi,

I am trying to set squid to run as a transparent server on my network. Unfortunetly the router hardware does not support port based forwarding (so I cannot simply make it forward all port 80 traffic through the squid computer). The only viable workaround given my current setup seems to be to configure the squid machine to act as a gateway and then have it use the router as its own gateway.

I am new to the world of iptables but from what I have read this is the way to go. What I am trying to achieve is basically as follows:

Client computer is configured to use squid machine as gateway

Squid computer receives all web traffic requests from client

All http (port 80) traffic is routed through squid (squid is already running in transparent mode)

Squid and all non port 80 traffic are sent to the actual gateway.

I though I found a good tutorial but when I run the example script I get he following errors

Code:
iptables v1.4.8: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
proxyset.sh: 40: ACCEPT: not found
iptables v1.4.8: option `-j' requires an argument
Try `iptables -h' or 'iptables --help' for more information.
proxyset.sh: 44: MASQUERADE: not found
proxyset.sh: 52: Syntax error: word unexpected

I am running this setup on Debian 6.0.2.1

Any help on this would be appretiated.

Thanks

Last edited by klingoncowboy4; 08-09-2011 at 04:32 PM.
 
Old 08-10-2011, 08:47 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Refer the following
http://www.linuxquestions.org/questi...-proxy-701710/
 
  


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
Question about IPTABLES Configuration / Squid Proxy andy.schmid Linux - Networking 4 10-15-2009 11:14 AM
what is wrong in my configuration in squid + dhcp3 + iptables + wpad.dat bideshp Linux - Networking 3 09-06-2009 05:42 PM
iptables configuration for squid 2.6 BurhanKhan Linux - Networking 2 06-05-2008 12:22 AM
internet gateway problems (iptables configuration) woranl Linux - Networking 11 08-27-2003 11:41 PM
Iptables / Squid Configuration aushtosh Linux - Security 2 04-09-2002 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

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