ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: Jury Levykin <altcomm@list.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Закрытие порта iptables
Date: Fri, 11 Feb 2005 11:21:40 +0300
Message-ID: <420C6B14.7000806@list.ru> (raw)
In-Reply-To: <420B1ACD.1080805@ricom.ru>

Alexey Morsov пишет:

> Добавить -s 0/0
> указать протокол (можно -p all)
>
> Вообщем - попробуйте так:
> iptables -A FORWARD -p all -s $COMPUTER7_IP --sport $DROPPORT -d 0/0 
> -j DROP
> iptables -A FORWARD -p all -s 0/0 -d $COMPUTER7_IP --dport $DROPPORT 
> -j DROP

Спасибо, помогло!

Но с -p all все та же ошибка:
iptables v1.2.7a: Unknown arg `--dport'
Try `iptables -h' or 'iptables --help' for more information.
iptables v1.2.7a: Unknown arg `--sport'
Try `iptables -h' or 'iptables --help' for more information.

Почемуто iptables не хочет применять правила для всех портов :(

Я написал две пары правил, для протоколов tcp и udp, думаю этого достаточно.


  reply	other threads:[~2005-02-11  8:21 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-09 14:32 Jury Levykin
2005-02-09 14:36 ` Serge Polkovnikov
2005-02-09 14:45   ` Jury Levykin
2005-02-09 15:26     ` Serge Polkovnikov
2005-02-09 17:07       ` Jury Levykin
2005-02-09 17:39         ` Maxim Tyurin
2005-02-09 19:06           ` Jury Levykin
2005-02-09 15:19 ` Maxim Tyurin
2005-02-10  7:07   ` kastelli
2005-02-10  8:35     ` kastelli
2005-02-10  8:26 ` Alexey Morsov
2005-02-11  8:21   ` Jury Levykin [this message]
2005-02-11  8:26     ` Serge Polkovnikov

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=420C6B14.7000806@list.ru \
    --to=altcomm@list.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