2017-07-30 01:54:19 +08:00
|
|
|
# Glider rule configuration file.
|
|
|
|
#
|
|
|
|
# Format is the same as glider main config file.
|
|
|
|
# EXCEPTION: Listeners are NOT allowed to setup here.
|
|
|
|
|
|
|
|
# FORWARDERS
|
|
|
|
# ----------
|
|
|
|
# Forwarders, we can setup multiple forwarders.
|
|
|
|
forward=socks5://192.168.1.10:1080
|
2017-07-31 13:42:11 +08:00
|
|
|
forward=ss://method:pass@1.1.1.1:8443
|
2017-07-30 01:54:19 +08:00
|
|
|
forward=http://192.168.2.1:8080,socks5://192.168.2.2:1080
|
|
|
|
|
2017-08-31 00:53:24 +08:00
|
|
|
# STRATEGY for multiple forwarders. rr|ha
|
2017-07-30 01:54:19 +08:00
|
|
|
strategy=rr
|
|
|
|
|
2017-08-31 00:53:24 +08:00
|
|
|
# FORWARDER CHECK SETTINGS
|
2017-07-31 13:42:11 +08:00
|
|
|
checkwebsite=www.apple.com
|
2017-07-30 01:54:19 +08:00
|
|
|
checkduration=30
|
|
|
|
|
2017-08-31 00:53:24 +08:00
|
|
|
# DNS SERVER for domains in this rule file
|
|
|
|
dnsserver=208.67.222.222:53
|
|
|
|
|
|
|
|
# IPSET
|
|
|
|
# specify a ipset for destinations in this rule file
|
|
|
|
#ipset=office
|
|
|
|
|
2017-07-30 01:54:19 +08:00
|
|
|
# DESTINATIONS
|
|
|
|
# ------------
|
|
|
|
# ALL destinations matches the following rules will be forward using forwarders specified above
|
|
|
|
|
2017-08-31 00:53:24 +08:00
|
|
|
# INCLUDE FILE
|
|
|
|
# we can include a list file with only destinations settings
|
|
|
|
include=office.list.example
|
2017-07-30 11:44:34 +08:00
|
|
|
|
2017-08-31 00:53:24 +08:00
|
|
|
# matches example.com and *.example.com
|
|
|
|
domain=example.com
|
2017-07-30 11:44:34 +08:00
|
|
|
domain=example1.com
|
|
|
|
domain=example2.com
|
|
|
|
domain=example3.com
|
2017-08-31 00:53:24 +08:00
|
|
|
|
|
|
|
# matches ip
|
|
|
|
ip=1.1.1.1
|
2017-07-30 11:44:34 +08:00
|
|
|
ip=2.2.2.2
|
|
|
|
ip=3.3.3.3
|
2017-08-31 00:53:24 +08:00
|
|
|
|
|
|
|
# matches a ip net
|
|
|
|
cidr=192.168.100.0/24
|
|
|
|
cidr=172.16.100.0/24
|