Networking Forums

Networking Forums > Computer Networking > Linux Networking > Requesting Direction regarding iptables

Reply
Thread Tools Display Modes

Requesting Direction regarding iptables

 
 
Brad S
Guest
Posts: n/a

 
      07-28-2004, 10:05 PM
Hello, thanks for taking the time to read my msg.

I am trying to setup my iptables to use squid as the gateway for the
network (which looks like)
http://www.garnessengineering.com/im...rentconfig.gif

To get my cards to interact as a gateway I use the commands.

iptables --table nat --append POSTROUTING --out-interface eth1 -j
MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT

This allows my client machines to connect to the 149.0.0.1 gateway and
use the 192.168.0.1 gateway to communicate with the internet. I need
the http traffic to be routed through the squid proxy, prior to being
sent out to the router.

In the squid faq they give this command (BELOW) in order to use squid
as the gateway proxy. I tried implementing this with no sucess, I
think i am close, but some expert direction would be greatly
appreciated.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 3128

I am using linux slackware current, squid 2.5 & my kernel has support
for masqurading and iptables configured. I just am not sure which
iptables commands to use in my startup script to configure my network.
I really appreciate it thanks alot. yikes iptables is confusing and
intimidating, but I think i can get it with some direction.

Brad Garness
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
RPC error when requesting a certificate averied Windows Networking 1 03-26-2007 02:04 PM
Requesting a M.A.C from BT BB jpd Broadband 5 12-11-2006 05:25 AM
Requesting a MAC Code John Broadband 26 02-10-2006 11:45 AM
I'm requesting a feature for the MN-100 Nikitas Broadband Hardware 3 08-03-2004 11:17 PM
BT error requesting Broadband Sandman Broadband 5 04-15-2004 08:05 AM



1 2 3 4 5 6 7 8 9 10 11