Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
Trouble with proxing access to domains
« previous
next »
Print
Pages: [
1
]
Author
Topic: Trouble with proxing access to domains (Read 1503 times)
arturmentado
Newbie
Posts: 2
Karma: 0
Trouble with proxing access to domains
«
on:
October 12, 2023, 10:28:07 pm »
I have a situation where i do not know what can be done, only what i have and what i want to be able, also do not know the names for this kinda problem.
Right now I have all my traffic running through a OPNsense server.
In another VM i have a server serving a webpage accessible on the web through cloudflare's cloudflared and them to a Nginx application and finally the page itself. It's a FrigateNVR.
What I want is while Im on the local network, this traffic do not need to go through cloudflared, because it's slow for somethings. Is amazing for remote access, but I want everyone in my home to be able to type the URL and see the cameras.
I have tried to use chatgpt and other guides to set this up, HAProxy, unbound DNS, firewall, it seems like or ChatGPT is unable to acomodate all the edges here, or is not possible like I want.
If so, what would I need to research, or even do, to this be possible?
The most important question for using cloudflare is security, as I can use their email/password to be able to see the domain.
Any help would be more than appreated thanks!
Logged
arturmentado
Newbie
Posts: 2
Karma: 0
Re: Trouble with proxing access to domains
«
Reply #1 on:
October 13, 2023, 04:45:57 pm »
I have runned several tests to see what was wrong.
Somethings I have discovered.
For the configuration I set, I had to hit one of the OPNsense IPs (lan or wan), this would reach HAProxy and proxy it to the destination I want.
So, my assuption is, I should have ALL traffic passing by HAproxy, so it can decide when proxy to my local server and when not, right?
Ok, assuming this is right, I have another question, in my configuration I have set a rule to macth my URL let's say it was
http://something.somethingelse.online
but, when i reach the OPNsense ip (192.168.1.1) it still handle the proxy showing the contents of said URL. Why? Spend a couple hours setting diff rules and configurations but did not manage to fix this.
And for that strange rule problem, i did not move forward with tests to set all traffic to be handle with HAproxy with fear of losing access to anything else.
Any thoughs or comentaries? This is all alien to me, so is having me a lot of pain and headaches.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
Trouble with proxing access to domains