From: Jury Levykin <jury@geodigital.ru> To: ALT Linux Community <community@lists.altlinux.org> Subject: [Comm] iptables, NAT Date: Sun, 15 Jan 2006 19:27:09 +0300 Message-ID: <43CA77DD.4070608@geodigital.ru> (raw) Шлюз в интернет (на основе 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 все работает, но меня смущает, что я видимо не прав поступая таким образом. Как правильно открыть доступ для локальной сети?
next reply other threads:[~2006-01-15 16:27 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2006-01-15 16:27 Jury Levykin [this message] 2006-01-15 16:52 ` Sergey Paradeyev 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=43CA77DD.4070608@geodigital.ru \ --to=jury@geodigital.ru \ --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