public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Andras Kis-Szabo <kisza@securityaudit.hu>
To: James Morris <jmorris@intercode.com.au>
Cc: netfilter-devel@lists.samba.org, Phil <biondi@cartel-securite.fr>,
	linux-kernel@vger.kernel.org
Subject: Re: ICMP time exceeded DNAT info leak ? (fwd)
Date: Wed, 3 Apr 2002 13:42:41 +0200	[thread overview]
Message-ID: <20020403134241.A24198@sch.bme.hu> (raw)
In-Reply-To: <Mutt.LNX.4.44.0204031512230.26899-100000@blackbird.intercode.com.au>

James Morris ....................................... (2002. április 03.)

 Hi!

> iptables -t nat -A PREROUTING -p tcp --dport 666 -j DNAT --to 172.16.3.26:22
 
> pbi@exchange1:~$ sudo ./nmap -sS -P0 mymachine -p 22,23,666,667 -t 9
> Starting nmap V. 2.54BETA32 ( www.insecure.org/nmap/ )
> Interesting ports on mymachine:
> Port       State       Service
> 22/tcp     open        ssh
> 23/tcp     filtered    telnet
> 666/tcp    UNfiltered  doom                     DNAT to 192.168.8.10:22
> 667/tcp    UNfiltered  unknown                  DNAT to 192.168.26.10:22
 
You should try this (as a workaround):
iptables -t nat -A PREROUTING -p tcp --dport 666 -m ttl --ttl-gt 4 -j DNAT --to 172.16.3.26:22
iptables -t nat -A PREROUTING -m ttl --ttl-lt 5 -j LOG --log-prefix "Evil
hax0r "

(So it is not hardcoded as in IPFilter ... )

Regards,

	kisza

-- 
    Andras Kis-Szabo       Security Development, Design and Audit
-------------------------/        Zorp, NetFilter and IPv6
 kisza@SecurityAudit.hu /-----Member of the BUTE-MIS-SEARCHlab---------->

           reply	other threads:[~2002-04-03 11:43 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <Mutt.LNX.4.44.0204031512230.26899-100000@blackbird.intercode.com.au>]

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=20020403134241.A24198@sch.bme.hu \
    --to=kisza@securityaudit.hu \
    --cc=biondi@cartel-securite.fr \
    --cc=jmorris@intercode.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netfilter-devel@lists.samba.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
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox