Last active
August 29, 2015 14:16
-
-
Save lysender/65b9c484bc3ab7efc8ec to your computer and use it in GitHub Desktop.
Launch Chrome with Proxy
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
| #!/bin/bash | |
| # Excludes local hostnames/machines from proxy, ex: localhost, *.dev, 192.168.1.160 | |
| # To resolve to 192.168.1.160, we need to define the host resolver mapping | |
| # Where *.dev resolves to 192.168.1.160 - it is a vagrant box by the way | |
| google-chrome-stable --proxy-server="socks5://127.0.0.1:8888" --host-resolver-rules="MAP *.dev 192.168.1.160, MAP * ~NOTFOUND , EXCLUDE 127.0.0.1, EXCLUDE 192.168.1.160, EXCLUDE *.dev, EXCLUDE localhost" --proxy-bypass-list="127.0.0.1;localhost;localhost:8080;192.168.1.160,*.dev" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment