r/Ombi•
Ash_Valor

A Newb in need of help!

Ok, so i'm little panicking now.

​

I'm using my intel NUC windows 10 as my plex server.

​

I have successfully setup sonarr, radarr, Ombi internally. It's been 4-5 days to reach where I am now. Google searching all the steps needed.

​

I was aiming on making Ombi available to my family members and few family friends (total users of about 7 max).

​

I read extensively about Ombi and all its wiki's links, I'd be lying if I said I understood fully.

I went step by step on setting it up, i even used its installation guide for forwarding port in windows firewall (as I had trouble trying to access my local ip on another machine on the same local network - got it fixed with port forwarding)

​

As per guides found throughout the site, I needed to get a domain, a DDNS, SSL and port forwarding.

​

Long story short, I read guides about setting up domain on No-IP site, and got the Dynamic DNS with it, costs me almost 50$ per year.

​

Downloaded their program, set up as services etc. Now as I was reading about Caddy vs nginx, I wanted to see my domain and how it works (I have zero knowledge here)

​

I went and typed my domain site name alongside the Ombi port (ex. mydomain.com:5000) and it worked.

But what scared the hell out of me is that, all my programs are open, including plex, tautulli, radarr, sonarr, Sabnzbd, deluge etc..

​

they're all accessed through mydomain.com:PORT , I'm just gonna admit that i'm stupid here, but how did it even access it?

​

was it from when I tried Ombi port forward command line in windows firewall (as it did say its recommended to use reverse proxy) or something to do with no-ip program? All I understand from that program is that it automatically upgrades my IP address whenever it re-freshes every 30days or so from my ISP as its not static.

​

Sorry for the long wall of text there, but can someone help me on how to ONLY have Ombi accessable outside my network? I'm scratching my head here on how everything from my server machine Local IP Address got external? my other server isn't exposed.

​

​

Also if someone please could help me how to setup Ombi properly! Truthfully I've been messing around from different sites too much that I forgot what my steps were :'(

​

​

the steps I remember regarding Ombi:

  1. connected Ombi to plex, radarr and sonarr using API
  2. followed the initial installation guidelines on Ombi Wiki for windows 10 (including port forward command prompt)
  3. Bought domain name from No-IP site (including enhanced dynamic DNS, why? Because I'm stupid and thought I needed it :'(.. )
  4. followed the instructions from the site to download their program to keep my current IP in sync with domain, and added it as services.

​

and this is where I got curious about my domain access with relevant ports, then panicked!

Got lost due to high level of panicking that lead to side effects of memory loss and head scratching!

​

​

PS: this is my very first attempt in port forwarding and DDNS

Posted May 26, 2019, 3:34 AM UTC

024
datascope11•

It sounds like you may be missing the reverse proxy and SSL certs, as you didn’t mention setting that up?

1
Ash_ValorOP•

I haven't continued to SSL yet, reading up on Caddy trying to understand it.

​

I'm really new to this, but I thought I've achieved reverse proxy as in I can access my own domain externally?

I kinda dropped everything when I saw I can access all my programs via my domain with different ports. Still confused on how I did it. and lost on where to go from here.

​

Edit: Ignore this, after few hours of reading and understanding, I got myself familiar with port forwarding/router setup, and how to link it to a domain.

Now figuring out SSL and reverse proxy

1
soccerdave11•

Since you have your DNS, then you should set up a Reverse Proxy on your PC with SSL Certs. I used Nginx for the hosting service, I found it easier to configure, and Let's Encrypt for the SSL (Win10 version). Here is a write-up I did for someone in a similar situation.

Here is how you can run Ombi as a service as well.

For the other programs and their ports, you can set firewall settings to block external port requests. You may also want to think about changing the default port of the different programs and configuring them in the config file.

I'm sure you will have more questions, so ask away.

1
Ash_ValorOP•

Thanks! Just to understand, the DNS is setup from the domain No-IP site correct? as I purchased Dynamic DNS from them, reading from your guide it doesn't say anything about messing around with router's DDNS so I think i'm good here.

​

Just a couple of questions regarding your steps:

- when editing the "host" file in system32/etc with a notepad, I can just copy/paste the localhost url you provided and change domainName.org to my own?

- the pastebin you provided in the steps isn't available anymore, when adding location to my tools, you mean the path? or the base Url from my programs? (radarr, sonarr, Ombi).

- you mentioned only to port forward 443 (no 80?), assuming my default port forwarded (5000 for ombi etc..) is not needed as I will be using base urls instead correct? (i.e. www.myDomainName.com/Ombi)

​

Also thanks again for those steps!

I've been searching for hours and read a lot of steps which were similar, but I never came across a guide like yours which has steps inside system32 host file to modify. Thank you.

1
MrYogiBearrrrr•

Dude if u become stuck and do not know how to go further I would be happy to TeamViewer in to help you. You’ll also welcome to pm me though what u need to have explained to you is quite a lot to write out :) Edit: you do not need to pay no IP you can just renew every month :)

1
soccerdave11•

For the No-IP domain, correct, you just need to download their DUC and install that. Make sure on the website settings for your domain name, it's pointing to your External IP.

Here's a copy of the basic conf file I set up for helping others.

For the Host file, just need to put 'localhost yourdomain.com', no quotes.

Right, you should not need to forward any other ports other than the one for 80 or 443. 443 if you are using the SSL, 80 if you are not using the SSL.

1
datascope11•

If you need help with the proxy and certs, let me know. I used Nginx and documented every step I took to get it working.

1
Ash_ValorOP•

Would really appreciate it! I'm still at it. Getting overwhelmed

1
datascope11•

Tools Needed:

- Ombi (https://github.com/tidusjar/Ombi/releases)

- Free no-ip.com account (and free domain if you don't have one) for DDNS service

- NSSM (https://nssm.cc/) - You will want to install both Ombi and Nginx via this method, so that they run well as a service when Windows is booted.

- Nginx (http://nginx.org/en/download.html) - This will be your reverse proxy web server

- win-acme (https://github.com/PKISharp/win-acme) This will be the tool you use to obtain free LetsEncrypt SSL certificates

​

Step 1 - Setup Ombi on internal network first

- Download NSSM and Ombi

- Follow instructions to install Ombi as Service with NSSM (https://github.com/tidusjar/Ombi/wiki/Installation)

- Once installed, open Ombi (localhost:5000 in browser address)

- Hit the Settings, and run through the setup for Media Server (Plex), TV (Sonarr), Movies (Radarr) and ensure all are connected. Test out Ombi by requesting a movie or show and follow it through Sonarr/Radarr to ensure it's working.

​

Step 2 - Obtain & Setup Domain and DDNS

- This assumes you do not have a domain name to use, and that your ISP provides you with a dynamic IP

- Head over to no-ip.com and create a free account. Choose a free domain (example.ddns.net) and set it up with standard DDNS. (note, this may need to change if your ISP blocks port 80)

- Open ports 80 and 443 in your router

- Setup DDNS by either 1) Using the Dynamic Update Client (DUC) from no-ip.com which gets installed on your PC and updates no-ip with your IP address OR 2) Using DDNS settings in your router (if available). I have Netgear Orbi and it had support for no-ip.com DDNS built in.

- You will want to verify in no-ip.com that your ISP ip address has been assigned correctly.

​

Step 3 - Firewall & Host file

This may not be necessary for you, but it was needed for mine to work.

- If you are using Windows Firewall, ensure to open up port 80

- Configure your Hosts file in Windows located C:\Windows\System32\drivers\etc. Add 2 entries:

127.0.0.1 example.ddns.net

127.0.0.1 localhost

​

Step 4 - Generate SSL Certificates

- Download win-acme (https://github.com/PKISharp/win-acme) and run wacs.exe

- Run the following options in wacs.exe:

M (Create new certificate),

1 (Manually input host name) enter in the free no-ip domain you created,

4 (Host the validation files from memory),

2 (Standard RSA key pair),

3 (Write .pem files to folder), enter the path to store .pem files,

1 Do not run any installation steps

After this sequence, you should receive a positive message in wacs.exe, and 2 .pem files should be written to your specified path. Check to ensure they are there.

​

Step 5 - Setup Nginx

- Install Nginx with NSSM as you did with Ombi.

- End processes for both Ombi and Nginx if running in your task manager

- In the install folder for Nginx, go into the conf folder and open up nginx.conf with Wordpad

- Use the following example of config file from soccerdave11 (https://pastebin.com/Ty0j6WcJ). You will need to change a few things in this file: server_name on Line 40, ssl_certificate and ssl_certificate_key folder paths on Line 71,72. NOTE::: In the config file, the slashes are reversed from Windows Explorer!!! Use / instead of \

​

Step 6 - Finalize Ombi Setup

- If you've made it this far without errors, you are ready to finalize your Ombi setup.

- Under Settings>Ombi, add in /example.ddns.net into the Base URL section

- Under Settings>Configuration>Customization, enter Application URL as https://example.ddns.net

- Under Settings>Configuration>Authentication select Enable Plex OAuth (this will allow Ombi to use Plex's auth protocal for login

- Under Settings>Configuration>User Importer run the importer for Users and Admin separately, giving the desired roles as listed

​

​

Troubleshooting Tips

- Spaces in file paths cause issues

- Slashes in Nginx config file are reversed

- Use canyouseeme.org to check ports 80 and 443 are open

- Change the Nginx Service to run as User instead of Local System

- I deleted both Router and Windows Port Forwards, and recreated.

Some helpful CMD line checks:

netstat -aon | findstr :443 (Gives information on what is happening on Port 443 - Used for SSL)

netstat -aon | findstr 4088 (Gives infomration for PID- Process ID, instead of Port

tasklist | findstr 4088 (Gives information on what program is ties to the PID)

1
Ash_ValorOP•

Wow! Very detailed explanation! I'm gonna get right to it and hopefully I get it right!

I'm using windows 10, you added a "Note" regarding config file to use "/" instead of "\" .. do you mean I have to re-write the whole config file in replacing all slashes?

​

I'm glad you brought up No-IP, I already purchased a domain name (i.e. Example.com ), I also purchased an Enhanced Dynamic DNS from them (one year sub).

​

I downloaded their program Dynamic Update Client (DUC), but it keeps asking me to provide a hostname which is example.ddns.net (the free one), I feel I'm missing something here, as I can't use my domain Example.com with their DUC program?

​

I also have a netgear router that has No-IP built-in (haven't configured it yet)

2
datascope11•

In the note, I was referring to if you are copying the folder path for your SSL certs from Windows Explorer, the slashes may be the wrong way? Can't be sure, it was a while ago and my memory is meh.

I use the free domain from No-Ip, and also I do not use their DUC program. I'm using the built in DDNS functionality in my router - suggest you check if yours has this - as it's one less piece of software to run on your server. It's super easy to use this, just put in your domain name, and then your No-Ip user name and password right into the router section. Then you don't need to run DUC.

1
soccerdave11•

Nice write up! A little more thorough than what I gave.

1
datascope11•

Lol, I just wrote up all the help you gave me a few months ago! Was hoping it could come in handy.

1
Ash_ValorOP•

Omg!! Thank you soo much! It worked!!

oh man you just held my hand and gave me baby steps! I can't thank you enough!

you were actually write in using forward slashes "/" instead of backslashes "\" as Nginx can't read those.

I finally finished it! Took so long! Much Thanks to u/soccerdave11 's pastebin file!

​

Just minor (very little) things I added:

- I adjusted Nginx conf file on line 69 as well for SSL Port 443 (was it needed?)

- You mentioned to open up port 80 on windows firewall, I also opened port 443, because canyouseeme.org was giving me errors on 443. (fixed)

- Under Settings>Ombi, I couldn't get away with using /example.ddns.net into the Base URL section (it might not be related, but gave me blank screen, and gave me a url with /example.ddns.net/example.ddns.net repeated). Instead I just added /Ombi, which made it look like /example.ddns.net/Ombi.

​

​

There's one more step I need to take to ensure security.

if i type myDomain.com:PORT (either using plex port, tautully or even radarr/sonarr) I can access them!

How can I close everything, so it's only internal and not exposed externally?

(also before doing nginx config file, when typing myDomain.com, it took me straight to my router)

​

Also, typing myDomain.com:5000 takes me to Ombi as well, is this correct? Thought the port would be hidden.

​

​

Again, thank you so much for this!

1
datascope11•

Regarding your additions.

- Nginx conf file on line 69 (in soccerdave11's pastebin as well as my conf file have SSL Port 443? I'm confused what you mean here.
- Port 443 was open by default in my Windows Firewall, so you are most likely correct that this is needed.
- Settings/Ombi/Base URL - My guide wasn't updated to reflect a change I made here. I only have / in that field. I did run into the double domain url that you mentioned, but forgot to update. Try it with just a /

Regarding your other issue, I do not experience that at all. I am unable to access Ombi, Plex, Tautulli or any other application through example.ddns.net:PORT. Tried all the ports including 5000 for Ombi. I can only reach Ombi (and only Ombi) through the url direclty.

Hope this helps. Good luck!

1
cadelle•

I used plexguide and it took care of all such security features. Not without some reading needed but a pretty good all in one. https://pgblitz.com/press/

1
Ash_ValorOP•

Yea I checked it out, but I thought they don't support windows, as i'm using windows 10 here

1
cadelle•

You can get Ubuntu from the windows store 😉

1