From: Vitalik Salomatin <chelroot74@mail.ru>
To: community@lists.altlinux.org
Subject: [Comm] Как отменить проброшенный порт?
Date: Fri, 26 Sep 2008 09:17:18 +0400
Message-ID: <E1Kj5he-000ODE-00.chelroot74-mail-ru@f53.mail.ru> (raw)
Допустим я пробросил 80 порт снаружи через сервер на копм внутри
сети
iptables -t nat -A PREROUTING -d 11.11.11.61 -p
tcp --destination-port 80 -j DNAT --to-destination 10.0.0.112
А как отменить только это правило? (http)
Я знаю, что так
iptables -t nat -D POSTROUTING 2
можно отменить 2 правило в моем примере изнутри
# iptables -t nat -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
DNAT tcp -- anywhere 77.247.212.61 tcp
dpt:ssh to:10.0.0.112
DNAT tcp -- anywhere 77.247.212.61 tcp
dpt:http to:10.0.0.112
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE 0 -- 10.0.0.4 anywhere
MASQUERADE 0 -- 10.0.0.112 anywhere
А как только HTTP, оставив например ssh?
Спасибо.
next reply other threads:[~2008-09-26 5:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-26 5:17 Vitalik Salomatin [this message]
2008-09-26 5:20 ` SKeeper
2008-09-26 5:26 ` Костарев Алексей
2008-09-26 5:31 ` Костарев Алексей
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=E1Kj5he-000ODE-00.chelroot74-mail-ru@f53.mail.ru \
--to=chelroot74@mail.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