ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Amodeus <amodeus@pisem.net>
To: community@altlinux.ru
Subject: Re: [Comm] Закрыть порт снаружи
Date: Wed, 2 Apr 2003 14:25:43 +0400
Message-ID: <200304021425.49623.amodeus@pisem.net> (raw)
In-Reply-To: <20030402093702.GA14842@abr.tool.ru>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

В сообщении от 2 Апрель 2003 13:37 Andrey Brindeew написал:
> Как закрыть 53-й порт снаружи в iptables? Мне не удалось
> повесить pdnsd на два интерфейса (127.0.0.1 и 192.168.1.1),
> получается либо только на один интерфейс, либо на все.
>
> Вот что выводит sudo ipchains --list :
>
> Chain INPUT (policy ACCEPT)
> target     prot opt source               destination
> ACCEPT     udp  --  anywhere             anywhere          
> udp spt:bootpc dpt:bootps ACCEPT     tcp  --  anywhere        
>     anywhere           tcp spt:bootpc dpt:bootps ACCEPT    
> udp  --  anywhere             anywhere           udp
> spt:bootps dpt:bootpc ACCEPT     tcp  --  anywhere            
> anywhere           tcp spt:bootps dpt:bootpc ACCEPT     udp 
> --  anywhere             anywhere           udp dpt:domain
> ACCEPT     tcp  --  anywhere             anywhere          
> tcp dpt:domain
>
> Chain FORWARD (policy ACCEPT)
> target     prot opt source               destination
> ACCEPT     all  --  192.168.1.0/24       anywhere
>
> Chain OUTPUT (policy ACCEPT)
> target     prot opt source               destination
>
> Какое правило необходимо создать для того, чтобы 53 порт с
> интерфейса ppp0 не был виден?
#iptables -A INPUT -p 'tcp' -i ppp0 --destination-port 53 -j 
REJECT
#iptables -A INPUT -p 'udp' -i ppp0 --destination-port 22 -j 
REJECT
Так как DNS подразумевает откытыми 53 порты и TCP и UDP, то 
приходится закрывать их оба!
У меня великолепно работает!
- -- 
Amodeus
Saratov Linux User Group
amodeus@pisem.net
http://saratov.lug.ru
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE+irqsYF+yo0vG3NkRAoujAJ0VbtQmXoSDXrHvZaw/kX/n7ecBfQCfbjFR
P/EwtyJYalB2h210Xkm7RDI=
=tosV
-----END PGP SIGNATURE-----

  parent reply	other threads:[~2003-04-02 10:25 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-02  9:37 Andrey Brindeew
2003-04-02 10:10 ` [Comm] " Artem K. Jouravsky
2003-04-02 11:21   ` Andrey Brindeew
2003-04-02 11:45     ` Artem K. Jouravsky
2003-04-02 12:54     ` Amodeus
2003-04-02 10:25 ` Amodeus [this message]
2003-04-02 11:37   ` Andrey Brindeew
2003-04-02 12:56     ` Amodeus
2003-04-02 17:49 ` Alexey Tourbin

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=200304021425.49623.amodeus@pisem.net \
    --to=amodeus@pisem.net \
    --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