-
Notifications
You must be signed in to change notification settings - Fork 1
/
config.sh
42 lines (36 loc) · 934 Bytes
/
config.sh
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
36
37
38
39
40
41
#!/bin/bash
## (C) George Goulas, 2011
##
## Proxy service configuration script for OSX
## tested on MacOSX Lion 10.6
##
ROOT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
## SETTINGS
##
# SOCKS PROXY PORT
# Notes: It's the same value with the autoproxy.pac
PORT=1090
# SSH DEBUG OPTIONS
#SSH_DEBUG_OPTS="-vvv"
SSH_DEBUG_OPTS=""
# SSH OPTIONS TO CREATE PROXY
SSH_OPTS="-C2TnNfD"
# user@host
SSH_HOST="username@serverip"
# SSH PORT
SSH_PORT=22
# OSX network service to configure proxy for
NET_INTERFACE="yl"
# Pac file for autoproxy
PAC_FILE="file:/${ROOT_DIR}/autoproxy.pac"
# Verbose, if not empty, it prints diagnosing messages
VERBOSE=1
# Log file for ssh proxy
LOG_FILE="${HOME}/sshproxy.log"
# Set auto proxy configuration off or not
OFF_AUTOPROXY=1
# Bypass proxy settings for hosts and domains
BYPASS_DOMAINS="127.0.0.1 localhost 169.254/16 192.168/16"
##
## END OF SETTINGS, DO NOT MODIFY PAST THIS POINT
##