Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
HAPROXY: Which Ports to which target to open for reverse proxy [solved]
« previous
next »
Print
Pages: [
1
]
Author
Topic: HAPROXY: Which Ports to which target to open for reverse proxy [solved] (Read 3762 times)
ruggerio
Sr. Member
Posts: 295
Karma: 11
HAPROXY: Which Ports to which target to open for reverse proxy [solved]
«
on:
December 10, 2018, 10:25:00 am »
Hi,
Which ports do i have to open on the wan-interface, when using haproxy (listening on 127.0.0.1:80 and 127.0.0.1:443) public frontend?
Do i just have to set on wan interface allow all to this firewall port 80 and 443?
«
Last Edit: December 12, 2018, 02:21:21 pm by ruggerio
»
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: HAPROXY: Which Ports to which target to open for reverse proxy
«
Reply #1 on:
December 10, 2018, 10:27:14 pm »
this will not work, you need to bind it on 0.0.0.0 and :: to be publicly available.
Logged
ruggerio
Sr. Member
Posts: 295
Karma: 11
Re: HAPROXY: Which Ports to which target to open for reverse proxy
«
Reply #2 on:
December 11, 2018, 07:53:17 am »
OK, and then just a rule on wan to allow port 80 and 443?
i tried before to insert my domain in the form domain.tld:80 domain.tld:443 - this did not work either. I thought, this will make it listening to wan port?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: HAPROXY: Which Ports to which target to open for reverse proxy
«
Reply #3 on:
December 11, 2018, 06:13:43 pm »
you probably want a rule
PASS IPv4+IPv6 TCP FROM ANY:ANY TO THIS_FIREWALL:WEB_PORTS
WEB_PORTS: Alias for 80,443
Logged
ruggerio
Sr. Member
Posts: 295
Karma: 11
Re: HAPROXY: Which Ports to which target to open for reverse proxy
«
Reply #4 on:
December 12, 2018, 08:30:46 am »
Thx, i think i had this, but i gonna retry. Maybe i just did something wrong.
Logged
ruggerio
Sr. Member
Posts: 295
Karma: 11
Re: HAPROXY: Which Ports to which target to open for reverse proxy
«
Reply #5 on:
December 12, 2018, 02:21:09 pm »
done like this, working. Thx!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
18.7 Legacy Series
»
HAPROXY: Which Ports to which target to open for reverse proxy [solved]