bia-pain-bache / BPB-Worker-Panel

A GUI Panel providing Worker subscriptions for VLESS, Trojan and Warp configs alongside chain proxies, offering full DNS, clean IP, Fragment, Warp, Warp pro and routing settings for cross-platform clients using Sing-box, Clash/Mihomo and Xray cores.
GNU General Public License v3.0
5k stars 26.24k forks source link

Add support for cfnat for automatic cf ip optimization #446

Open fatinghenji opened 4 days ago

fatinghenji commented 4 days ago

Feature description | توضیحات ویژگی

https://github.com/cmliu/CFnat-Windows-GUI

vadash commented 2 days ago

how would it work? bpb adds another entry with 127.0.0.1:1234 port and this app works as detour before, right?

fatinghenji commented 2 days ago

Similar to the local selection of cleanip? My native language is not English, I don't quite understand what you mean. I just hope that the bpb panel can support adding addresses like 127.0.0.1:1234 to the cleanip column to match this software.

bia-pain-bache commented 2 days ago

It's not cross platform and i don't add such features to panel for now.

fatinghenji commented 2 days ago

No, it's cross-platform. The app I mentioned is just a call with a GUI. In the zip package provided in this connection, you can see that it is a cross-platform application. 图片

vadash commented 1 day ago

It's not cross platform and i don't add such features to panel for now.

Its easy to implement. Just allow validation for 127.0.0.1:port for clean ip. Here is example singbox. It works just fine for me

    {
      "tag": "cfnat",
      "server": "127.0.0.1",
      "server_port": 1234,
      "type": "vless",
      "uuid": "REDACTED",
      "packet_encoding": "xudp",
      "tls": {
        "enabled": true,
        "server_name": "REDACTED",
        "insecure": true,
        "utls": {
          "enabled": true,
          "fingerprint": "chrome"
        }
      },
      "transport": {
        "type": "ws",
        "path": "/REDACTED",
        "headers": {
          "Host": [
            "REDACTED"
          ]
        }
      }
    }