Xray firewall rules problem

Started by leo69, August 16, 2024, 06:35:08 PM

Previous topic - Next topic
Hello!
Installed xray-core from the official repository. Listens on http at 192.168.1.1:8080. Tested from the local network, works. Replaced the listening address with 127.0.0.1:8080. Configured NAT port forwarding on the LAN interface, all addresses with HTTP(80) and HTTP(443) redirect to 127.0.0.1:8080. And it doesn't work. What am I doing wrong? Help me set up the rules.

How do you even install xray on OPNsense? :) I've been looking for a virtual firewall/router software with xray support, figured I'd give OPNsense a try after finding this: https://github.com/opnsense/tools/issues/378
But I don't see xray-core in Plugins or Packages. Do I need to add some non-standard repository or something to be able to install xray?

Quote from: leo69 on August 16, 2024, 06:35:08 PM
Hello!
Installed xray-core from the official repository. Listens on http at 192.168.1.1:8080. Tested from the local network, works. Replaced the listening address with 127.0.0.1:8080. Configured NAT port forwarding on the LAN interface, all addresses with HTTP(80) and HTTP(443) redirect to 127.0.0.1:8080. And it doesn't work. What am I doing wrong? Help me set up the rules.
I did it with the additional instument tune2socks it creates a "physical" interface and then you can manage as usual through the firewall.