-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove useless variables and add Goggle IAP (EXPERIMENTAL)
- Loading branch information
Francois Laupretre
committed
Jul 21, 2023
1 parent
fb78001
commit 9da504a
Showing
7 changed files
with
286 additions
and
206 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# Google IAP Gateway | ||
# | ||
#------WARNING--WARNING--WARNING--WARNING--WARNING--WARNING--WARNING-- | ||
# | ||
# The code below is purely EXPERIMENTAL. I wrote it | ||
# from information I got on the Internet and I could not | ||
# test it as I don't have access to a GCP platform. | ||
# | ||
# If you have access to a GCP platform and can test this, your return will be | ||
# warmly appreciated. | ||
#---------------------------------------------------------------------------- | ||
|
||
gw="$GATEWAY_HOST" | ||
[ "X$GATEWAY_USER" = X ] || gw="$GATEWAY_USER@$GATEWAY_HOST" | ||
|
||
$GCLOUD_CMD compute ssh \ | ||
--tunnel-through-iap \ | ||
--ssh-key-expire-after $TIMEOUT \ | ||
--ssh-flag="-N -L $LOCAL_HOST:$LOCAL_PORT:$TARGET_HOST:$TARGET_PORT -p $GATEWAY_PORT" \ | ||
$gw & | ||
|
||
CPID=$! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.