|
Re: lug-bg: hi iptables i squid
- Subject: Re: lug-bg: hi iptables i squid
- From: eex@email.domain.hidden (Elin)
- Date: Fri, 04 Jul 2003 11:19:59 +0000
ne e llocalen squida
oneofus_at_crew.inetg.bg wrote:
<em class="quotelev1">>ako squid-a koito iskash da polzwash e localno na mashinata koqto prawi
<em class="quotelev1">>masq/snat na tazi mreja (192.168.x.x) nai dobre go naprawi s redirecct ->
<em class="quotelev1">>iptables -t nat -A PREROUTING -p tcp -s 192.168.1.80 -d 216.228.114.72
<em class="quotelev1">>--dport 80 -j REDIRECT --to-port 8080 (ili kufto tam e port-na na squid-a)
<em class="quotelev1">>
<em class="quotelev1">>Regards ....
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev2">>>ptables -t nat -A PREROUTING -s 192.168.1.80 -p tcp -d 216.228.114.72
<em class="quotelev2">>>--dport 80 -j DNAT --to-destination <ipto na squid 8080 ili 80>
<em class="quotelev2">>>
<em class="quotelev2">>>
<em class="quotelev2">>>Todor Belev wrote:
<em class="quotelev2">>>
<em class="quotelev2">>>
<em class="quotelev2">>>
<em class="quotelev3">>>>Znachi za ACL listi predpolagam niama nujda da govorim, nujnite ti opcii
<em class="quotelev3">>>>osven tiah sa ti slednite:
<em class="quotelev3">>>>
<em class="quotelev3">>>>httpd_accel_host Ip-to na SQUID-a
<em class="quotelev3">>>>httpd_accel_port 80
<em class="quotelev3">>>>httpd_accel_with_proxy on
<em class="quotelev3">>>>httpd_accel_uses_host_header on
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>Todorin
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev4">>>>>-------- Îðèãèíàëíî ïèñìî --------
<em class="quotelev4">>>>>Îò: Elin <eex_at_mr-bricolage.bg>
<em class="quotelev4">>>>>Îòíîñíî: lug-bg: hi iptables i squid
<em class="quotelev4">>>>>Äî: lug-bg_at_linux-bulgaria.org
<em class="quotelev4">>>>>Èçïðàòåíî íà: ×åòâúâòúê, 2003, Þëè 3 18:41:49 EEST
<em class="quotelev4">>>>>----------------------------------
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>zdraveite imam nuzda ot help tazi komanda na iptables
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>iptables -t nat -A PREROUTING -s 192.168.1.80 -p tcp -d 216.228.114.72
<em class="quotelev4">>>>>--dport 80 -j DNAT --to-destination <ipto na squida i port>
<em class="quotelev4">>>>>znachi tai komanda pravi slednoto ot sorsa *1.80 pravi zaivaka kam
<em class="quotelev4">>>>>216.228.114.72 na 80 prot i ideiata mie za toizi ip da go prehvurli
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>
<em class="quotelev3">>>>prez
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev4">>>>>squida samoche squida nemoga da go nakaram da se vurze s iptablesa
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>
<em class="quotelev3">>>>niako
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev4">>>>>znaeli kavi sa tochnite nastroiki za tova
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>============================================================================
<em class="quotelev4">>>>>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev4">>>>>http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>
<em class="quotelev3">>>>Zagora
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev4">>>>>To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev4">>>>>============================================================================
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>
<em class="quotelev4">>>>>
<em class="quotelev3">>>>-----------------------------------------------------------------
<em class="quotelev3">>>>http://opustheatrale.abv.bg - Ïîðú÷àé íîâèÿò äâîåí äèñê íà Ñòåôàí
<em class="quotelev3">>>>Âúëäîáðåâ ÒÓÊ !
<em class="quotelev3">>>>============================================================================
<em class="quotelev3">>>>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev3">>>>http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
<em class="quotelev3">>>>Zagora
<em class="quotelev3">>>>To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev3">>>>============================================================================
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev3">>>>
<em class="quotelev2">>>============================================================================
<em class="quotelev2">>>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev2">>>http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara
<em class="quotelev2">>>Zagora
<em class="quotelev2">>>To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev2">>>============================================================================
<em class="quotelev2">>>
<em class="quotelev2">>>
<em class="quotelev2">>>
<em class="quotelev1">>
<em class="quotelev1">>============================================================================
<em class="quotelev1">>A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
<em class="quotelev1">>http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
<em class="quotelev1">>To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
<em class="quotelev1">>============================================================================
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<em class="quotelev1">>
<p>============================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers).
http://www.linux-bulgaria.org - Hosted by Internet Group Ltd. - Stara Zagora
To unsubscribe: http://www.linux-bulgaria.org/public/mail_list.html
============================================================================
|
|
|