NidukaAkalanka / x-ui-english

English Version of X-UI, A Multi-protocol & Multi-user Xray Panel with a Web UI and a TG Bot
GNU General Public License v3.0
727 stars 239 forks source link

Configuring DNS and TLS #201

Open BSarmady opened 3 months ago

BSarmady commented 3 months ago

Hi,

after installing the X-UI, I have two issues

1- I'm getting a lot of ERROR dns: exchange failed for ********.***. IN A: context canceled ERROR dns: exchange failed for ********.***. IN A: io: read/write on closed pipe

and

ERROR [********** **.**s] inbound/tun[tun-in]: download: An existing connection was forcibly closed by the remote host.

in client connecting to XRay

Which then client (browser) shows Secure Connection Failed

I tried adding following dns to both client and server but it didn't fix the issue.

        "hosts": {
            "dns.google": [
                "8.8.8.8",
                "8.8.4.4"
            ]
        },
        "servers": [
            "8.8.8.8",
            "8.8.4.4",
            "localhost"
        ],
        "queryStrategy": "UseIP",
        "disableCache": false,
        "disableFallback": false,
        "disableFallbackIfMatch": false,
        "tag": "dns_inbound"
    },

2- How can I add TLS to my connection? Since the configuration in neither X-UI nor Xray explains the kind of certificate that can add, the question is can I add a self signed certificate? do I need to enter a domain? a) in Xay configuration says I can add min and max version to transport layer, and also can select type (simulate browser, ....), how do I add those to X-UI is just adding it to Xray json enough? If I do that, how should I configure client connection in inbound tab?