From: Владимир <fmfm@symmetron.msk.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Caching nameserver & ipchains
Date: Wed, 15 Jan 2003 16:52:54 +0300
Message-ID: <3E2567B6.7000201@symmetron.msk.ru> (raw)
In-Reply-To: <000001c2bc96$f090c150$1a010a0a@vep.local>
Павел Глуховцев пишет:
>Здравствуйте.
>
>Установлен кэширующий nameserver (caching-nameserver-7.0-ipl2mdk и
>bind-8.2.3-ipl4mdk) и прописаны следующие правила
>
>ipchains -A input -i $EXTERNAL_INTERFACE -p udp -s $NAMESERVER_1 53 -d
>$IPADDR 53 -j ACCEPT
>ipchains -A output -i $EXTERNAL_INTERFACE -p udp -s $IPADDR 53 -d
>$NAMESERVER_1 53 -j ACCEPT
>ipchains -A input -i $EXTERNAL_INTERFACE -p udp -s $NAMESERVER_2 53 -d
>$IPADDR 53 -j ACCEPT
>ipchains -A output -i $EXTERNAL_INTERFACE -p udp -s $IPADDR 53 -d
>$NAMESERVER_2 53 -j ACCEPT
>
>Но не работает.
>
>В named.conf есть следующий комментарий
> * If there is a firewall between you and nameservers you want
> * to talk to, you might need to uncomment the query-source
> * directive below. Previous versions of BIND always asked
> * questions using port 53, but BIND 8.1 uses an unprivileged
> * port by default.
>
>Установлен действительно BIND 8.2
>Добавил следующие правила, результат прежний.
>
>ipchains -A output -i $EXTERNAL_INTERFACE -p udp -s $IPADDR $UNPRIVPORTS
>-d $NAMESERVER_1 53 -j ACCEPT
>ipchains -A input -i $EXTERNAL_INTERFACE -p udp -s $NAMESERVER_1 53 -d
>$IPADDR $UNPRIVPORTS -j ACCEPT
>ipchains -A output -i $EXTERNAL_INTERFACE -p udp -s $IPADDR $UNPRIVPORTS
>-d $NAMESERVER_2 53 -j ACCEPT
>ipchains -A input -i $EXTERNAL_INTERFACE -p udp -s $NAMESERVER_2 53 -d
>$IPADDR $UNPRIVPORTS -j ACCEPT
>
>где
>NAMESERVER_1="195.12.66.1"
>NAMESERVER_2="195.12.66.65"
>UNPRIVPORTS="1024:65535"
>IPADDR="195.12.68.190"
>
>
А $NAMESERVER_1 и $NAMESERVER_2 зачем указывать?
caching-nameserver сам по себе "бегает" по всему inet и не привязан
к DNS серверам провайдера. Такие правила не дадут ему работать.
Нужно ANY
--
Best regards
Vladimir
next prev parent reply other threads:[~2003-01-15 13:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-15 13:06 Павел Глуховцев
2003-01-15 13:52 ` Владимир [this message]
2003-01-15 14:03 ` Sergey Vlasov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3E2567B6.7000201@symmetron.msk.ru \
--to=fmfm@symmetron.msk.ru \
--cc=community@altlinux.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux Community general discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/community/0 community/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 community community/ http://lore.altlinux.org/community \
mandrake-russian@linuxteam.iplabs.ru community@lists.altlinux.org community@lists.altlinux.ru community@lists.altlinux.com
public-inbox-index community
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.community
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git