Created
November 15, 2024 16:06
-
-
Save santaklouse/41a59e0c79374cf479ffbdddd280328d to your computer and use it in GitHub Desktop.
chisel inside container share
This file contains hidden or 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
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