daviddwlee84 / BreakWall

Setup script and instructions to setup VPN and proxy.
0 stars 0 forks source link

Azure #5

Open daviddwlee84 opened 2 years ago

daviddwlee84 commented 2 years ago
az login
az vm list

Docker

az container create -g ResourceGroupName --name ContainerName --image oddrationale/docker-shadowsocks --ip-address public --ports 8388 --command-line "/usr/local/bin/ssserver -p 8388 -k password1 -m aes-256-cfb"

Encryption is default aes-256-cfb


# Check resource you have
az resource list
az container show --resource-group ResourceGroupName --name ContainerName --out table
az container show --resource-group ResourceGroupName --name ContainerName --query "{Status:instanceView.state}" --out table

# Restart container (you will get a new IP with same port)
az container stop -n ContainerName -g ResourceGroupName
az container show --resource-group ResourceGroupName --name ContainerName --query "{Status:instanceView.state}" --out table
az container start -n ContainerName -g ResourceGroupName --out table
az container show --resource-group ResourceGroupName --name ContainerName --out table
daviddwlee84 commented 2 years ago
Examples from AI knowledge base:
az account list
Get a list of subscriptions for the logged in account. (autogenerated)

az account show
Get the details of a subscription. (autogenerated)

az account set --subscription mysubscription
Set a subscription to be the current active subscription. (autogenerated)
az group create -l Location -n ResourceGroupName
daviddwlee84 commented 2 years ago
az container create -g ResourceGroupName --name v2ray1 --image pengchujin/v2ray_ws:0.11 --ip-address public --ports 80 443
az container exec -g ResourceGroup --name v2ray1 --exec-command "/bin/bash"
az container delete -g ResourceGroupName -n ContainerName