Skip to content

Instantly share code, notes, and snippets.

@santaklouse
Created November 15, 2024 16:06
Show Gist options
  • Save santaklouse/41a59e0c79374cf479ffbdddd280328d to your computer and use it in GitHub Desktop.
Save santaklouse/41a59e0c79374cf479ffbdddd280328d to your computer and use it in GitHub Desktop.
chisel inside container share
on vps (proxy.wrtc.pp.ua):
$ chisel server --proxy https://proxy-seller.com/ --auth foo:bazz -v --socks5 --port 8080 --reverse
on target machines:
(inside container)
limactl start \
--containerd=user \
--name=default \
--cpus=4 \
--memory=8 \
--disk=50 \
--mount="~"
--vm-type=vz \
--rosetta \
--mount-type=virtiofs \
--mount-writable \
template://ubuntu
$ chisel client --auth="foo:bazz" proxy.wrtc.pp.ua R:127.0.0.1:2222:127.0.0.1:22
2222 - random allowed not using port
result:
ssh on vps 2222 port -> forwards us to ssh of target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment