From: Sergey Vlasov <vsu@altlinux.ru>
To: community@altlinux.ru
Subject: Re: [Comm] iptables & chain
Date: Sun, 21 Dec 2003 19:07:11 +0300
Message-ID: <20031221160711.GA16698@sirius.home> (raw)
In-Reply-To: <3FE5C2B1.3070303@aeroflot-don.ru>
[-- Attachment #1: Type: text/plain, Size: 1212 bytes --]
On Sun, Dec 21, 2003 at 06:56:33PM +0300, Igor wrote:
> Есть некая задача: в локальной сети на каждой машине стоит RADMIN (типа
> vnc).
> Хочется сделать скрипт который создаст chain - r_adm в котором будет
> перебрана вся сеть. Пытаюсь сделать chain для того что бы потом было
> легко удалить. Т.е. нужно посмотреть на какую-то локальную машину из
> инета, я запускаю скрипт , а после того как все сделано удалить этот
> chain что бы эти порты не висели. Что делаю не так или есть предложение
> сделать эту задачу как то иначе?1
>
> + /sbin/iptables -N r_adm
iptables -t nat -N r_adm
И далее аналогично. -t nat, -t filter, -t mangle - совершенно
отдельные таблицы, имена цепочек в них независимы друг от друга.
> + /sbin/iptables -A r_adm -p TCP -i eth0 -d 10.98.54.112 --dport 7777 -j
> DNAT --to-destination 10.98.54.17:4432
> iptables: Invalid argument
> + /sbin/iptables -A r_adm -p TCP -i eth0 -d 10.98.54.112 --dport 7778 -j
> DNAT --to-destination 10.98.54.18:4432
> iptables: Invalid argument
> + /sbin/iptables -t nat -A PREROUTING -j r_adm
> iptables v1.2.7a: Couldn't load target
> `r_adm':/usr/lib/iptables/libipt_r_adm.so: cannot open shared object
> file: No such file or directory
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
prev parent reply other threads:[~2003-12-21 16:07 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-21 15:56 Igor
2003-12-21 16:07 ` Sergey Vlasov [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=20031221160711.GA16698@sirius.home \
--to=vsu@altlinux.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