-
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathcaptive-browser-arch-chrome.toml
35 lines (32 loc) · 1.43 KB
/
captive-browser-arch-chrome.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# browser is the shell (/bin/sh) command executed once the proxy starts.
# When browser exits, the proxy exits. An extra env var PROXY is available.
#
# Here, we use a separate Chrome instance in Incognito mode, so that
# it can run (and be waited for) alongside the default one, and that
# it maintains no state across runs. To configure this browser open a
# normal window in it, settings will be preserved.
browser = """
google-chrome \
--user-data-dir="$HOME/.google-chrome-captive" \
--proxy-server="socks5://$PROXY" \
--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost" \
--no-first-run --new-window --incognito \
http://example.com
"""
# dhcp-dns is the shell (/bin/sh) command executed to obtain the DHCP
# DNS server address. The first match of an IPv4 regex is used.
# IPv4 only, because let's be real, it's a captive portal.
#
# `wlp3s0` is your network interface (eth0, wlan0 ...)
#
# To install the systemd-networkd-dns command, run:
#
# $ go get github.com/FiloSottile/captive-browser/cmd/systemd-networkd-dns
#
dhcp-dns = "$(go env GOPATH)/bin/systemd-networkd-dns wlp3s0"
# socks5-addr is the listen address for the SOCKS5 proxy server.
socks5-addr = "localhost:1666"
# bind-device is the interface over which outbound connections (both HTTP
# and DNS) will be established. It can be used to avoid address space collisions
# but it requires CAP_NET_RAW or root privileges. Disabled by default.
#bind-device = "wlan0"