Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
[HELP]Haproxy plugin not working as expected
« previous
next »
Print
Pages: [
1
]
Author
Topic: [HELP]Haproxy plugin not working as expected (Read 1716 times)
ethnical
Newbie
Posts: 1
Karma: 0
[HELP]Haproxy plugin not working as expected
«
on:
January 22, 2020, 07:52:26 pm »
Hi there,
I try to find out the answer on the internet but can't find the good anwser.. So hope you guys will help me !
I try to configure my Haproxy to redirect HTTP so i found these little tutorials :
-https://docs.opnsense.org/manual/how-tos/haproxy_howtos.html
-
https://forum.opnsense.org/index.php?topic=6603.0
(Actually, this one is quiet simple. That's why i tried to do it).
http://prntscr.com/qrfaxy
-> condition
http://prntscr.com/qrfa7x
->rule
http://prntscr.com/qrfbga
->frontend
http://prntscr.com/qrffqb
->curl + nc not working..
For the moment, i did the same step but it's not working.. I tried to curl MyIP:443/MyPath but not working..
But when i removed the redirect http and i use "Use specified Backend Pool" it's works !
So if someone have a little trick to help me i will be thankful !
See ya !
«
Last Edit: January 22, 2020, 08:08:34 pm by ethnical
»
Logged
cmdr.adama
Jr. Member
Posts: 61
Karma: 3
Re: [HELP]Haproxy plugin not working as expected
«
Reply #1 on:
January 26, 2020, 01:30:35 pm »
First thing first... Stop using Lightshot... It is a terrible program and allegedly full of malware...
Secondly. Your rule is set up wrong.
Quote from the guide that you linked
"- Create a rule called "rewrite"
- Test type "IF"
- Select conditions choose "root"
- Logical ops is "none"
- Execute function is "http-request redirect"
- HTTP Redirect parameter: code 301 location
http://www.domain.com/subfolder/
"
You have Execute function set to Use a backend pool... You don't need this as you are applying the rule directly to the front end. You should have it pretty much the same as the guide.
Secondly from the terrible screenshot of the frontend (Lightshot really is terrible) it looks as though your Listening Address is wrong... try 0.0.0.0:443 instead.
From the screenshot it looks like you are using 192.168.0.149:445???
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
Web Proxy Filtering and Caching
(Moderator:
fabian
) »
[HELP]Haproxy plugin not working as expected