From: "Volkov Serge" <vserge@menatepspb.msk.ru>
To: mandrake-russian@altlinux.ru
Subject: Re: [mdk-re] ipchains question!
Date: Fri Oct 19 12:11:01 2001
Message-ID: <20011019121105.7b35acec.vserge@menatepspb.msk.ru> (raw)
In-Reply-To: <3BCF12D5.5080308@lrn.ru>
Вы Thu, 18 Oct 2001 21:35:17 +0400
John Profic <profic@lrn.ru> написали:
> Lenya L. Khachaturov wrote:
>
> > Здравствуйте,
> > Подскажите пожалуйста как сделать следующее:
> > policy на default-цепочках -- DENY
> > Нужно разрешить хостам из внутренней сети 192.168.1.0/24
> > доступ к внешним серверам smtp (для примера). Что-то никак
> > не получается! Как написал
> > ipchains -P input DENY
> > ipchains -P output DENY
> > ipchains -P forward DENY
>
> > так все и перерубило, как ни пляшу.
>
> Не знаю, но может DENY это слишком?
> я пользуюсь /etc/init.d/ipchains
> вот его конфиг
> :input ACCEPT
> :forward ACCEPT
> :output ACCEPT
> -A forward -p tcp -s 192.168.1.101/255.255.255.255 -d 0.0.0.0/0.0.0.0
> smtp -j MASQ
> -A forward -p tcp -s 192.168.1.101/255.255.255.255 -d 0.0.0.0/0.0.0.0
> pop3 -j MASQ
> Т.е. полько одна машина в сети (IP 192.168.1.101 - это mail-сервер)
> может иметь доступ к внешним SMTP и POP3 серверам, все остальные у меня
> сидят на скивиде, ну кроме самого шлюза :)
Нужно быть немного строже
ipchains -P input DENY
ipchains -P output DENY
ipchains -P forward DENY
ipchains -A input -s 192.168.1.0/255.255.255.0 -d 0/0 -j ACCEPT
ipchains -A output -s 0/0 -d 192.168.1.0/255.255.255.0 -j ACCEPT
ipchains -A forward -s 192.168.1.0/255.255.255.0 -d 0/0 -j MASQ
--
With best wishes, Volkov Serge
Network Administrator/Security Administrator
next prev parent reply other threads:[~2001-10-19 12:11 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-18 21:16 Lenya L. Khachaturov
2001-10-18 21:30 ` John Profic
2001-10-19 12:11 ` Volkov Serge [this message]
2001-10-19 13:06 ` [mdk-re] ipchains question Sergey S. Skulachenko
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=20011019121105.7b35acec.vserge@menatepspb.msk.ru \
--to=vserge@menatepspb.msk.ru \
--cc=mandrake-russian@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