From: Sergey Paradeyev <psv@upline.net.ua>
To: ALT Linux Community <community@lists.altlinux.org>
Subject: Re: [Comm] iptables, NAT
Date: Sun, 15 Jan 2006 18:52:57 +0200
Message-ID: <43CA7DE9.20308@upline.net.ua> (raw)
In-Reply-To: <43CA77DD.4070608@geodigital.ru>
Jury Levykin пишет:
> Шлюз в интернет (на основе ALM 2.4),
> на нем настроен NAT следующим образом:
> iptables -t nat -A POSTROUTING -s $INTRANET --out-interface
> $EXTERNAL_INTERFACE \
> -j SNAT --to-source $IPADDR
>
> проблема в том, что если при старте скрипта я сначала все запрещаю:
> iptables -P INPUT DROP
> iptables -P OUTPUT DROP
> iptables -P FORWARD DROP
>
> а потом открываю то, что нужно (например NAT) то пакеты из внутренней
> сети ($INTRANET)
> не проходят через шлюз.
>
> если закомментировать:
> # iptables -P FORWARD DROP
>
> все работает, но меня смущает, что я видимо не прав поступая таким
> образом.
>
> Как правильно открыть доступ для локальной сети?
Все правильно делаешь, только надо еще разрешить $INTRANET ходить сквозь
шлюз, через цепочку FORWARD
iptables -A FORWARD -s $ITRANET -j ACCEPT
iptables -A FORWARD -d $ITRANET -j ACCEPT
next prev parent reply other threads:[~2006-01-15 16:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-01-15 16:27 Jury Levykin
2006-01-15 16:52 ` Sergey Paradeyev [this message]
2006-01-15 17:06 ` Jury Levykin
2006-01-15 17:15 ` Jury Levykin
2006-01-16 4:30 ` Мерзляков Евгений Анатольевич
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=43CA7DE9.20308@upline.net.ua \
--to=psv@upline.net.ua \
--cc=community@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 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