ssh - How to use VPN with Bitbucket Pipelines -


i need access remote server bitbucket pipelines. remote server available specific host has ip address whitelisted. here want:

pipelines <---> gateway host <---> remote server 

i trying use sshutle setup ssh-based vpn forward network traffic via gateway host, looks pipelines don't allow containers run vpn (see issue #12753).

what can access remote server?

there solution if forwarding http/https enough you. use ssh set socks5 proxy.

first, add bitbucket's public ssh key ~/.ssh/authorized_keys on gateway server. open repository --> settings --> (pipelines) ssh keys , follow instructions on page.

then add these steps bitbucket-pipelines.yml:

# start in foreground (-fn), use compression (-c), set port forwarding (-d) ssh -fn -c -d 41337 user@server.foobar.com export http_proxy='socks5://localhost:41337' export https_proxy='socks5://localhost:41337' 

use curl check whether proxy works:

curl http://checkip.amazonaws.com 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -