Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I've added a SOCKS proxy to the webrepl_cli cli and it blows my mind #73

Open
rikvermeer opened this issue Jan 13, 2023 · 0 comments
Open

Comments

@rikvermeer
Copy link

rikvermeer commented Jan 13, 2023

Public dynamic secure reverse tunnel remote webrepl CLI

./webrepl_socks.py "10.44.5.4:8266" -p "mypass" --> micropython_001 ... micropython_50

Monkeypatch webREPL SOCKS!

import socket
import socks

socks.set_default_proxy(socks.SOCKS5, "localhost", $localport)
socket.socket = socks.socksocket

I run micropythons in a remote network with raspberry pi as gateway. I use NGROK to expose a TCP endpoint and upon connection success I send myself a homecall with the NGROK ip and port.

ssh -D $localport -p $ngrok_port $ngrok_ip --> ngrok --> $pi@raspberry: openssh && arp-ping

On the gateway I run ARP pings so I can bind the MAC addresses to (dynamic) IPs and know where to connect to.
The latest release of webrepl, with the CLI functionality, made me so happy :)

I can now remote control them over CLI both in browser and commandline.

Thanks!
webrepl socks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant