[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: iptables and squid



thanks
now if i have the squid running in other computer how can i redirect all
the packets to port 3128 on that computer?

is that doable??

thanks

> Luis wrote:
>> helloo everyone finally im controlling all the input and output traffic
>> on
>> my network
>> now i would like to control the traffic and internet /intranet access
>> via
>> squid
>> example
>>
>> 10.30.143.1-internal network
>> 10.30.142.1/server-gateway-and-iptables-firewall
>> 10.x.x.x-external network
>>
>> how can i redirect all the packets/ports to squid ? or at least control
>> the bandwith using iptables
> Make 10.30.142.1 the gateway for all the PCs in the internal network.
> Then on the gateway, use iptables and redirect all ports to the port
> squid listens to.
> eg : to redirect port 80 traffic to squid's 3128 :
> iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
> --to-port 3128
>
> Ace.
>
> --
> Random Quotes From Megas XLR
> Coop: You see? The mysteries of the Universe are revealed when you break
> stuff.
> Jamie: When in doubt, blow up a planet.
> Kiva: It's an 80 foot robot, if we can't see it, absolutely it's not here.
> Glorft Technician: Unnecessary use of force in capturing the Earthers
> has been approved.
>
>
> --
> To UNSUBSCRIBE, email to debian-firewall-REQUEST@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact
> listmaster@lists.debian.org
>
>


-- 
-------------------------------------------------
                           Luis A. Rondon Paz
    L I N U X       .~.    Admin intranet CNT
   The  Choice      /V\    icq #132736035
    of a GNU       /( )\   itachi@cnt.uo.edu.cu
   Generation      ^^-^^    Santiago de cuba
                   UONET
-------------------------------------------------




Reply to: