Skip to content

Instantly share code, notes, and snippets.

@lysender
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save lysender/65b9c484bc3ab7efc8ec to your computer and use it in GitHub Desktop.

Select an option

Save lysender/65b9c484bc3ab7efc8ec to your computer and use it in GitHub Desktop.
Launch Chrome with Proxy
#!/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