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