From: Grigory Fateyev <greg@anastasia.ru>
To: sysadmins@lists.altlinux.org
Subject: Re: [Sysadmins] iptables rules DNAT ftp passive
Date: Fri, 16 May 2008 22:25:08 +0400
Message-ID: <20080516222508.1286fec6@greg.dobroe.net> (raw)
In-Reply-To: <200805170003.22654.ripper.mail@gmail.com>
Hello Starodumoff Ilya!
On Sat, 17 May 2008 00:03:22 +0600 you wrote:
> pasv_address=20.13.20.194
>
> и подчистить forward надо бы... "кудряво как-то"... :)
Вроде ничего особенного...
$IPTABLES -A FORWARD -p tcp -j bad_tcp_packets
$IPTABLES -A FORWARD -i $OVZ_IFACE -j ACCEPT
$IPTABLES -A FORWARD -m state --state INVALID -j DROP
$IPTABLES -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A FORWARD -m limit --limit 3/minute --limit-burst 3 -j LOG \
--log-level DEBUG --log-prefix "IPT FORWARD packet died: "
$IPTABLES -A FORWARD -d $WEB1_VE -m state --state NEW -p tcp --dport 21
-j ACCEPT $IPTABLES -A FORWARD -d $WEB1_VE -m state --state NEW -p \
tcp --dport 65000:65535 -j ACCEPT
$IPTABLES -A FORWARD -i $INET_IFACE -o $OVZ_IFACE -j ACCEPT
$IPTABLES -A FORWARD -i $OVZ_IFACE -o $INET_IFACE -j ACCEPT
# Routing VEs outside
$IPTABLES -A FORWARD -p all -s $OVZ_NET -o $INET_IFACE -j ACCEPT
$IPTABLES -A FORWARD -p all -d $OVZ_NET -i $INET_IFACE -m state \
--state ESTABLISHED,RELATED -j ACCEPT
#$IPTABLES -A FORWARD -p all -s $OVZ_NET -j ACCEPT
#$IPTABLES -A FORWARD -p all -d $OVZ_NET -j ACCEPT
--
Всего наилучшего! Григорий
greg [at] anastasia [dot] ru
Письмо отправлено: 2008/05/16 22:20
next prev parent reply other threads:[~2008-05-16 18:25 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-16 15:15 Grigory Fateyev
2008-05-16 15:21 ` Starodumoff Ilya
2008-05-16 15:27 ` Grigory Fateyev
2008-05-16 15:41 ` Starodumoff Ilya
2008-05-16 15:54 ` Grigory Fateyev
2008-05-16 16:07 ` Starodumoff Ilya
2008-05-16 17:22 ` Grigory Fateyev
2008-05-16 17:32 ` Starodumoff Ilya
2008-05-16 17:48 ` Grigory Fateyev
2008-05-16 18:03 ` Starodumoff Ilya
2008-05-16 18:25 ` Grigory Fateyev [this message]
2008-05-17 3:57 ` Starodumoff Ilya
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=20080516222508.1286fec6@greg.dobroe.net \
--to=greg@anastasia.ru \
--cc=sysadmins@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 sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/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 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git