From owner-svn-ports-head@freebsd.org Mon Jun 1 17:31:12 2020 Return-Path: Delivered-To: svn-ports-head@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id F248F33D48A; Mon, 1 Jun 2020 17:31:12 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49bMf862vqz4JZ2; Mon, 1 Jun 2020 17:31:12 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id B0AAEF0B5; Mon, 1 Jun 2020 17:31:12 +0000 (UTC) (envelope-from egypcio@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 051HVCwf039799; Mon, 1 Jun 2020 17:31:12 GMT (envelope-from egypcio@FreeBSD.org) Received: (from egypcio@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 051HVB6p039794; Mon, 1 Jun 2020 17:31:11 GMT (envelope-from egypcio@FreeBSD.org) Message-Id: <202006011731.051HVB6p039794@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: egypcio set sender to egypcio@FreeBSD.org using -f From: =?UTF-8?Q?Vin=c3=adcius_Zavam?= Date: Mon, 1 Jun 2020 17:31:11 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: egypcio X-SVN-Commit-Paths: in head/net: . pwnat pwnat/files X-SVN-Commit-Revision: 537495 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Jun 2020 17:31:13 -0000 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 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