OPNsense Forum

English Forums => Virtual private networks => Topic started by: leo69 on August 16, 2024, 06:35:08 PM

Title: Xray firewall rules problem
Post by: 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.
Title: Re: Xray firewall rules problem
Post by: senses on December 03, 2024, 01:15:52 PM
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?
Title: Re: Xray firewall rules problem
Post by: _tribal_ on December 03, 2024, 10:03:30 PM
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.