Um... yeah.  It was late.  What I meant to say was this:

$LOCALNET = 192.168.10.0/24
$PROXYMACHINE = 192.168.10.1
$IPTABLES -t nat -A PREROUTING -i eth0 -s ! $PROXYMACHINE -d ! $LOCALNET -p tcp 
--dport 80 -j DNAT --to $PROXYMACHINE:8080

This will send all outgoing packets destined for port 80 to $PROXYMACHINE
on port 8080, which is where you would run squid.

Sorry about that...

Jason

> Don`t you think, that the destination MAC address of packets will not be the
> MAC address of $PROXYMACHINE ?
> So, Linux won`t work with this packets (and there will not be any NAT).
> You need "Frame Diverter", that will replace destination MAC address.
> 
> Alex.
> 
> _______________________________________________
> Bridge mailing list
> [EMAIL PROTECTED]
> http://www.math.leidenuniv.nl/mailman/listinfo/bridge

-- 
_________________________________________________________________
Jason R. Martin | Network Administrator | Coordinated Science Lab
_______________________________________________
Bridge mailing list
[EMAIL PROTECTED]
http://www.math.leidenuniv.nl/mailman/listinfo/bridge

Reply via email to