You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was working on testing transparent proxies, and now that something kind of works, I wanted to write everything down before I forget.
Context
Steps
brew install mitmproxy
mitmweb --mode=socks5 --web-port=8080 --listen-port=1080
Add to the provisioning script:
Provisioning snippet
Edit Lima backend to run redsocks on startup:
Startup snippet
sudo redsocks -c /etc/redsocks.conf # written in provisioning script sudo iptables -t nat -A OUTPUT -p tcp --dport 80 -j REDIRECT --to-port 1081 sudo iptables -t nat -A OUTPUT -p tcp --dport 443 -j REDIRECT --to-port 1081 sudo wget -O /usr/local/share/ca-certificates/mitmproxy.crt http://mitm.it/cert/pem sudo update-ca-certificates
Commentary
At this point when RD starts up it should use the proxy — I can see it pulling various images from
registry-1.docker.io
at least.Beta Was this translation helpful? Give feedback.
All reactions