* [Comm] Помогите с iptables
@ 2004-05-01 15:09 Anatol A. Ivanov
2004-05-03 3:02 ` Дмитрий Беляев
0 siblings, 1 reply; 2+ messages in thread
From: Anatol A. Ivanov @ 2004-05-01 15:09 UTC (permalink / raw)
To: community
Здравствуйте, community.
Помогите пжл с основами настроек, пример в четыре строчки.
Нужно ограничить весь трафик, а потом открыть нужные порты: 22, 80
итд
Что делать если на на машине несколько адресов которые используются в
vserver?
Спасибо.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [Comm] Помогите с iptables
2004-05-01 15:09 [Comm] Помогите с iptables Anatol A. Ivanov
@ 2004-05-03 3:02 ` Дмитрий Беляев
0 siblings, 0 replies; 2+ messages in thread
From: Дмитрий Беляев @ 2004-05-03 3:02 UTC (permalink / raw)
To: community
On Sat, 1 May 2004 19:09:06 +0400
"Anatol A. Ivanov" <anatol@fxp.ru> wrote:
> Здравствуйте, community.
>
> Помогите пжл с основами настроек, пример в четыре строчки.
>
> Нужно ограничить весь трафик, а потом открыть нужные порты: 22, 80
> итд
Какой трафик??? проходящий? с хоста???
Для прохдящего:
iptables -P FORWARD DROP
iptables -A FORWARD -p tcp -m multiport -s your.lan.mask --ports 22,80 -j ACCEPT
iptables -A FORWARD -p tcp -d your.lan.mask -s ESTABLISHED -j ACCEPT
Если проходящий трафик, накой тебе юзверям ssh открывать???
Для входячки и исходячки писать в лом)) Читай маны))
> Что делать если на на машине несколько адресов которые используются в
> vserver?
Все закрыть, пускать только твои vserver-а и ESTABLISHED ))
--
WBR, Дмитрий Беляев
mail: dima@itos.dn.ua
icq: 262817594
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-05-03 3:02 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-05-01 15:09 [Comm] Помогите с iptables Anatol A. Ivanov
2004-05-03 3:02 ` Дмитрий Беляев
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