* UDP and ICMP traceroute
@ 2003-03-12 22:48 Sapient2003
2003-03-13 0:16 ` Athan
0 siblings, 1 reply; 2+ messages in thread
From: Sapient2003 @ 2003-03-12 22:48 UTC (permalink / raw)
To: netfilter
I am trying to have iptables pick out traceroute packets. Windows uses
ICMP for it's traceroute, so I use this:
iptables -t filter -A INPUT -p icmp -s 0/0 -d 10.0.0.1 --icmp-type
time-exceeded -j QUEUE
Linux, however, uses both ICMP and UDP... How can I tell iptables to
look for UDP traceroute packets?
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: UDP and ICMP traceroute
2003-03-12 22:48 UDP and ICMP traceroute Sapient2003
@ 2003-03-13 0:16 ` Athan
0 siblings, 0 replies; 2+ messages in thread
From: Athan @ 2003-03-13 0:16 UTC (permalink / raw)
To: Sapient2003; +Cc: netfilter
[-- Attachment #1: Type: text/plain, Size: 1239 bytes --]
On Wed, Mar 12, 2003 at 05:48:52PM -0500, Sapient2003 wrote:
> I am trying to have iptables pick out traceroute packets. Windows uses
> ICMP for it's traceroute, so I use this:
>
> iptables -t filter -A INPUT -p icmp -s 0/0 -d 10.0.0.1 --icmp-type
> time-exceeded -j QUEUE
>
> Linux, however, uses both ICMP and UDP... How can I tell iptables to
> look for UDP traceroute packets?
You can't, without hacking the traceroute client to only use a very
specific range of ports. We did this at one place I used to work when
we had a non-stateful firewall.
I guess the other possibility is to hack the traceroute client to put
an actual, unique (enough), payload in the outgoing UDP packet, and then
have an ipt kernel module looking for that.
If you must tie down outgoing UDP such that you can't just use the
statefulness of iptables/netfilter then I'd suggest trying to find a
linux traceroute that does things the same way as the Windows one.
-Ath
--
- Athanasius = Athanasius(at)miggy.org / http://www.miggy.org/
Finger athan(at)fysh.org for PGP key
"And it's me who is my enemy. Me who beats me up.
Me who makes the monsters. Me who strips my confidence." Paula Cole - ME
[-- Attachment #2: Type: application/pgp-signature, Size: 240 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-03-13 0:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-12 22:48 UDP and ICMP traceroute Sapient2003
2003-03-13 0:16 ` Athan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.