From owner-freebsd-ports-bugs@freebsd.org Mon Apr 12 16:36:53 2021 Return-Path: Delivered-To: freebsd-ports-bugs@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 35C575D64DC for ; Mon, 12 Apr 2021 16:36:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FJvX50s8Xz4ds4 for ; Mon, 12 Apr 2021 16:36:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 1B6DD5D67A8; Mon, 12 Apr 2021 16:36:53 +0000 (UTC) Delivered-To: ports-bugs@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 1B31E5D68B1 for ; Mon, 12 Apr 2021 16:36:53 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4FJvX509bWz4f3P for ; Mon, 12 Apr 2021 16:36:53 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EBDE71AD15 for ; Mon, 12 Apr 2021 16:36:52 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 13CGaqEQ054537 for ; Mon, 12 Apr 2021 16:36:52 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 13CGaqoj054536 for ports-bugs@FreeBSD.org; Mon, 12 Apr 2021 16:36:52 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 255008] Modification of the SoftEther VPN 5 (Developer Edition) rc script for initial configure TAP interface Date: Mon, 12 Apr 2021 16:36:52 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: shrdlu19@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@FreeBSD.org X-Bugzilla-Flags: merge-quarterly? exp-run? X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc flagtypes.name attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Apr 2021 16:36:53 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D255008 Bug ID: 255008 Summary: Modification of the SoftEther VPN 5 (Developer Edition) rc script for initial configure TAP interface Product: Ports & Packages Version: Latest Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: Individual Port(s) Assignee: ports-bugs@FreeBSD.org Reporter: shrdlu19@gmail.com CC: meta@FreeBSD.org Flags: merge-quarterly?, exp-run? Created attachment 224055 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D224055&action= =3Dedit softether_server modified rc script Hello I experimented with SoftEther VPN 5 Developer Edition (https://www.freshports.org/security/softether5/), and tried configuring Lo= cal Bridge using a virtual TAP interface. I was able to start the server with t= hese settings, but for normal operation I need to manually run ifconfig to confi= gure the ip-address on the created virtual interface, and these settings disappe= ar after OS reboot or server restart. I tried to modify the script that starts the Softether vpn server to fix th= is flaw. This works fine for me. I want to invite you to take a look at the changes I made. First, I added three additional configuration parameters to the /usr/local/etc/rc.d/softether_server script: # modified by shrdlu - added config options # - tap_iface - TAP interface name for ifconfig command # - tap_addr - TAP interface IP address for ifconfig command, # may be in CIDR format (a.b.c.d/x) or IP-address with netmask # (a.b.c.d netmask e.f.g.h) # - tap_idle - delay before run ifconfig command for setup IP address on TAP interface # softether_server_tap_iface=3D${softether_server_tap_iface:-"none"} softether_server_tap_addr=3D${softether_server_tap_addr:-"127.0.0.2/32"} softether_server_tap_idle=3D${softether_server_tap_Idle:-"5"} Secondly, I have defined a command to run after softether_server starts: # modified by shrdlu - added command, running after softether-server started # start_postcmd=3D"${name}_postcmd" And I wrote a function that configures the virtual TAP interface: # modified by shrdlu - postcmd - running ifconfig after softether-server started # with new configuration parameters # softether_server_postcmd() { if [ "${softether_server_tap_iface}" !=3D none ]; then echo "Waiting ${softether_server_tap_idle} sec to create TAP interface" sleep ${softether_server_tap_idle} ifconfig ${softether_server_tap_iface} inet ${softether_server_tap_addr} fi } If people find these modifications correct and useful, then it might be wor= th checking out and including them in one of the next versions of the port. It= is possible that some corrections need to be made.=20 I have attached the my modified script to this report. --=20 You are receiving this mail because: You are the assignee for the bug.=