Web Browsing
One way to use mirrord’s targetless mode is to set up your browser to use the IP address of the remote target. This way, you can browse the web as if you were in the same location as the remote target. Below is a guide on how to do this with Google Chrome.
Prerequisites #
- Install microsocks (via brew or apt)
- Install “Socks5 Configurator” Chrome extension
Steps #
- In a terminal session, trigger
microsocks
usingmirrord
.- If you want to use a specific target’s network:
mirrord exec -t deployment/my_deployment microsocks
- If you just want a specific namespace networking:
mirrord exec -a namespace microsocks
- And you can just do:
mirrord exec microsocks
if you want to use your current namespace.
- If you want to use a specific target’s network:
- In a Chrome window:
- Open the Socks5 Configurator extension
- Make sure the “Socks5 Proxy” is enabled
- Type in its respective textbox
127.0.0.1:1080
- Hit the save button
- That’s it! You can verify your IP address has changed via a quick “what is my ip address” search in Google
What’s next? #
- If you’d like to intercept traffic rather than mirror it so that your local process is the one answering the remote requests, check out this guide. Note that you can even filter which traffic you intercept!
- If your local process reads from a queue, you might want to test out the copy target feature, which temporarily creates a copy of the mirrord session target. With its
scaledown
flag it allows you to temporarily delete all replicas in your targeted rollout or deployment, so that none competes with your local process for queue messages. - If you just want to learn more about mirrord, why not check out our architecture or configuration sections?