luci-app-homeproxy icon indicating copy to clipboard operation
luci-app-homeproxy copied to clipboard

[Features] Add Outbound Direct-out and Block-out in options list

Open malikshi opened this issue 1 year ago • 8 comments

outbounds As we know, there is no option for Direct/Block outbound list when creating a node. the default configuration has direct-out and block-out but we need them available in the options list, I have a problem when I want to create a Selector type to handle Ads or Adult sites with Block, Proxy, Direct Outbound lists in this version I can't achieve it.

malikshi avatar Dec 25 '23 14:12 malikshi

You can first create a node, for example, the label is called direct, and the type is direct. If it's block, it's similar. Then you can add them to Outbounds list.

douglarek avatar Dec 26 '23 08:12 douglarek

Okay Direct type is available on list right, but Block type not in list when create node. I already tried it, Label block Type : there no block in options. Direct is available thought

malikshi avatar Dec 26 '23 09:12 malikshi

abel block Type : there no block in options. Direct is available thought

Well, perhaps my memory fails me. To be frank, I haven't encountered a situation where I'd use a block within a selector. If you're looking to block certain elements, such as domains or protocols, I believe it would be more appropriate to configure that within the route rules. There seems to be no need to set up a selector-type node for this purpose. The absence of a block type in nodes was a design choice in the original hp architecture. Regardless, I am open to pull requests.

douglarek avatar Dec 26 '23 14:12 douglarek

abel block Type : there no block in options. Direct is available thought

Well, perhaps my memory fails me. To be frank, I haven't encountered a situation where I'd use a block within a selector. If you're looking to block certain elements, such as domains or protocols, I believe it would be more appropriate to configure that within the route rules. There seems to be no need to set up a selector-type node for this purpose. The absence of a block type in nodes was a design choice in the original hp architecture. Regardless, I am open to pull requests.

image we had Direct type but missing Block type. I usually create config for public use and many people's asked options selector for Ads and Adult sites with outbounds PROXY,BLOCK.

malikshi avatar Dec 26 '23 14:12 malikshi

we had Direct type but missing Block type. I usually create config for public use and many people's asked options selector for Ads and Adult sites with outbounds PROXY,BLOCK.

A workaround:

image

douglarek avatar Dec 26 '23 15:12 douglarek

i want config look like this.

    {
      "type": "selector",
      "tag": "Option ADs",
      "outbounds": [
        "block",
        "Internet"
      ]
    },
    {
      "type": "selector",
      "tag": "Option P0rn",
      "outbounds": [
        "block",
        "Internet"
      ]
    },

https://github.com/malikshi/sing-box-examples/blob/ea8f2910fafbe9dea581f815e414e863b2e34d2b/Sing-boxForMobile(iOS%20SFI%20or%20Android%20SFA)/sing-box.json#L224-L239

malikshi avatar Dec 26 '23 15:12 malikshi

我也遇到不能屏蔽广告的问题了,应该就是DNS rule中不能添加的原因,我用sing-box客户端直接用就可以

jacky4231 avatar Jan 08 '24 07:01 jacky4231

我也遇到不能屏蔽广告的问题了,应该就是DNS rule中不能添加的原因,我用sing-box客户端直接用就可以

Why can't you add? Take a look at how you are unable to add.

为啥不能添加?看看你是怎么不能添加的

douglarek avatar Jan 08 '24 07:01 douglarek