OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Profile of keyboardDabbler »
  • Show Posts »
  • Topics
  • Profile Info
    • Summary
    • Show Stats
    • Show Posts...
      • Messages
      • Topics
      • Attachments

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

  • Messages
  • Topics
  • Attachments

Topics - keyboardDabbler

Pages: [1]
1
22.1 Legacy Series / GUI access
« on: June 26, 2022, 08:27:08 am »
I cant seem to be able to access the web gui @ http://192.168.1.1/ or https://192.168.1.1/ page returns
Quote
This page isn’t working192.168.1.1 didn’t send any data.
ERR_EMPTY_RESPONSE

I am 100% on the same submask. I restarted opnsense, connected a monitor and logged in. The interfaces are correctly assigned and i have internet wan access. I was unsure if it was something i changed the last time i connected. So I've I restored a backup but still the same.

i just cant access the web gui login

2
Web Proxy Filtering and Caching / help accessing code server through HAProxy
« on: April 23, 2022, 07:31:42 am »
I was hoping someone can help me get the live server extension working within the code-server docker. I rely on being able to see my changes live and am struggling to access the hosted port 5500.cs.example.com

I have HAProxy working with ACME & Cloudflare. Following this great tutorial (https://forum.opnsense.org/index.php?topic=23339.0). I can access code-server via cs.example.com but when I launch the live server extension, I should be able to access this via 5500.cs.example.com.

by adding a extra port in the container I am able to locally access live server via, http://serverip:5500. I tried to create a new backend/front end pointing here but this did not work.

Working setup sofar
Cloudflare = A record, *, IP
ACME > Certificates = Common name, *.example.com
HAProxy > front end & backend points to cs local ip & port

Does HAProxy have something similar to the EXTRA_DOMAINS argument that is referenced below?

After searching the LSIO discord I found the below support using their SWAG container but I cant implement this with my setup (HAProxy).
Quote
aptalca — 16/01/2022
you just add *.code-server.domain.com into EXTRA_DOMAINS in SWAG arguments, create a wildcard cname for *.code-server and set the server address in code server env vars PROXY_DOMAIN. After that code server will let you access any port at https://PORT.code-server.domain.com

MuadDDib — 16/01/2022
I'm using CloudFlare DNS, so I have my A domain for domain.com then a CNAME for code.domain.com

aptalca — 16/01/2022
you need another cname for *.code.domain.com

MuadDDib — 16/01/2022
Now I have to create a new CNAME for *.code.domain.com like the image I'll show next

aptalca — 16/01/2022
if you're using code instead of code-server, you'll have to edit the proxy conf for code server to edit both instances of code-server to code on this line:

aptalca — 16/01/2022
what validation method are you using? http?

MuadDDib — 16/01/2022
yep
I thought that was the de facto for CF DNS

aptalca — 16/01/2022
ah, then you can't do wildcard. change the cname to 5500.code

MuadDDib — 16/01/2022
ok give me a sec

aptalca — 16/01/2022
and add 5500.code.domain.com to EXTRA_DOMAINS
only port 5500 will work, but it will get you go live
I gotta go to bed

MuadDDib — 16/01/2022
@aptalca just wanted to let you know that it worked almost flawlessly!

Pages: [1]
OPNsense is an OSS project © Deciso B.V. 2015 - 2024 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2