mirror of
https://github.com/nadoo/glider.git
synced 2026-11-19 07:09:42 +08:00
ipset: only allow to set ipset in rule files #69
This commit is contained in:
1 parent
86478d2c25
commit
5a43cf873e
14 files changed
+59
-71
No files matched your search
@@ -9,8 +9,5 @@ listen=redir://:1081
|
||||
dns=:53
|
||||
dnsserver=8.8.8.8:53
|
||||
|
||||
# as a ipset manager
|
||||
ipset=glider
|
||||
|
||||
# parse all *.rule files in rules.d folder
|
||||
rules-dir=rules.d
|
||||
@@ -13,6 +13,8 @@ strategy=rr
|
||||
checkwebsite=www.apple.com
|
||||
checkduration=30
|
||||
|
||||
# as a ipset manager
|
||||
ipset=glider
|
||||
|
||||
# matches 192.168.0.0/16
|
||||
cidr=192.168.0.0/16
|
||||
@@ -15,6 +15,9 @@ checkduration=30
|
||||
# specify a different dns server(if need)
|
||||
dnsserver=208.67.222.222:53
|
||||
|
||||
# as a ipset manager
|
||||
ipset=glider
|
||||
|
||||
# specify destinations
|
||||
include=office.list
|
||||
|
||||
|
||||
@@ -107,6 +107,9 @@ listen=socks5://:1080
|
||||
# forward=tls://1.1.1.1:443,ws://,vmess://5a146038-0b56-4e95-b1dc-5c6f5a32cd98@?alterID=2
|
||||
# forward=tls://1.1.1.1:443,ws://@/path,vmess://5a146038-0b56-4e95-b1dc-5c6f5a32cd98@?alterID=2
|
||||
|
||||
# socks5 over unix domain socket
|
||||
# forward=unix:///tmp/glider.socket,socks5://
|
||||
|
||||
# FORWARDER CHAIN
|
||||
# ---------------
|
||||
# We can setup a forward chain using 1 forward option,
|
||||
@@ -167,15 +170,6 @@ dnsminttl=0
|
||||
dnsrecord=www.example.com/1.2.3.4
|
||||
dnsrecord=www.example.com/2606:2800:220:1:248:1893:25c8:1946
|
||||
|
||||
|
||||
# IPSET MANAGEMENT
|
||||
# ----------------
|
||||
# Create and mange ipset on linux based on destinations in rule files
|
||||
# - add ip/cidrs in rule files on startup
|
||||
# - add resolved ips for domains in rule files by dns forwarding server
|
||||
# Usually used in transparent proxy mode on linux
|
||||
ipset=glider
|
||||
|
||||
# INTERFACE SPECIFIC
|
||||
# ------------------
|
||||
# Specify the outbound ip/interface.
|
||||
|
||||
@@ -20,9 +20,13 @@ checkduration=30
|
||||
# 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
|
||||
# IPSET MANAGEMENT
|
||||
# ----------------
|
||||
# Create and mange ipset on linux based on destinations in rule files
|
||||
# - add ip/cidrs in rule files on startup
|
||||
# - add resolved ips for domains in rule files by dns forwarding server
|
||||
# Usually used in transparent proxy mode on linux
|
||||
ipset=glider
|
||||
|
||||
# DESTINATIONS
|
||||
# ------------
|
||||
|
||||
Reference in new issue
Block a user