mirror of
https://github.com/pomerium/pomerium.git
synced 2025-08-06 10:21:05 +02:00
* init client app doc * init TCP section * add redirect for TCP client doc * Redis and Mysql * finish TCP exampels * init Draft template * cleanup whitespace * escape markdown image in template * add redirect and update links * copy edit * Update readme.md * fmt Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com> * optimize png Signed-off-by: Bobby DeSimone <bobbydesimone@gmail.com> * header cleanup and child listing * Update docs/docs/tcp/ssh.md Co-authored-by: bobby <1544881+desimone@users.noreply.github.com> Co-authored-by: cmo-pomerium <91488121+cmo-pomerium@users.noreply.github.com> Co-authored-by: Bobby DeSimone <bobbydesimone@gmail.com> Co-authored-by: bobby <1544881+desimone@users.noreply.github.com> Co-authored-by: Alex Fornuto <afornuto@pomerium.com> Co-authored-by: cmo-pomerium <91488121+cmo-pomerium@users.noreply.github.com> Co-authored-by: Bobby DeSimone <bobbydesimone@gmail.com> Co-authored-by: bobby <1544881+desimone@users.noreply.github.com>
This commit is contained in:
parent
585e089239
commit
20e21964d0
26 changed files with 423 additions and 58 deletions
24
examples/tcp/pomerium-tunnel.sh
Normal file
24
examples/tcp/pomerium-tunnel.sh
Normal file
|
@ -0,0 +1,24 @@
|
|||
#!/bin/bash
|
||||
scriptname="$(basename $0)"
|
||||
|
||||
if [ $# -lt 3 ]
|
||||
then
|
||||
echo "Usage: $scriptname start | stop POMERIUM_ROUTE LOCAL_PORT"
|
||||
exit
|
||||
fi
|
||||
|
||||
case "$1" in
|
||||
|
||||
start)
|
||||
echo "Starting Pomerium Tunnel to $2"
|
||||
pomerium-cli tcp $2 --listen $3 &
|
||||
;;
|
||||
stop)
|
||||
echo "Stopping Pomerium tunnel to $3"
|
||||
kill $(pgrep -f "pomerium-cli tcp $2 --listen $3")
|
||||
;;
|
||||
*)
|
||||
echo "Did not understand your argument, please use start|stop"
|
||||
;;
|
||||
|
||||
esac
|
Loading…
Add table
Add a link
Reference in a new issue