Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jun 2020 17:31:11 +0000 (UTC)
From:      =?UTF-8?Q?Vin=c3=adcius_Zavam?= <egypcio@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r537495 - in head/net: . pwnat pwnat/files
Message-ID:  <202006011731.051HVB6p039794@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: egypcio
Date: Mon Jun  1 17:31:11 2020
New Revision: 537495
URL: https://svnweb.freebsd.org/changeset/ports/537495

Log:
  [NEW] net/pwnat: NAT punching tool based on udptunnel
  
    pwnat, pronounced "poe-nat", is a tool that allows any
    number of clients behind NATs to communicate with a
    server behind a separate NAT with *no* port forwarding
    *no* DMZ setup, and *no* 3rd party involvement. The server
    does not need to know anything about the clients trying
    to connect.
  
    WWW: https://samy.pl/pwnat

Added:
  head/net/pwnat/
  head/net/pwnat/Makefile   (contents, props changed)
  head/net/pwnat/distinfo   (contents, props changed)
  head/net/pwnat/files/
  head/net/pwnat/files/pwnat.in   (contents, props changed)
  head/net/pwnat/pkg-descr   (contents, props changed)
Modified:
  head/net/Makefile

Modified: head/net/Makefile
==============================================================================
--- head/net/Makefile	Mon Jun  1 17:09:31 2020	(r537494)
+++ head/net/Makefile	Mon Jun  1 17:31:11 2020	(r537495)
@@ -989,6 +989,7 @@
     SUBDIR += ptpd2
     SUBDIR += ptunnel
     SUBDIR += pvm
+    SUBDIR += pwnat
     SUBDIR += pwhois
     SUBDIR += pxe
     SUBDIR += pxe-pdhcp

Added: head/net/pwnat/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pwnat/Makefile	Mon Jun  1 17:31:11 2020	(r537495)
@@ -0,0 +1,33 @@
+# $FreeBSD$
+
+PORTNAME=	pwnat
+PORTVERSION=	g20171222
+CATEGORIES=	net
+
+MAINTAINER=	egypcio@FreeBSD.org
+COMMENT=	NAT punching tool based on udptunnel
+
+LICENSE=	GPLv3
+
+ONLY_FOR_ARCHS=		amd64 i386
+ONLY_FOR_ARCHS_REASON=	Fails to patch while running in embedded systems
+
+USES=		gmake
+USE_RC_SUBR=	${PORTNAME}
+USE_GITHUB=	yes
+GH_ACCOUNT=	samyk
+GH_TAGNAME=	5de412c
+
+PLIST_FILES=	bin/${PORTNAME}
+
+post-patch:
+	${REINPLACE_CMD} -e 's/CC=.*/CC=${CC}/g' \
+		${WRKSRC}/Makefile
+	${REINPLACE_CMD} -e 's/CFLAGS=.*/CFLAGS=${CFLAGS}/g' \
+		${WRKSRC}/Makefile
+
+do-install:
+	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin
+	${STRIP_CMD} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
+
+.include <bsd.port.mk>

Added: head/net/pwnat/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pwnat/distinfo	Mon Jun  1 17:31:11 2020	(r537495)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1590674954
+SHA256 (samyk-pwnat-g20171222-5de412c_GH0.tar.gz) = 9a8333f0f6002b98f53d734657367ff2d9e42d048512eec6e1f3d98d588758e7
+SIZE (samyk-pwnat-g20171222-5de412c_GH0.tar.gz) = 41856

Added: head/net/pwnat/files/pwnat.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pwnat/files/pwnat.in	Mon Jun  1 17:31:11 2020	(r537495)
@@ -0,0 +1,24 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+# PROVIDE: pwnat
+# REQUIRE: DAEMON
+# KEYWORD: shutdown
+#
+# pwnat_enable	(bool)	Default: NO
+# pwnat_flags	(str)	Default: 
+#
+
+. /etc/rc.subr
+
+name="pwnat"
+rcvar="${name}_enable"
+command="%%PREFIX%%/bin/${name}"
+
+: ${pwnat_enable:="NO"}
+: ${pwnat_flags:=""}
+
+load_rc_config $name
+
+run_rc_command "$1"

Added: head/net/pwnat/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/net/pwnat/pkg-descr	Mon Jun  1 17:31:11 2020	(r537495)
@@ -0,0 +1,19 @@
+pwnat, pronounced "poe-nat", is a tool that allows any
+number of clients behind NATs to communicate with a
+server behind a separate NAT with *no* port forwarding
+*no* DMZ setup, and *no* 3rd party involvement. The server
+does not need to know anything about the clients trying
+to connect.
+
+Simply put, this is a proxy server that works behind a NAT,
+even when the client is behind a different NAT, without any
+3rd party or network changes.
+
+There is no middle man, no proxy, no 3rd party,
+no UPnP/STUN/ICE required, no spoofing, and no DNS tricks.
+
+More importantly, the client can then connect to any
+host or port on any remote host or to a fixed host and
+port decided by the server.
+
+WWW: https://samy.pl/pwnat



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202006011731.051HVB6p039794>