Commit Graph
100 Commits
Author SHA1 Message Date
nadoo 77615f9f3d http: fixed a bug in reqHeader.Get 2018-01-13 14:36:13 +08:00
nadoo 138c78697a conn: change OutboundIP to return string 2018-01-13 14:34:49 +08:00
nadoo 84b47cbf1d http: add param to send 'X-Forwarded-For' header. #18 2018-01-13 14:25:55 +08:00
nadoo 192cffc95c conn: add the ability to get outbound ip 2018-01-13 13:20:15 +08:00
nadoo 31a6c94d75 udptun: add udp tunnel support 2018-01-12 20:11:21 +08:00
nadoo 775e3c05de uottun: support local udp 2 udp forwarding when there are no remote forwarders 2018-01-11 23:14:09 +08:00
nadoo 4fb3718381 dns: change parseAnswers function to return error 2018-01-11 14:44:24 +08:00
nadoo 0e9f6721b4 ipset: avoid adding twice 2018-01-10 13:11:13 +08:00
nadoo 7c30f1001a dns: fixed a bug in parseQuestion which may leads to a panic 2018-01-10 12:25:57 +08:00
nadoo ed30f295d7 dns: add some comment 2018-01-09 23:43:56 +08:00
nadoo 8a1111d3b5 dns: move tcp and udp process to handleReqMsg function 2018-01-09 13:11:55 +08:00
nadoo d2d49e7d2e dns: add a parameter in dns struct to identify tunnel 2018-01-08 23:37:58 +08:00
nadoo 238702f159 dns: add tcp support 2018-01-08 22:28:11 +08:00
nadoo 6e3423588a ss: support udp in server mode 2018-01-08 18:14:57 +08:00
nadoo 3c53bd9727 rule: optimized log format 2018-01-06 14:44:58 +08:00
nadoo 7d16530bae dns: optimized the parse answer function 2018-01-06 13:33:09 +08:00
nadoo 52a1c35b01 dns: parse answers only when query type is A or AAAA 2018-01-05 12:29:06 +08:00
nadoo 8e8361bc42 conf: show help before error exit 2018-01-04 15:26:18 +08:00
nadoo ff281721d0 doc: correct a mistake in example config file 2017-12-24 23:13:53 +08:00
nadoo 21319f13ef dns: imporve dns client to be compatible with upstream dnsmasq servers 2017-12-21 10:10:56 +08:00
nadoo 36d8e0593b ss: fixed #17, bypass rule has no effect in the following situation: 1. has global forwarder; 2. has bypass rules; 3. use ss proxy server; 2017-12-20 15:13:45 +08:00
nadoo a0972f535e http: optimized proxy client 2017-12-17 14:46:24 +08:00
nadoo a79cd87ae8 http: add header ending in http proxy client mode 2017-12-17 11:24:25 +08:00
nadoo 339a27f81f http: Proxy-Authorization header 2017-12-17 01:01:11 +08:00
nadoo 4ac0847ea9 http: add basic auth in client mode 2017-12-17 00:36:53 +08:00
nadoo 4c16066b2f Merge pull request #14 from nodarret/master
use sync.Map in status
2017-12-16 21:20:04 +08:00
nadoo 5893cf0d3a Merge pull request #12 from ksafe/patch-1
Update glider.conf.example
2017-11-01 00:36:58 +08:00
nadoo c880dfab43 log: optimize logs for redir and socks5 2017-10-18 21:47:32 +08:00
nadoo 1177c89102 ipset: add comments 2017-10-02 19:39:57 +08:00
nadoo 09e1b9342d redir: avoid underscore in func name 2017-09-21 23:13:44 +08:00
nadoo ee0637b950 rule: change receiver name 2017-09-21 23:07:04 +08:00
nadoo 72b24db91d tproxy: use continue instead of return 2017-09-16 23:10:10 +08:00
nadoo c293e58ac5 udptun: use routine to handle upstream connection 2017-09-11 15:02:59 +08:00
nadoo 21f9ab3bbe doc: add go version badge 2017-09-11 00:42:28 +08:00
nadoo cf650028b2 doc: update README 2017-09-11 00:28:40 +08:00
nadoo 4005387199 doc: add some badges 2017-09-11 00:25:57 +08:00
nadoo 4bd8bae2a5 general: add some comments to functions 2017-09-10 20:33:35 +08:00
nadoo e28a2b4141 doc: add build status, go report card, licese icons 2017-09-10 19:48:53 +08:00
nadoo da01361391 ci: add travis-ci config file 2017-09-10 19:42:26 +08:00
nadoo 997c495730 tproxy: add base udp tproxy listener codes 2017-09-09 15:06:44 +08:00
nadoo c8e63f2dc2 ss: support proxy chain in udp over tcp mode 2017-09-08 15:25:10 +08:00
nadoo adff6c5356 ss: remove unused codes 2017-09-08 12:35:49 +08:00
nadoo 70667b3f07 doc: update todo list 2017-09-08 12:10:22 +08:00
nadoo 42b9e0ef18 ss: add udp over tcp support 2017-09-08 12:09:57 +08:00
nadoo 67d32e0628 uottun: add udp over tcp local server support 2017-09-08 12:07:57 +08:00
nadoo f3e1fa26d7 server: remove network parameter in server mode 2017-09-07 23:50:10 +08:00
nadoo 91beca61ae ss: add udp support as server mode 2017-09-06 18:52:22 +08:00
nadoo 93aac48d73 mixed: remove ss from mixed proxy 2017-09-06 16:21:27 +08:00
nadoo ec21d5325f fix #10 2017-09-04 23:32:12 +08:00
nadoo 9d9374ded1 doc: add direct.rule.example 2017-09-04 00:43:47 +08:00
nadoo 4da3dec329 doc: update 2017-09-04 00:42:20 +08:00
nadoo 7b752becc5 doc: format 2017-09-04 00:21:12 +08:00
nadoo 3c39a7ba32 doc: correct mistakes in README file 2017-09-03 01:18:01 +08:00
nadoo 3e970bfdaa doc: update README file 2017-09-03 01:05:56 +08:00
nadoo 3167df5bb6 Merge pull request #9 from soffchen/patch-1
Update office.list.example
2017-09-03 00:53:37 +08:00
nadoo 35dc609429 doc: update README files 2017-08-31 11:45:01 +08:00
nadoo 5296ebb825 examples: update doc for "9. Transparent Proxy without dnsmasq" 2017-08-31 11:30:27 +08:00
nadoo 04a2ddeb63 examples: add 9. Transparent Proxy without dnsmasq 2017-08-31 11:03:34 +08:00
nadoo 3127a501dc examples: add link in README file 2017-08-31 01:23:26 +08:00
nadoo abef0aa99f examples: add example 7. Transparent Proxy with dnsmasq 2017-08-31 01:19:49 +08:00
nadoo ee54f5cbcc config: add new settings in examples for ver 0.4 2017-08-31 00:53:24 +08:00
nadoo f5629189ad doc: update documents for ver0.4 2017-08-31 00:08:22 +08:00
nadoo 4376565e6c ipset: 1. ipset flush; 2. ipset in main config 2017-08-29 18:36:42 +08:00
nadoo 8951d1b442 examples: add order number 2017-08-29 10:05:06 +08:00
nadoo 3612700c0f systemd: add CAP_NET_ADMIN capability for ipset 2017-08-28 23:14:52 +08:00
nadoo 684c17507d ipset: do not create ipset when ipset name is "" 2017-08-28 23:14:02 +08:00
nadoo ac1976d5d7 ipset: add ipset management. REQUIRE CAP_NET_ADMIN capability. 2017-08-28 19:23:32 +08:00
nadoo f5eeae91a5 conf: support relative path in "rules-dir" config 2017-08-25 20:32:51 +08:00
nadoo 867bafaa78 systemd: add CapabilityBoundingSet settings in service file so that glider can listen on port below 1024 with none-root user 2017-08-24 11:58:32 +08:00
nadoo 11df26061b README: update TODO list 2017-08-23 23:04:03 +08:00
nadoo f76c83b6d4 README: add go version info 2017-08-23 21:19:09 +08:00
nadoo e67a0755a2 rule: parse cidr once 2017-08-23 21:11:08 +08:00
nadoo f687c0b7d0 rule: use new concurrent sync.Map instead of old map 2017-08-23 18:58:24 +08:00
nadoo a902152ef1 log: add LogFunc so we can define a custom logger 2017-08-23 18:04:20 +08:00
nadoo cfc8ee9b5e forwarder: add NextDialer method so we can choose dialer by domain name (not dns server) in dns proxy 2017-08-23 17:45:57 +08:00
nadoo 1ca16dac79 1. general: restructured codes;
2. rule: add dnsserver to ip rule map;
3. dns: add DNSAnswerHandler so we can define a custom handler when a domain resolved
2017-08-23 16:35:39 +08:00
nadoo 825dea4f65 dns: add the ability to get resloved ip address of domain. (so we can add ip address to ipset later) 2017-08-21 23:57:49 +08:00
nadoo 375e8f9f65 README: fixed rule file link 2017-08-20 21:51:54 +08:00
nadoo ecacbe7142 rules: add rules.d folder 2017-08-20 21:49:21 +08:00
nadoo 7b4e07bbe4 rules: add rules-dir folder config support 2017-08-20 21:44:18 +08:00
nadoo 503a5c5503 redir: fixed a compile error on linux 2017-08-17 20:26:46 +08:00
nadoo 6469d3332e general: optimize codes 2017-08-16 22:37:42 +08:00
nadoo c3329ac601 dns: add experimental codes to specify different remote dns server in rule file 2017-08-16 13:20:12 +08:00
nadoo 8831c37e57 doc: fixed link in systemd/README.md 2017-08-14 00:02:05 +08:00
nadoo 639aa2f093 dnstun: add the ability to support both udp and tcp dns request 2017-08-13 23:51:08 +08:00
nadoo 75de6dab38 general: change StringSlice to StringSliceUniq to remove duplicate flag values 2017-08-13 20:25:21 +08:00
nadoo 8cc0ac2ac2 general: use string slice instead of custom arrFlags type. 2017-08-12 12:20:25 +08:00
nadoo 505fb5e504 change version 2017-08-08 09:49:32 +08:00
nadoo de229c1a7d dnstun: remove last dot in getDomain func 2017-08-07 15:06:26 +08:00
nadoo b41679a1f3 doc: update 2017-08-01 20:58:34 +08:00
nadoo 071ed4ae62 strategy: fixed a bug in haproxy which actually act as a rrproxy. 2017-07-31 19:29:43 +08:00
nadoo 71ac9500c7 README: change checkhost -> checkwebsite 2017-07-31 14:07:47 +08:00
nadoo 4219c4a7fa proxy chek: 1. improve check method: send a http get request and check the response, if the first 4 byte is "HTTP" then the proxy is avaliable. 2. if a proxy is disabled, increase the check duration. 3. update related docs. 2017-07-31 13:42:11 +08:00
nadoo eb9e2fd4e5 remove addr in redir proxy which is not needed. 2017-07-30 13:37:33 +08:00
nadoo cf837b5b40 fixed a bug in redir proxy. 2017-07-30 13:33:50 +08:00
nadoo 6886d74313 fixed a mistake in config example 2017-07-30 13:04:57 +08:00
nadoo 76285aec17 return strategy proxy if no rule file specified. 2017-07-30 12:38:41 +08:00
nadoo 00f51a55b3 fixed a bug in redir proxy. 2017-07-30 12:03:19 +08:00
nadoo 4d5e0e4330 add config examples link in README file 2017-07-30 11:53:16 +08:00
nadoo c8ae638fcc add some example configs 2017-07-30 11:44:34 +08:00