-
Notifications
You must be signed in to change notification settings - Fork 4
Connecting to a proxy server
KaiOS supports connecting and routing web traffic through a proxy server, which can be helpful in some situations.
Before you start, turn on debugging mode on your phone, and have a computer with ADB and WebIDE ready. On the 6300 4G and 8000 4G, you may have to root your phone before you can open the Device Preferences page in WebIDE.
Connect your phone to WebIDE, and sideload either CrossTweak or Wallace Toolbox. In the main menu, press 8 to configure the host address and port number, which the app will validate for you. Press 7 to turn the connection on or off.
Alternatively, you can open Device Settings or Device Preferences in the right sidebar, and search for these keys. If they don’t exist, create them with the appropriate types:
name | type | default | description |
---|---|---|---|
|
Boolean |
N/A |
Turn proxy connection on or off |
|
String |
N/A |
Host address of the proxy server, e.g., |
|
Integer |
N/A |
Port number of the proxy server, e.g., |
|
String |
|
Config which apps can use this proxy; |
A proxy connection should start up right away without you having to restart your phone.
Open Device Preferences in the right sidebar, search and fill in these keys:
name | type | default | description | ref |
---|---|---|---|---|
|
String |
'' |
Host address of the proxy server, e.g., |
|
|
Integer |
0 |
Port number of the proxy server, e.g., |
Depending on which protocols your proxy server supports, protocol can be either http
, ftp
, socks
or ssl
.
Once you’re done, reboot the phone (or restart B2G by doing a Deep Memory Cleaning) for the changes to take effect.
When I used
mitmproxy
to monitor the Internet traffic over SOCKS5, I setnetwork.proxy.socks
to my computer’s IPv4 address on the local network, andnetwork.proxy.socks_port
to whatever portmitmproxy
opened, 8080 by default.
name | type | default | description | ref |
---|---|---|---|---|
|
String |
|
Domains and addresses to connect directly instead of through proxy; separated by commas |
name | type | default | description | ref |
---|---|---|---|---|
|
Integer |
2 |
0: no proxy |
|
|
String |
see below |
Points to a central PAC file which you can use to manage proxy settings for a network or organization |
data:text/plain,function FindProxyForURL(url, host) { if (shExpMatch(host, 'localhost') || shExpMatch(host, '127.0.0.1')) { return 'DIRECT'; } return 'DIRECT'; }
This documentation page is written on the courtesy of the BananaHackers team, 2018–present.