From: Alexey Morsov <samurai@ricom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] простой вопрос по iptables
Date: Tue, 21 Dec 2004 17:23:58 +0300
Message-ID: <41C831FE.3070908@ricom.ru> (raw)
In-Reply-To: <41C83CA7.5060508@ritm.msk.ru>
Отдел АСУ и НЭО wrote:
> Mike Lykov пишет:
>
>> В сообщении от Вторник 21 Декабрь 2004 18:39 Отдел АСУ и НЭО написал:
>>
>>
>>> Мой опыт администрирования Линукс очень беден, поэтому
>>> заранее прошу прощения за глупые (возможно) вопросы.
>>>
>>
>>
>> вопросы обычные , и вполне укладываются в чтение
>>
>> http://gazette.lrn.ru/rus/articles/index-iptables-tutorial.html
>>
>>
>>
>
> Угу, сижу читаю. Но готовый скрипт был бы кстати (подозреваю, что он
> будет то
> строчек 3-5)
> Просто сейчас от меня требуют сделать, а читать и наслаждаться я лучше
> потом буду :-)
> Еще побаиваюсь, что разберусь, все сделаю, а сделаю дыряво.
Чего там дырявить то...
iptables -A FORWARD -p tcp -s $IP_OF_BUCH -d $IP_OF_BANK --dport
$PORT_OF_BANK -m --mac-source $MAC_OF_BUCH -j ACCEPT
iptables -A FORWARD -p tcp -s $IP_OF_BANK --sport $PORT_OF_BANK -d
$IP_OF_BUCH -m --state ESTABLISHED,RELATED -j ACCEPT
И всЁ.... (писал по памяти так что мог синтаксис где-то ляпнуть... см.
man iptables)
--
Всего наилучшего,
Системный Администратор ЗАО "ИК "РИКОМ-ТРАСТ"
Алексей Морсов
ICQ: 196766290
Jabber: Samurai@jabber.pibhe.com
http://www.ricom.ru
http://www.fondmarket.ru
next prev parent reply other threads:[~2004-12-21 14:23 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-21 14:39 Отдел АСУ и НЭО
2004-12-21 13:43 ` Mike Lykov
2004-12-21 15:09 ` Отдел АСУ и НЭО
2004-12-21 14:23 ` Alexey Morsov [this message]
2004-12-21 15:22 ` Maxim Tyurin
2004-12-21 15:27 ` Alexey Morsov
2004-12-21 13:48 ` Maxim Tyurin
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=41C831FE.3070908@ricom.ru \
--to=samurai@ricom.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