* Re: ICMP time exceeded DNAT info leak ? (fwd)
[not found] <Mutt.LNX.4.44.0204031512230.26899-100000@blackbird.intercode.com.au>
@ 2002-04-03 11:42 ` Andras Kis-Szabo
0 siblings, 0 replies; only message in thread
From: Andras Kis-Szabo @ 2002-04-03 11:42 UTC (permalink / raw)
To: James Morris; +Cc: netfilter-devel, Phil, linux-kernel
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---------->
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-04-03 11:43 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <Mutt.LNX.4.44.0204031512230.26899-100000@blackbird.intercode.com.au>
2002-04-03 11:42 ` ICMP time exceeded DNAT info leak ? (fwd) Andras Kis-Szabo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox