Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    X-ray VPN implementation in future releases of pfSense+

    Scheduled Pinned Locked Moved Development
    42 Posts 10 Posters 10.4k Views 8 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • K Offline
      kingpin @Сергей 3
      last edited by

      @Сергей-3

      In your case, the gateway IP should be 10.100.94.53, just like the TUN IP. To restore the TUN IP, restart the Xray instance.

      By the way, that's what I was saying, I had to tinker with hev-socks5-tunnel, but tune2socks worked right away.

      Still working on fixes...

      1 Reply Last reply Reply Quote 0
      • K Offline
        kingpin @Сергей 3
        last edited by

        @Сергей-3

        I'm not very familiar with networks, so I had to do a lot of research, and here's what I came up with:

        1. You don't need to have static IP in the interface; what you see on the instance diagnostics page, in the TUN IP field, is enough.

        2. You need to create a gateway on this IP and disable gateway monitoring so it's always online. This is because monitoring uses ICMP packets to check for online activity, but ICMP doesn't work over PROXY

        You can specify an IP with a /30 subnet in the XRAY interface, choosing it so that the TUN IP is in that subnet, but that doesn't make any sense.

        And finally, you need to create a firewall rule to direct traffic to the XRAY gateway.

        1 Reply Last reply Reply Quote 0
        • K Offline
          kingpin @Сергей 3
          last edited by

          @Сергей-3
          By the way, I suggest we move on to condemning the plugin in the ➡ topic I created in Russian section

          yon 0Y 1 Reply Last reply Reply Quote 0
          • yon 0Y Online
            yon 0 @kingpin
            last edited by

            Xray was developed by Chinese developers, and the authors themselves do not provide VPN services.However, the latest GFW is now able to detect and block it. Although it is still usable to some extent.

            yon 0Y 1 Reply Last reply Reply Quote 0
            • yon 0Y Online
              yon 0 @yon 0
              last edited by

              https://hysteria.network/

              I would recommend adding this. At least its network speed is fast.

              K С 2 Replies Last reply Reply Quote 0
              • K Offline
                kingpin @yon 0
                last edited by

                @yon-0 thx, I'll dig into this app.

                1 Reply Last reply Reply Quote 0
                • С Offline
                  Сергей 3 @yon 0
                  last edited by

                  @yon-0 said in X-ray VPN implementation in future releases of pfSense+:

                  hysteria

                  Xray supports the Hysteria transport, both the first and second versions.

                  yon 0Y 1 Reply Last reply Reply Quote 0
                  • yon 0Y Online
                    yon 0 @Сергей 3
                    last edited by

                    @Сергей-3 However, its configuration is complex and not suitable for use.

                    С 1 Reply Last reply Reply Quote 0
                    • С Offline
                      Сергей 3 @yon 0
                      last edited by

                      @yon-0
                      It's a matter of preference.
                      Especially since there are config generators.

                      yon 0Y 1 Reply Last reply Reply Quote 0
                      • yon 0Y Online
                        yon 0 @Сергей 3
                        last edited by

                        @Сергей-3 Having a configuration generation tool would be simpler, but it's not as fast as HY2 in terms of network speed.

                        1 Reply Last reply Reply Quote 0
                        • First post
                          Last post
                        Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.