From ca9627e70852f6b2e835660df870fe3ab405882d Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Sun, 1 Sep 2019 00:00:32 +0200 Subject: Initial import --- net-misc/httptunnel/files/htc | 31 +++++++++++++++++++++++++++++++ net-misc/httptunnel/files/htc.sysconfig | 13 +++++++++++++ net-misc/httptunnel/files/hts | 20 ++++++++++++++++++++ net-misc/httptunnel/files/hts.sysconfig | 12 ++++++++++++ 4 files changed, 76 insertions(+) create mode 100755 net-misc/httptunnel/files/htc create mode 100644 net-misc/httptunnel/files/htc.sysconfig create mode 100755 net-misc/httptunnel/files/hts create mode 100644 net-misc/httptunnel/files/hts.sysconfig (limited to 'net-misc/httptunnel/files') diff --git a/net-misc/httptunnel/files/htc b/net-misc/httptunnel/files/htc new file mode 100755 index 0000000..c06fcb1 --- /dev/null +++ b/net-misc/httptunnel/files/htc @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net +} + +start() { + ebegin "Starting httptunnel (client)" + + htc_args="" + if [ -n "$HTC_PROXY" ]; then + htc_args="$htc_args -P $HTC_PROXY" + fi + + if [ -n "$HTC_SERVICE_PORT" ]; then + htc_args="$htc_args -F $HTC_SERVICE_PORT" + fi + + start-stop-daemon --start --quiet --exec /usr/bin/htc -c nobody -- $htc_args $HTC_SERVER:$HTC_PORT + + eend $? +} + +stop() { + ebegin "Stopping httptunnel (client)" + start-stop-daemon --stop --retry 5 --quiet --name htc + eend $? +} diff --git a/net-misc/httptunnel/files/htc.sysconfig b/net-misc/httptunnel/files/htc.sysconfig new file mode 100644 index 0000000..f31ba55 --- /dev/null +++ b/net-misc/httptunnel/files/htc.sysconfig @@ -0,0 +1,13 @@ +### +## Client Configuration +### + +# Server and port HTS is running on +HTC_SERVER=darkserv1.dyndns.org +HTC_PORT=8080 + +# Proxy Server +HTC_PROXY=217.113.0.1:80 + +# The port HTC is listinening for +HTC_SERVICE_PORT=5000 diff --git a/net-misc/httptunnel/files/hts b/net-misc/httptunnel/files/hts new file mode 100755 index 0000000..37b902b --- /dev/null +++ b/net-misc/httptunnel/files/hts @@ -0,0 +1,20 @@ +#!/sbin/runscript +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: + +depend() { + need net $HTS_SERVICE +} + +start() { + ebegin "Starting httptunnel (server)" + start-stop-daemon --start --quiet --exec /usr/bin/hts -c nobody -- -S -F $HTS_SERVICE_SERVER:$HTS_SERVICE_PORT $HTS_PORT + eend $? +} + +stop() { + ebegin "Stopping httptunnel (server)" + start-stop-daemon --stop --retry 5 --quiet --name hts + eend $? +} diff --git a/net-misc/httptunnel/files/hts.sysconfig b/net-misc/httptunnel/files/hts.sysconfig new file mode 100644 index 0000000..eb3fd3b --- /dev/null +++ b/net-misc/httptunnel/files/hts.sysconfig @@ -0,0 +1,12 @@ +### +## Server Configuration +### + +# Port HTS listening for connections +HTS_PORT=8080 + +# Service connections are redirected to. +HTS_SERVICE=vtun +# Server and port service running on +HTS_SERVICE_SERVER=localhost +HTS_SERVICE_PORT=5000 -- cgit v1.2.3