Transparentni proxy a loclahost.

Jan ' Kozo ' Vajda jvajda na somi.sk
Středa Duben 16 11:02:26 CEST 2003


:> Dobry den.
:> Mam dotaz ohledne zprovozneni transparentni proxy ciste pro pocitac na
:> kterem bezi. Neboli mam linuxovou stanici a chtel bych, aby vsechny
:> pozadavky z ni sly pres proxy server bezici na tom samem PC (port 3128).
:> Chtel bych jen poznamenat ze chci do proxy pristupovat pouze z te
:> stanice a ne z nejakych dalsich siti (to je snad popsano vsude).
:> 
:> Zkousel jsem ze zoufalstvi neco jako:
:> iptables -t nat -A OUTPUT -p tcp --dport 80 --sport 3128 -j ACCEPT
:> iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-port 3128

iptables -t nat -A OUTPUT -p tcp --dport 80 -m owner ! --uid-owner squid REDIRECT --to-ports 3128 




		                                   K O Z O 
                		    ===================================
                                      Look At Your Young Man Fighting
                                         Look At Your Woman Crying
                                       Look At Your Young Man Dying
                                    The Way They've Always Done Before



Další informace o konferenci Linux