From: Alexander Vasiliev <vav@tascom.ru>
To: community@altlinux.ru
Subject: Re: [Comm] Iptables консультация нужна
Date: Tue, 28 Jun 2005 17:14:31 +0400
Message-ID: <20050628131431.GA26635@dennis.td.tascom.ru> (raw)
In-Reply-To: <1842225358.20050628152433@narod.ru>
On Tue, Jun 28, 2005 at 03:24:33PM +0400, Oleg Pan wrote:
>
> $IPTABLES -A FORWARD -p udp -s $my_ip -d 0.0.0.0/0.0.0.0 -j ACCEPT
> $IPTABLES -A FORWARD -p udp -s 0.0.0.0/0.0.0.0 -d $my_ip -j ACCEPT
> $IPTABLES -t nat -A PREROUTING -p udp -s 0.0.0.0/0.0.0.0 -d $INET_IP\
> --dport 5004:65535 -j DNAT --to-destination $my_ip
>
> но так с инетом можно работать только с одной машины, а хочется с
> нескольких
>
> Есть-ли кокое-нибудь решение этой проблемы?
Исходящий трафик
$IPTABLES -t nat -A POSTROUTING -p udp --sport 5004:65535 -j SNAT\
--to-source $my_ip
Входящий трафик
$IPTABLES -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
--
Александр Васильев
ЗАО "Таском"
vav@tascom.ru
prev parent reply other threads:[~2005-06-28 13:14 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-06-28 11:24 Oleg Pan
2005-06-28 11:58 ` Serge Kompan
2005-06-28 12:15 ` Re[2]: " Oleg Pan
2005-06-28 13:14 ` Alexander Vasiliev [this message]
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=20050628131431.GA26635@dennis.td.tascom.ru \
--to=vav@tascom.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