Skip to content
Discussion options

You must be logged in to vote

Thanks. so much help.
After some playing around I came up with this:

DOMESTIC config.json:
(Download iran.dat from https://github.com/MasterKia/iran-hosted-domains/releases/latest and put it alongside geosite.dat and geoip.dat)

{
    "log": {
        "loglevel": "warning"
    },
    "dns": {
        "servers": [
            "1.1.1.1"
        ]
    },
    "routing": {
        "domainStrategy": "IPIfNonMatch",
        "rules": [
            {
                "type": "field",
                "domain": [
                                   "geosite:category-ads-all",
		                   "ext:iran.dat:ads"
                ],
                "outboundTag": "block"
            },
            {
 …

Replies: 10 comments 6 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@hawshemi
Comment options

@chika0801
Comment options

@hawshemi
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@chika0801
Comment options

@hawshemi
Comment options

@chika0801
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by hawshemi
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants