portsetup

command module
v0.0.0-...-09aff4b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2014 License: MIT Imports: 11 Imported by: 0

README

portsetup

Provides and manage free local ports to be used in connecting to a specific remote port over proxy. This is custom made to be used with TunnelSetup, TAPmanager and tapdaemon

USAGE:

Change portsetup.cfg to correct data. If not user is not set, it will use UNIX account name. The port used will probably be dynamic. Add -p before -e parameter.

Allocate TAP / IP:

portsetup -e allocate
(To see all data allocated: portsetup -v -e allocate )

Get IP address:

portsetup -e ip

Example:

set IP=`portsetup -p $MANAGER_PORT -e ip`
echo $IP

Get Port:

portsetup -e port

Example:

set PORT=`portsetup -p $MANAGER_PORT -e port`
echo $PORT

Remove TAP allocation

portsetup -p $MANAGER_PORT -e remove

Documentation

Overview

portsetup.go

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL