From: "Dmitriy L. Kruglikov" <Dmitriy.Kruglikov@orionagro.com.ua>
To: ALT Linux Sisyphus discussion list <sisyphus@lists.altlinux.org>
Subject: Re: [sisyphus] Помогите plz с iptables
Date: Wed, 12 Jul 2006 09:02:58 +0300
Message-ID: <20060712090258.4407624c@shadow.orionagro.com.ua> (raw)
In-Reply-To: <44B48442.4070203@tulanews.ru>
On Wed, 12 Jul 2006 09:10:26 +0400
Шишков Евгений Витальевич wrote:
> Все решил двумя строчками в /etc/sysconfig/iptables
> в секции *filter
> [0:0] -A FORWARD -s 192.168.1.0/24 -d 12.34.56.7 -j ACCEPT
> [0:0] -A FORWARD -s 12.34.56.7 -d 192.168.1.0/24 -j ACCEPT
> [0:0] -A INPUT -s 192.168.1.0/24 -p tcp -m tcp -i eth1 -d
> 12.34.56.7 -j ACCEPT
>
> Насколько это правильно/криво?
Если двумя, значить двумя.....
Строка
[0:0] -A FORWARD -s 12.34.56.7 -d 192.168.1.0/24 -j ACCEPT
лишняя ...
Машина с адресом 12.34.56.7 ни при каких условиях не сможет
вызвать 192.168.1.0/24, кроме случая тунеля ...
Сети такого типа не маршрутизируются через Инет ...
Запросы от 192.168.1.0/24 к 12.34.56.7 должны маскироваться в
секции *nat строкой вида
-A POSTROUTING -s 192.168.1.0/24 -d 12.34.56.7 -o eth0 -j SNAT --to-source ХХ.ХХ.ХХ.ХХ
Ответы от адреса 12.34.56.7 будут проходить по правилам
-A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
секции *filter
--
Best regards,
Dmitriy L. Kruglikov .--.
Dmitriy.Kruglikov_at_orionagro.com.ua |@_@ |
DKR6-RIPE |!_/ |
ICQ# 13047326 // \ \
XMPP:dkr6@jabber.ru (| | )
/'\_ _/`\
Powered by Linux \___)=(___/
-- Мысль --
Не рассчитывай на завтрашний день, пока он не наступил, ибо
никто не знает, какие беды этот день принесет.
-- Древнеегипетское изречение
next prev parent reply other threads:[~2006-07-12 6:02 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-11 6:58 Шишков Евгений Витальевич
2006-07-11 7:06 ` Alexey Sidorov
2006-07-11 7:09 ` Anton Gorlov
2006-07-12 5:10 ` Шишков Евгений Витальевич
2006-07-12 5:17 ` Шенцев Алексей Владимирович
2006-07-12 5:38 ` Шишков Евгений Витальевич
2006-07-12 5:42 ` Шенцев Алексей Владимирович
2006-07-12 5:56 ` Шишков Евгений Витальевич
2006-07-12 6:02 ` Dmitriy L. Kruglikov [this message]
2006-07-12 9:10 ` Шишков Евгений Витальевич
2006-07-12 9:40 ` Dmitriy L. Kruglikov
2006-07-12 10:50 ` Шишков Евгений Витальевич
2006-07-12 12:03 ` Dmitriy L. Kruglikov
2006-07-12 12:09 ` Шишков Евгений Витальевич
2006-07-18 8:48 ` Roman Lesnichenko
2006-07-18 9:27 ` Шишков Евгений Витальевич
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=20060712090258.4407624c@shadow.orionagro.com.ua \
--to=dmitriy.kruglikov@orionagro.com.ua \
--cc=sisyphus@lists.altlinux.org \
/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 Sisyphus discussions
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
public-inbox-index sisyphus
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sisyphus
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git