Тёмный

Using Nginx Proxy Manager with pfSense, Proxmox, and Docker 

Allen Sampsell
Подписаться 3,4 тыс.
Просмотров 50 тыс.
50% 1

In this video I show you how to use the Nginx Proxy Manager running in a Proxmox LXC to create short local URLs for your internal self-hosted services using split DNS and local certs. If you already use NPM for access from a real domain, you can still follow this procedure for creating local internal only links.
Additional Info:
Link for Root and Intermediate CA creation: • Configuring CA or Cert...
Link for setting up Nginx Proxy Manager: • NginX Proxy Manager is...
Link for installing a Ubuntu LXC for Docker: • Creating a Ubuntu LXC ...
Link for installing Docker in Ubuntu 18.04: www.digitalocean.com/communit...
Link for installing Docker-Compose in Ubuntu 18.04: www.digitalocean.com/communit...

Наука

Опубликовано:

 

7 ноя 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 130   
@djvincon
@djvincon 3 года назад
Hi allen, great video. Will go back trough your other video's as you seem to have a lot of cool videos. Thanks.
@tecg87
@tecg87 2 года назад
Thank you very much for putting the time in this great tutorial! worked perfectly!
@KenPryor
@KenPryor 2 месяца назад
Thanks for this video. I'm getting mixed results on this working with my internal sites, but I'll get there eventually. Your tip on setting the environment variable for the URL on one really helped me. I appreciate you taking the time to do this.
@saidneder41
@saidneder41 Год назад
This is awesome, I was banging my head against the wall tons of times before this, thank you so much!
@gmfitgmfit2840
@gmfitgmfit2840 2 года назад
Thanks, this video is very helpful!
@ygtntxrf
@ygtntxrf 3 года назад
Woo0w!!! Thank you ❤️😍☺️
@growingchannel23
@growingchannel23 Год назад
hey allen, the video's a bit older, but i just found this and it helped me a lot :-) thank you very much for spending your time to make this :-)
@AllenSampsell
@AllenSampsell Год назад
Thanks for letting me know it’s still helping.
@LawrenceSingha
@LawrenceSingha 3 года назад
Very useful... Hi from London UK
@AllenSampsell
@AllenSampsell 3 года назад
Hello back. London is one of my favorite places to visit. 👍
@mithubopensourcelab482
@mithubopensourcelab482 3 года назад
Very nice and neat video....
@davidhenzler4817
@davidhenzler4817 3 месяца назад
Thanks for the great video Allen. Even though I'll likely use HAproxy it was good to get a handle on how Nginx Proxy Mgr works.
@xbitterpillxX
@xbitterpillxX 4 месяца назад
I was looking for this for a long time! I only got tutorials for exposing the services externally, I prefer to keep everything internal and access via VPN, thanks for the help!
@mithubopensourcelab482
@mithubopensourcelab482 3 года назад
I am using proxmox for several months. Following are my mystery topics [ I could not find online resources to resolve properly ] You can select a few topic for your future video's. 1. Implementing internal firewall. 2. Installing PfSense correctly as a vm inside proxmox. 3. Vlan using OVS 4. Implementing proxmox-backup-server. 5. Implementing dhcp in proxmox 6. Pxe boot of thinclient [ thinstation.github.io] to access Win/ Linux VM's inside Proxmox.
@AllenSampsell
@AllenSampsell 3 года назад
Hey I appreciate the topics but a lost of them just aren't in my areas. 1. The internal firewall for Proxmox is ok I guess but seems pretty basic. And I've never had a need/use case to use it differently than default. 2. I run pfsense but I run it on dedicated hardware and probably always will. I don't want my network down just because my server is down. However have you seen this video ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-hdoBQNI_Ab8.html 3. OVS is a pretty heavy hitter for a virtual switch and again I've just never had the need to use it. I have no idea for a use case either. 4. I do backup my VMs and LXCs but I do it manually using what is already in Proxmox. So I don't have a need for the Proxmox Backup Server. But again, TechnoTim has you covered ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-jLBNm0fNIog.html 5. I guess I don't understand this one. You want the Proxmox host to be a DHCP server? I mean if you virtualize pfsense, that should be your DHCP server... 6. I have limited experience with Thin Clients, and no experience with PXE boot. But Thinstation seems like an interesting project. I'll be checking that one out...
@mithubopensourcelab482
@mithubopensourcelab482 3 года назад
@@AllenSampsell Thanks for your reply. 1. Internal firewall was suggested in order to provide security to VM/Containers running inside Proxmox. 2. Pfsense suggested in order to save the space / power. The video suggested by you is not a good one. I have already watched 3 weeks back. Techno Tim's video on the subject factually a chit. I have even commented on it but so far never got the convincing answer. 3. OVS can be used to isolating traffic between various vm/containers running inside Proxmox. In home /business environment at times you have to do that. Hence it was suggested. 4. Again the video suggested, lacks quality and is made for beta version of Proxmox-Backup server. Since day before yesterday, ProxmoxBackup Server has come out from Beta , its right time to re look. 5. Unfortunately, you can not decide the IP address in Proxmox while you create a new VM. You have to do it manually inside VM or note down mac address and set it on external dhcp server, which, according to me can be avoided. To the best of my little knowledge, if we have authoritative dhcp server on Proxmox host , the task can be fulfilled. 6. My idea is to make a small vm of Thinstation. With this one can use thinclient to connect Windows VM. Hence suggested. Sorry for long answer. Regards Love from India.
@AllenSampsell
@AllenSampsell 3 года назад
@@mithubopensourcelab482 no worries at all. I appreciate the response. I can see the appeal for many of these things. I just usually make videos on things I use or am wanting to learn. I watched a few videos on Thinstation this afternoon already. Interesting stuff.
@derfic
@derfic 3 года назад
good video, man !
@AllenSampsell
@AllenSampsell 3 года назад
Thanks!
@primenetwork27
@primenetwork27 7 месяцев назад
hello have a error after creating ssl in nginx proxy manager im still getting a not secure
@stokesfamily1047
@stokesfamily1047 3 года назад
HELLO @Allen Sampsell, Great vid on using 'The Powers of Pfsense'. Just a question but you mention at 11:30 that this would not work in this fashion with OMV5. Would that be the case if I 'Pre-planned' my OMV5 setup to use port 801 instead of 80. Which then would save port 80 for NPM and LE? Then possibly could I use 'All those Containers' through the NPM running in my Docker Portainer using my pfsense CA?
@AllenSampsell
@AllenSampsell 3 года назад
If you preplanned your OMV install to use non standard ports for both 80 and 443 then you have a shot at making it work. Tweaking OMV after you already have a stable “normal” configuration seemed like a bad idea. But if you’re going to install OMV fresh and you do your homework on if/how to change the ports, that would be the ideal time.
@tctn
@tctn 2 года назад
Thanks Allen. May I ask what's serving your home page? Is it custom design? That's a very good thing to have list of all local services on an index page kind of thing.
@AllenSampsell
@AllenSampsell 2 года назад
That is a Docker container called Heimdall. Very useful to have as a homepage.
@BlueScream0
@BlueScream0 3 года назад
Hi! Thanks for the video! I was looking for something like this! I always had a few webservices on my server and never knew how to organize them (including fancy urls). A additional thing I saw in your video was this "local network portal" at 1:18. Could you tell me what this is or what software you are using to create it? It seems like a portal for all services running on your network, is this the case?
@AllenSampsell
@AllenSampsell 3 года назад
Ahh yes that is a Docker container called Heimdall. I use an image from Linuxserver.io for that. It’s a great homepage system. Other folks like Organizer I think it’s called....
@BlueScream0
@BlueScream0 3 года назад
@@AllenSampsell thanks a lot that was exactly what i was looking for!
@AllenSampsell
@AllenSampsell 3 года назад
@@BlueScream0 no problem at all. I show Heimdall in most of my videos these days and get questions about it all the time.
@MrKlysas
@MrKlysas 3 года назад
Hello, nice video :) . Just small question: why don't you run docker directly on Proxmox machine?
@AllenSampsell
@AllenSampsell 3 года назад
Well I could definitely do that. But I do t like the idea personally. I try not to change the Proxmox host machine so that updates and upgrades work smoothly. Not saying it wouldn’t, just don’t want to take the chance. Also, by running Docker in a VM or LXC I can easily back it up before I make major upgrades or updates to containers or the VM/LXC host files.
@robertspradlin7653
@robertspradlin7653 2 года назад
This is exactly what I want to do but I don't have pfSense. I'm using a Unifi USG. Does anyone know how to do these aliases with ports on the Unifi system?
@faizmustofa6369
@faizmustofa6369 2 года назад
what is your configuration on Docker ?
@ebiscaia
@ebiscaia 3 года назад
Hi, Allen. Any special parameter to do the same with your pve1.allen? Thanks
@AllenSampsell
@AllenSampsell 3 года назад
Yes actually. For Proxmox virtual consoles to work correctly you have to enable Web Sockets support. I do this for Portainer as well so that the console to go into a container will work correctly.
@yuriw777
@yuriw777 6 месяцев назад
Great video, thx. Question - can I reuse one SSL certificate for several LAN hosts?
@AllenSampsell
@AllenSampsell 6 месяцев назад
That’s a great question. I doubt it because I made all mine FQDN compliant , at least for local DNS use, so they would proxy correctly. There may be a way to do it though.
@mmuneebahmed
@mmuneebahmed 2 года назад
Thanks Allen for your videos and they are awesome. However, I notice that there seems to be an audio issue with almost all of the videos. The audio is very low even though I turn up the full volume.
@AllenSampsell
@AllenSampsell 2 года назад
I wonder if that’s a RU-vid thing. I know the audio isn’t great quality in past videos, but this is the first I’ve heard they play too low.
@tylerpohler3271
@tylerpohler3271 Год назад
Allen great video, thx for taking the time to make this. Do you happen to know how to run caprover or easy panel on proxmox? Both are pretty straight forward with a public ip but on an internal network I really struggle with the domain resolving for the containers
@AllenSampsell
@AllenSampsell Год назад
Unfortunately I am not familiar with using either of those. However in my pfsense firewall I’m using split DNS to resolve the domain internally. But my domain controller is also local. There’s so many ways to do things it’s hard for me to advise on this one.
@tylerpohler3271
@tylerpohler3271 Год назад
@@AllenSampsell thx for the quick reply, they are both open source saas to deploy docker templates but they are configured to use a docker swarm and to get them to work without a public IP is far beyond my knowledge at this point sadly
@mmuneebahmed
@mmuneebahmed 2 года назад
If I want to do the branding the Kasm is asking for a license?
@AllenSampsell
@AllenSampsell 2 года назад
Yes. I believe the custom branding is not part of the Community Edition.
@rkbest9783
@rkbest9783 2 года назад
How to use host overrides for services that run on same IP but different port. I am not able to add IP:port for host override setting as i run multiple service in docker containers. Any suggestion on how to approach it. I finally gave away from HA proxy and now have nginix running in docker.
@AllenSampsell
@AllenSampsell 2 года назад
Host Overrides in pfSense is only so the name you use (plex.localname) will go to the right IP address. That IP address, if you're running multiple services should be the Nginx Proxy Manager. NPM is what routes the name to right IP address.
@chandlerjones6
@chandlerjones6 3 года назад
Allen, I am trying to setup nginx-proxy-manager to work with proxmox. Mine looks just like yours inside ngninx proxy manager, but I am running into a Connection Error 401: No Ticket. Did you have to go into the command line on proxmox and change a variable there too? Do you remember what it was? The documentation is sparse online about this.
@AllenSampsell
@AllenSampsell 3 года назад
Nothing special at the command line in Proxmox. However, in NPM you'll need to edit config and make sure you enable Websockets.
@pbattarino
@pbattarino Год назад
Ciao Allen. Thank you so much for your video. It is really useful. One question for you. What is the desktop (launcher) that you shaw around minute 13. Is it a custom launcher or is software? Thanks
@AllenSampsell
@AllenSampsell Год назад
That is a homepage software call Heimdall. I run it from a docker container. Very useful tool.
@erbmur
@erbmur 2 года назад
Thanks for this, great tutorial! I have encountered an error though. At the final stage when I actually try to access the server through the new link, I get a cert error. "Windows does not have enough information to verify this certificate." What have I done wrong?
@AllenSampsell
@AllenSampsell 2 года назад
You probably need to import the certificate into the browser.
@belaircomputerguyllc4001
@belaircomputerguyllc4001 Год назад
What a terrific video. Thank you for this. What are your thoughts on OPNsense?
@AllenSampsell
@AllenSampsell Год назад
OPNSense is a great alternative. Just as powerful as pfSense, however my attempts to switch to it have not gone well. I have everything dialed in so well on pfSense that it’s proven difficult to duplicate on OPNSense. Just my take on it. But if you’re just starting out try OPNSense first. If it does everything you need then stick with it.
@fahmi8999
@fahmi8999 5 месяцев назад
Hi Allen, one question how to make my client PC to resolve and lookup from NPM? I saw your DNS server is PFsense.
@AllenSampsell
@AllenSampsell 5 месяцев назад
I’m actually using split DNS. PfSense has a DNS Resolver that allows local redirection. But my real DNS server for my websites is built into my Univention Corporate Server VM. So not an easy answer for anyone.
@techiemike9483
@techiemike9483 Год назад
Hi thanks for the video, which network do you run the NPM from WAN or LAN I have tried several times to get this to work but I still get Error code: SEC_ERROR_UNKNOWN_ISSUER - if I click accept anyway it times out?? I followed the root and ca creation added them to my computer etc its working fine for the pfsense ip address
@AllenSampsell
@AllenSampsell Год назад
Ohh this is definitely run just internally for this purpose. I have a different reverse proxy for my internet facing apps. That error you’re seeing might be related to that browser. I would try Firefox.
@AS-em5jm
@AS-em5jm 3 года назад
Hi Allen Great video!I have just one question. On 9:28 i see you get a "secure connection". I allways have this yellow triangle with the message "connection not secure". What I do wrong?
@AS-em5jm
@AS-em5jm 3 года назад
i found my fault...importing the root and intermediate cert in windows solves the problem! Thanks for that video
@AllenSampsell
@AllenSampsell 3 года назад
@@AS-em5jm glad you found it. Was just going to point you to that. 👍
@voiceoftreason1760
@voiceoftreason1760 2 года назад
for some reason I can't open proxmox and the nginxpm dashboard itself through a proxy link, even when I disable ssl. I did get homeassistant working though
@AllenSampsell
@AllenSampsell 2 года назад
For proxmox did you turn on WebSocket Support? And for NPM I have the Force SSL and HTTP/2 Support enabled. Hope that helps
@voiceoftreason1760
@voiceoftreason1760 2 года назад
@@AllenSampsell Thanks, I figured out what the problem was in the meantime. I had a conflicting dns alias entry in unbound. I got it all set up now :D
@Whiskey7BackRoads
@Whiskey7BackRoads 2 года назад
Allen, looking to do the same set up. I am having an issue though. At the 10:05 mark when you edited the video to get bookstack.allen to work, I am having same error. I don't know how to overcome it. I am trying to bring up Heimdall which I have on port 49154. It does not load from NGINX. Any thoughts? Proxmox on Dell server, NGINX from CT in Docker and Pfsense 2100. Confirmed the certs are valid as per video you refer to. Thanks
@AllenSampsell
@AllenSampsell 2 года назад
Sorry, I'm confused, are you setting up Bookstack? Or are you trying to get Heimdall to work? For Heimdall I using https as the scheme in NPM, but I don't have any other options turned on. I am using port 8443 which is a lot lower than yours. What I will say is try to get it all to work without the certs first. Then add that layer.
@Whiskey7BackRoads
@Whiskey7BackRoads 2 года назад
@@AllenSampsell trying to copy what you did but with Heimdall. I can bring it up with ip address but not a domain. Was able to make it work before purchasing new pfsense 2100. So seems to be something in firewall.
@AllenSampsell
@AllenSampsell 2 года назад
@@Whiskey7BackRoads ahh so in pfSense in the DNS resolver you need to make sure you have that Host Override that points heimdall.local to your NPM IP address. Other than that it should just work.
@Whiskey7BackRoads
@Whiskey7BackRoads 2 года назад
@@AllenSampsell yea I have tried it there but you can not put in port address. So if I point to internal address without port it doesn't come up. That's the problem, no way to map to that port
@AllenSampsell
@AllenSampsell 2 года назад
@@Whiskey7BackRoads the port goes in NGINX Proxy Manager (NPM) it routes the hostname to the ip address:port
@davidhenzler4817
@davidhenzler4817 3 месяца назад
enjoyed your video. However need to understand the reasoning behind using Nginx Proxy Mgr vs the HAproxy that is internal to pfsense. My pfsense runs on a DL360g8 server with dual 73G mirrored drives. Super powerful configuration... eh? Would appreciate your remarks.
@AllenSampsell
@AllenSampsell 3 месяца назад
Ahh now that’s an easy one. It’s mainly simplicity and ease of use. I did look at the inbuilt haproxy however I was already familiar with Nginx and the learning curve for me to figure out haproxy seemed unnecessary. If you’re familiar with haproxy, by all means use it. That would be one less docker container you’d need to worry about.
@areweevensomeoneoutthere
@areweevensomeoneoutthere 6 месяцев назад
Great tutorial, only issue I am seeing is automatic updating of these certs seems very tedious. Have you gotten around to automating it by any chance?
@AllenSampsell
@AllenSampsell 6 месяцев назад
I have not automated them. I just made them last so long that I won’t need to update them very often.
@areweevensomeoneoutthere
@areweevensomeoneoutthere 6 месяцев назад
@@AllenSampsell Thanks, going to look into automating it with a cronjob, granted my set up is on opnsense without certificates from opnsense itself. Thanks for the video.
@rkbest9783
@rkbest9783 2 года назад
This is very interesting approach and i would like to use as well. But, I have a basic confusion about my setup vs yours. I am using pfsense and ha proxy. is NGINX proxy and HA proxy same thing (noob here). Can you setup everything without using NGINIX in such a case? as I believe you can only have one proxy manager working.
@AllenSampsell
@AllenSampsell 2 года назад
Yes, I believe the same concept works with other Reverse Proxies and pfSense. And HA Proxy is built into pfSense, so give it a shot. I just don't know how HA Proxy works and it was difficult enough that I didn't bother to try to learn. NPM was just so easy. But again, please give it a shot.
@KangJangkrik
@KangJangkrik 3 года назад
Can I do that without docker? My home server is old and doesn't capable of running Docker
@AllenSampsell
@AllenSampsell 3 года назад
That’s a good question. I guess it depends on your setup. I’m sure there must be NPM installers that aren’t Docker containers so I can only tell you Maybe.
@KangJangkrik
@KangJangkrik 3 года назад
@@AllenSampsell thank you sir, unfortunately this also hot issue on reddit which some people demand non-docker but it's too hacky to do. Seems like I have to write my own home server frontpage + proxy or maybe just normal nginx 😅
@TadasTirony
@TadasTirony 3 года назад
hi great video this works great but on proxmox i keep getting errors for the vnc console if I use nginx to log in it works via local ip but not via local domain i keep getting code 1006
@AllenSampsell
@AllenSampsell 3 года назад
Yes great catch. I ran into that as well. For that Proxy Host in NPM you must turn on the "Websockets Support". Try that and let me know.
@TadasTirony
@TadasTirony 3 года назад
@@AllenSampsell Allen your the best you! Thank you so much for this tutorial it worked
@AllenSampsell
@AllenSampsell 3 года назад
@@TadasTirony glad it worked for you. I use it every day. 👍
@nyvek970
@nyvek970 3 года назад
what do I do if I'm getting an "Upload failed: Certificate Key is not valid"?
@AllenSampsell
@AllenSampsell 3 года назад
I guess that depends on what is producing the Certificate. Are you using pfsense or something else? You could use a text editor and inspect the cert key is in the right format...
@nyvek970
@nyvek970 3 года назад
@@AllenSampsell I'm useing pfsense
@AllenSampsell
@AllenSampsell 3 года назад
@@nyvek970 Not quite sure then. Never run into that issue. I would check to ensure you're pfsense settings are correct for producing the keys. Try reinstalling NPM. Not sure what to tell you. It does work. But there's too many variables possible for me to tell you if something is wrong with your setup.
@28469
@28469 10 месяцев назад
How did you manage to get proxmox to run behind a domain? I get errors whenever i run it on a local domain behind ngnx proxy manager.
@AllenSampsell
@AllenSampsell 10 месяцев назад
Behind? My domain controller is a VM on my Proxmox machine. I have split DNS so that I can redirect to my internal sites. It’s not perfect but it works.
@28469
@28469 10 месяцев назад
@@AllenSampsell Hey, nah I mean how to get proxmox web gui to work properly behind a local dns entry, whenever i do it i get errors, i think theres extract configuration that has to be done for it to resolve properly. Do you recall what you had to do to get it to work behind your local dns? Great video btw!
@AllenSampsell
@AllenSampsell 10 месяцев назад
@@28469 All I did was put a host override in the DNS Resolver. I didn't make any other configuration changes. In NPM I did enable websockets support...
@28469
@28469 10 месяцев назад
@@AllenSampsell yup it was the web sockets. Thanks so much!
@AllenSampsell
@AllenSampsell 10 месяцев назад
@@28469 glad to help…
@hockey6611
@hockey6611 3 года назад
Very interesting. I'll have to look into this service, the UI looks very slick. Did you look into haproxy in pfsense while you were searching for these solutions? If so why did you choose this over haproxy? I have been using haproxy for several years, with great success. It seems to have some advantages over your solution. It is built into pfsense (as a package), so one less container to manage, and one less place to configure a new service. A couple of other notes not necessarily related to haproxy: 1)I noticed you made your certificates with a long expiration. With the new browser certificate life limits (2 yrs), you might run into issues. 2) if you were to use lets encrypt, you could forego installing CAs on all your clients. 3) If you used a wildcard certificate, you wouldn't need to create a new certificate for every service (even if you keep a selfsigned certificate).
@AllenSampsell
@AllenSampsell 3 года назад
I did look into HAProxy previously and it was overly complex compared to this method. So I'm well aware it's there just did not bother to try. I didn't know about the 2 Year cert life but should be easy to just recreate them if I need to I suppose. I can't actually use Let's Encrypt as I am already running a server for my main website on Port 80 and 443. Also, to create a cert it needs to be a real TLD or you get an error. I'm using a fake TLD that will never leave my local network. And I guess I didn't think about creating a *.allen cert in pfsense and using it for all of them. That seems like a great idea. Will test that tomorrow!
@AllenSampsell
@AllenSampsell 3 года назад
Yeah that didn't work. I could create a *.allen cert in pfsense and could install it in NPM but the browsers were expecting the name i.e. tautulli.allen and I was back to having to override for a local cert.
@hockey6611
@hockey6611 3 года назад
@@AllenSampsell Hmm, yeah that would essentially be a wild card TLD, which I could see being an issue. A wildcard FQDN should work though
@hockey6611
@hockey6611 3 года назад
@@AllenSampsell haproxy is definitely more complex. The integration in pfsense, is the primary benefit for my use case. Regarding you already hosting a site on 80/443; you can overcome this by using a virtual IP on pfsense. You essentially use the virtual IP in place of the router ip in an haproxy setup. That way you can run multiple services on the same box on the same port. Regarding the let's encrypt, yes that would have to be a real domain. So if you're set on the .allen domain, your self signed cert is the only option. In my case, installing CAs wasn't an option, so I had and wanted to use an FQDN
@AllenSampsell
@AllenSampsell 3 года назад
@@hockey6611 hmm virtual IP. I’ve seen that option in the menus but never looked into it. Now I will. And the thing about the current setup is that the host override won’t accept an FQDN. Just host.tld.
@janmagnusrkke8815
@janmagnusrkke8815 3 года назад
For some reason I am not getting this to work. I followed the same procedures for both pfSense and NPM, but when attempting to browse to the internal shortened address nothing is happening. I do have a difference in setup and that is stat I am using static DHCP mapping for all hosts on my network in pfSense. Great video btw :)
@AllenSampsell
@AllenSampsell 3 года назад
Thanks. And have you tried putting one device on DHCP to see if it then works? Maybe your devices with the static info doesn't include the DNS resolver? Just guesses here. Good luck with it though.
@janmagnusrkke8815
@janmagnusrkke8815 3 года назад
@@AllenSampsell I have ticked of for "Register DHCP static mappings in the DNS Resolver" so they should be included. Are there any firewall rules that needs to be added? How are the internal queries routed to the NPM?
@AllenSampsell
@AllenSampsell 3 года назад
@@janmagnusrkke8815 I have that same setting turned on. There aren't any specific firewall rules for this. Did you setup the Host Overrides section? That's what points it internally to NPM's IP address.
@janmagnusrkke8815
@janmagnusrkke8815 3 года назад
@@AllenSampsell I feel like an idiot xD I put the IP of the service's host instead of the NPM VM IP in the Host Overrides IP field! Thanks a bunch! :)
@AllenSampsell
@AllenSampsell 3 года назад
@@janmagnusrkke8815 Ohh yeah lol that would not be good. Glad you worked it out though.
@danielknight4575
@danielknight4575 2 года назад
Hey Allen, really good video. I'm not certain on this but I think your method may have a minor security implication. If your proxy manager is public facing (ports 443 & 80 are forwarded to it), if i somehow figured out your public IP and created an entry on my local DNS resolver, such as "home.allen -> (your public IP)", I will route to your gateway on 443 right into your proxy and in theory, it will serve up the page i requested via host name, minus the SSL certs as i don't have your root CA cert. I'm not 100% sure on this but it would be an interesting theory to test. In the proxy manager, it might be worth creating an Access List that allows local IP's only. Thanks for the good content.
@AllenSampsell
@AllenSampsell 2 года назад
That’s an excellent issue to raise…. For anyone trying to use what I show in the video to serve both internal and external services. And your idea to use an access list which is built into NPM would be useful. In reality I have two separate reverse proxies in place so I don’t think it’s possible. But I’ll admit I’m no expert on DNS or reverse proxies and my firewall may be vulnerable in a way I’m not aware of. So please do tell me if you can reach my internal pages. My IP isn’t that hard to find lol
@TheGreatestMajesty
@TheGreatestMajesty 2 года назад
Local DNS configs only translates within your local PC or local networks connected to that PC. It doesn't propagate all the way across Google DNS servers or cloudflares DNS servers for example. So unless your already on a server attached to his network, it won't be possible.
@rubao2k6
@rubao2k6 3 года назад
That was awesome. Thanks Peter Griffin.
@geogmz8277
@geogmz8277 3 года назад
Although I can see the resemblance. Don't be disrespectful..
@AllenSampsell
@AllenSampsell 3 года назад
LOL not the first time I’ve been accused of a resemblance.
@faizmustofa6369
@faizmustofa6369 2 года назад
can you make video step by step ?
@DanoFPV
@DanoFPV 3 года назад
This is only truly useful if you just want certs on your lan. If you just want to have DNS resolution, you can do it much easier in pfsense, your favorite DNS server (lan), or even a pihole.
@AllenSampsell
@AllenSampsell 3 года назад
And how does DNS resolution get me to a specific port? It’s not like I didn’t look at DNS first but I couldn’t find a way to make that work without a reverse proxy. And the local certs are just so that the browser is happy and doesn’t warn you your passwords might be intercepted. You can run it without the certs but it’s annoying.
@janmagnusrkke8815
@janmagnusrkke8815 3 года назад
How are you able set this up with pfSense so you don't have to type the port number for different services?
@AntonStolov
@AntonStolov 3 года назад
Very sorry, but Proxmox can't create backups of such containers, remember this.
@illegaldyo
@illegaldyo 3 года назад
You're going to have to elaborate, why can't Proxmox backup container disk images?
@AntonStolov
@AntonStolov 3 года назад
​@@illegaldyo Because this containers (I talks 'bout containers like in this video, with unprivileged mode and docker inside) have docker volumes inside.
@AllenSampsell
@AllenSampsell 3 года назад
I’m sorry but you are incorrect. I’ve been running this way for a long time. Maybe your limitation has to do with hardware or how you have things setup. But it does work.
@AntonStolov
@AntonStolov 3 года назад
@@AllenSampsell Are u sure? Are u saying that your lxc-container has unprivileged mode and docker containers are running inside this lxc-container? And can u restore from an backup without any problems this lxc-container? Are u tryed do this?
@AllenSampsell
@AllenSampsell 3 года назад
@@AntonStolov very sure. But again I’m not using LVM or ZFS for my storage. Your setup of Proxmox can have side effects of what you can and can’t do.
Далее
Как вам наш дуэт?❤️
00:37
Просмотров 1,3 млн
NOOOOO 😂😂😂
00:15
Просмотров 4,7 млн
Traefik 3 and FREE Wildcard Certificates with Docker
39:37
Self-Hosting Security Guide for your HomeLab
18:43
Просмотров 344 тыс.
HomeLab SSL certificates for FREE with minimal effort
19:41
Proxmox Automation with Proxmox Helper Scripts!
24:15
How to Soldering wire in Factory ?
0:10
Просмотров 6 млн