Sign inSign up

threatpatrols/autossh

By threatpatrols

•Updated 7 months ago

Autossh with pre-command injection useful for declaring container routes before `autossh` is invoked

Image
Networking
0

776

threatpatrols/autossh repository overview

⁠Autossh With Pre-command Injection

⁠Usage

Env-vars with prefix PRE_COMMAND are sorted and used to inject commands before autossh is invoked.

NB: you'll need to be really sure you want to inject arbitrary shell commands like this!

docker run \
  --cap-add=NET_ADMIN \
  -e PRE_COMMAND_02='ip route show' \
  -e PRE_COMMAND_01='ip route add 10.10.10.0/24 via 172.17.10.1' \
  threatpatrols/autossh -T [email protected]

⁠Source / Repo

⁠AutoSSH Project

Tag summary

Content type

Image

Digest

sha256:636678e57…

Size

35.6 MB

Last updated

7 months ago

docker pull threatpatrols/autossh