ALT Linux Community general discussions
 help / color / mirror / Atom feed
* [Comm] Caching nameserver & ipchains
@ 2003-01-15 13:06 Павел Глуховцев
  2003-01-15 13:52 ` Владимир
  0 siblings, 1 reply; 3+ messages in thread
From: Павел Глуховцев @ 2003-01-15 13:06 UTC (permalink / raw)
  To: community

Здравствуйте.

Установлен кэширующий 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"




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-01-15 14:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-01-15 13:06 [Comm] Caching nameserver & ipchains Павел Глуховцев
2003-01-15 13:52 ` Владимир
2003-01-15 14:03   ` Sergey Vlasov

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