diff options
author | kim <kim> | 2003-07-21 22:26:53 +0000 |
---|---|---|
committer | kim <kim> | 2003-07-21 22:26:53 +0000 |
commit | b928973b802f7877a29015e352f8d2fceaed8748 (patch) | |
tree | e5e00e78556703280bff377dd2361de4202eb27d /net/tcptraceroute | |
parent | d02928310c6aedd64c58c64939a136a6df900b3e (diff) | |
download | pkgsrc-b928973b802f7877a29015e352f8d2fceaed8748.tar.gz |
Add tcptraceroute-1.4
The widespread use of firewalls on the modern Internet, many of the
packets that traceroute(8) sends out end up being filtered, making it
impossible to completely trace the path to the destination. However,
in many cases, these firewalls will permit inbound TCP packets to
specific ports that hosts sitting behind the firewall are listening for
connections on. By sending out TCP SYN packets instead of UDP or ICMP
ECHO packets, tcptraceroute is able to bypass the most common firewall
filters.
Diffstat (limited to 'net/tcptraceroute')
-rw-r--r-- | net/tcptraceroute/DESCR | 8 | ||||
-rw-r--r-- | net/tcptraceroute/Makefile | 30 | ||||
-rw-r--r-- | net/tcptraceroute/PLIST | 5 | ||||
-rw-r--r-- | net/tcptraceroute/distinfo | 6 | ||||
-rw-r--r-- | net/tcptraceroute/patches/patch-aa | 13 | ||||
-rw-r--r-- | net/tcptraceroute/patches/patch-ab | 38 |
6 files changed, 100 insertions, 0 deletions
diff --git a/net/tcptraceroute/DESCR b/net/tcptraceroute/DESCR new file mode 100644 index 00000000000..3fb4de3b326 --- /dev/null +++ b/net/tcptraceroute/DESCR @@ -0,0 +1,8 @@ +The widespread use of firewalls on the modern Internet, many of the +packets that traceroute(8) sends out end up being filtered, making it +impossible to completely trace the path to the destination. However, +in many cases, these firewalls will permit inbound TCP packets to +specific ports that hosts sitting behind the firewall are listening for +connections on. By sending out TCP SYN packets instead of UDP or ICMP +ECHO packets, tcptraceroute is able to bypass the most common firewall +filters. diff --git a/net/tcptraceroute/Makefile b/net/tcptraceroute/Makefile new file mode 100644 index 00000000000..22dc035aa57 --- /dev/null +++ b/net/tcptraceroute/Makefile @@ -0,0 +1,30 @@ +# $NetBSD: Makefile,v 1.1.1.1 2003/07/21 22:26:53 kim Exp $ +# + +DISTNAME= tcptraceroute-1.4 +CATEGORIES= net +MASTER_SITES= http://michael.toren.net/code/tcptraceroute/ + +MAINTAINER= kim@tac.nyc.ny.us +HOMEPAGE= http://michael.toren.net/code/tcptraceroute/ +COMMENT= A traceroute implementation using TCP packets + +USE_BUILDLINK2= YES + +ALL_TARGET= tcptraceroute + +DOCDIR= ${PREFIX}/share/doc/tcptraceroute +BINMODE= 4711 + +.include "../../mk/bsd.prefs.mk" + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/tcptraceroute ${PREFIX}/sbin + ${INSTALL_MAN} ${WRKSRC}/tcptraceroute.8 ${PREFIX}/man/man8 + ${INSTALL_DATA_DIR} ${DOCDIR} + ${INSTALL_DATA} ${WRKSRC}/examples.txt ${DOCDIR} + +.include "../../devel/libnet/buildlink2.mk" +.include "../../net/libpcap/buildlink2.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/net/tcptraceroute/PLIST b/net/tcptraceroute/PLIST new file mode 100644 index 00000000000..1c9394c4d85 --- /dev/null +++ b/net/tcptraceroute/PLIST @@ -0,0 +1,5 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 2003/07/21 22:26:53 kim Exp $ +sbin/tcptraceroute +man/man8/tcptraceroute.8 +share/doc/tcptraceroute/examples.txt +@dirrm share/doc/tcptraceroute diff --git a/net/tcptraceroute/distinfo b/net/tcptraceroute/distinfo new file mode 100644 index 00000000000..6f953cf083b --- /dev/null +++ b/net/tcptraceroute/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1.1.1 2003/07/21 22:26:53 kim Exp $ + +SHA1 (tcptraceroute-1.4.tar.gz) = 1dbd9a0a10b11695b0204bea460463a9dd921338 +Size (tcptraceroute-1.4.tar.gz) = 31918 bytes +SHA1 (patch-aa) = 26899ae5898dcdbaa8b12a178ff6c2b362a675c9 +SHA1 (patch-ab) = d7c9a98cd31e374dbe8e39c6303da38bc0f749df diff --git a/net/tcptraceroute/patches/patch-aa b/net/tcptraceroute/patches/patch-aa new file mode 100644 index 00000000000..326fd13ef5c --- /dev/null +++ b/net/tcptraceroute/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1.1.1 2003/07/21 22:26:53 kim Exp $ + +--- Makefile.orig Sun May 19 21:11:38 2002 ++++ Makefile Mon Jul 21 16:54:09 2003 +@@ -4,7 +4,7 @@ + # Copyright (c) 2001, 2002 Michael C. Toren <mct@toren.net> + + CC = gcc +-CFLAGS = -O2 -Wall ++#CFLAGS = -O2 -Wall + DESTDIR=/usr/local/bin + + tcptraceroute: tcptraceroute.c diff --git a/net/tcptraceroute/patches/patch-ab b/net/tcptraceroute/patches/patch-ab new file mode 100644 index 00000000000..9779126ca83 --- /dev/null +++ b/net/tcptraceroute/patches/patch-ab @@ -0,0 +1,38 @@ +$NetBSD: patch-ab,v 1.1.1.1 2003/07/21 22:26:53 kim Exp $ + +--- tcptraceroute.c.orig Tue Jul 30 17:51:27 2002 ++++ tcptraceroute.c Mon Jul 21 18:14:11 2003 +@@ -209,7 +209,7 @@ + #define AF_LINK AF_INET /* BSD defines some AF_INET network interfaces as AF_LINK */ + #endif + +-#if defined (__OpenBSD__) || defined(__FreeBSD__) || defined(__bsdi__) ++#if defined (__OpenBSD__) || defined(__FreeBSD__) || defined(__bsdi__) || defined(__NetBSD__) + #define HASSALEN /* Awful, awful hack to make subinterfaces work on BSD. */ + #endif + +@@ -724,8 +724,7 @@ + } + #endif + +- if (ifrp->ifr_addr.sa_family != AF_INET && +- ifrp->ifr_addr.sa_family != AF_LINK) ++ if (ifrp->ifr_addr.sa_family != AF_INET) + { + debug("Ignoring non-AF_INET address on interface %s\n", + sprintable(ifr.ifr_name)); +@@ -1783,8 +1782,13 @@ + o_dontfrag = 0; + o_timeout = 3; + o_nofilter = 0; +- o_noselect = 0; + o_nogetinterfaces = 0; ++ ++#if defined(__NetBSD__) ++ o_noselect = 1; ++#else ++ o_noselect = 0; ++#endif + + #if defined (__SVR4) && defined (__sun) + o_trackport = 1; /* --track-port should be the default for Solaris */ |