![]()
From: Serdar KOYLU (serdar@uludag.org.tr)
Date: Wed 05 May 2004 - 15:25:22 EEST
Selamlar..
Fedora CD'lerinde named veya bind adinda bir program olacak. Hallice bir
DNS serverdir. Onu kurun. Daha sonra da calistirin. Ardindan:
# iptables -t nat -A OUTPUT -p udp --dport 53 -m owner --uid-owner \
$(cat /etc/passwd|grep "squid:"|cut -f 3 -d ":") \
-j DNAT --to 127.0.0.1:53
komutunu verin. Yada kestirme yoldan "/etc/resolv.conf" dosyasinin icine
"nameserver 127.0.0.1" ekleyin vede DSL icin yaptiginiz ayar dosyasindan
ayar yapip PPPD'nin nameserver adreslerini degistirmesini engelleyin.
sorununuz tipik bir nameserver sorunu. Diger yandan, clientlerin
DNS'lerini bu makineyi gosterecek sekilde ayarlayin. Su anda, browser
once bir defa adres soruyor, ardindan bir de squid ayni adresi cozuyor.
Buda gereksiz paket yuku demek. Cache-only calisan DNS sunucu burada son
derece makul olur saniyorum, temenni ediyorum vs. vs...
Saygi ve sevgiler..
> Merhaba,
> Ben fedora linuxa ADSL usb modem kurdum ve calistirdim. DHCP ile clientlara ip ve dns dagitiyorum. Asagidaki parametreler ile tum aga dagittim.
>
> #echo 1 > /proc/sys/net/ipv4/ip_forward
> #iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
>
> Sorunsuz tum bilgisayarlar calismakta. Squid kurdum ve clientan ayarlari yazarak squidin proxy görevini yaptigini gordum. Transparent icin gerekli ayarlari yaptim
>
> #http_port 3128
> #httpd_accel_host virtual
> #httpd_accel_port 80
> #httpd_accel_with_proxy on
> #httpd_accel_uses_host_header on
>
> En sonda da 80 portunu 3128 yönlendirdim.
> #iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 3128
>
> Ancak clientlar bu ayarlarla cikamadilar. Nerde hata yaptigimi bulamadim. Bana bu konuda yardim edermisiniz? Hata asagida.
>
> The requested URL could not be retrieved
> --------------------------------------------------------------------------------
>
> While trying to retrieve the URL: http://www.linux.org.tr/admin.php
>
> The following error was encountered:
>
> Unable to determine IP address from host name for www.linux.org.tr
> The dnsserver returned:
>
> Name Error: The domain name does not exist.
> This means that:
>
> The cache was not able to resolve the hostname presented in the URL.
> Check if the address is correct.
> Your cache administrator is root.
>
>
>
>
>
> ___________________________________
> NOCC, http://nocc.sourceforge.net
>
>
>
![]()