ALT Linux Community general discussions
 help / color / mirror / Atom feed
From: "Костарев Алексей" <kaf@nevod.ru>
To: Vitalik Salomatin <chelroot74@mail.ru>,
	ALT Linux Community general discussions
	<community@lists.altlinux.org>
Subject: Re: [Comm] Как отменить проброшенный порт?
Date: Fri, 26 Sep 2008 11:31:16 +0600
Message-ID: <48DC73A4.3010201@nevod.ru> (raw)
In-Reply-To: <E1Kj5he-000ODE-00.chelroot74-mail-ru@f53.mail.ru>

Vitalik Salomatin пишет:
> Допустим я пробросил 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 PREROUTING -d 11.11.11.61 -p tcp --destination-port 80 -j DNAT --to-destination 10.0.0.112


> Я знаю, что так
>
> 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?
>
> Спасибо.
>
>
> _______________________________________________
> community mailing list
> community@lists.altlinux.org
> https://lists.altlinux.org/mailman/listinfo/community


-- 
С Уважением
Директор ООО НЕВОД
Костарев А.Ф.




      parent reply	other threads:[~2008-09-26  5:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-26  5:17 Vitalik Salomatin
2008-09-26  5:20 ` SKeeper
2008-09-26  5:26 ` Костарев Алексей
2008-09-26  5:31 ` Костарев Алексей [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=48DC73A4.3010201@nevod.ru \
    --to=kaf@nevod.ru \
    --cc=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