Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy

Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy

Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago - last edited a week ago
Model: OC200  
Hardware Version: V2
Firmware Version: 5.14.32.56

I need a way to forward 443 and 80 to my server!

 

From what I am reading on the forum the router (er605) automatically forwards 443 and 80 to the controller if not used in standalone mode.

Is this true? This seems like a supersilly implementation! Why did I spend 100$ on a piece of HW only to not be able to host anything using https and hostname.

DNS only resolves to an ip and I cant tell everyone to type in mydoman:specialPort.

 

Is the way to use the software controller instead and place it downstream from a reverse proxy?

That way all the 443 and 80 trafic would get redirected to a machine that has both the reverse proxy and the controller.

 

Any Ideas for workarounds of this stupid implementation?

  0      
  0      
#1
Options
1 Accepted Solution
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy-Solution
a week ago - last edited a week ago

  @KosmosCat 

 

Look loke you have typed wrong ip address smiley 169 should be 168

 

Recommended Solution
  0  
  0  
#9
Options
10 Reply
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @KosmosCat 

 

You shouldn't believe everything you read, there are many who don't know what they're talking about, so what you say is not true, you can use port 443 and port 80 for whatever you want.

  0  
  0  
#2
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @MR.S 

 

Wow, thanks for replying!
I am very keep on learning more about where I am going wrong.
Will divide subsequent post because I have trouble with posting images and alike

  0  
  0  
#3
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @KosmosCat 

 

port NAT is quite simple, it of course requires that your router has a public wan ip

 

here is an example of port 80

 

 

  0  
  0  
#4
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @MR.S 

 

 

I have the setup

modem-er605-TL1008p-{oc200, 2x EAP653, nginxServer}

 

The controller access config is like below.

 

however my router redirects me to 192.168.0.2 which is my controller.

  0  
  0  
#5
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

 

 

Forwarding on 8443 -> 443 works fine and i reach my proxyServer that way but I want to be able to go to to mydomain without specifying a special port

  0  
  0  
#6
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @KosmosCat 

 

and if you go to 443 you get to the controller 192.168.0.2 ?

 

  0  
  0  
#7
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @MR.S 

 

Not so easy to see.

From what I understand the OC200 does not support ssh so I cannot open a shell on the receiving end.

If i change the access config to be 443 I get redirected to the controller login page.

I did get to the shell on the er605 but this does not make me much wiser except that redirect_https out to be on.
 

#show ip http configuration 

http_port:                 80

redirect_https:            off

https_port:                443

enable_https:              on

web_timeout:               6

 

#show nat virtual-server

---------------------------------------------------------------------------------------------------

ID     Name      Interface       Exteranl Port   Internal Port   Internal Server Ip     Protocol

---------------------------------------------------------------------------------------------------

---------------------------------------------------------------------------------------------------

2      xxxxxx WAN1            8443            443             192.168.0.9            ALL     

---------------------------------------------------------------------------------------------------

3      xxxx WAN1            443             443             192.169.0.9            ALL     

---------------------------------------------------------------------------------------------------

 

❯ sudo tcpdump -i eth0 port 443 -nn
This yields nothing when i curl mydomain with http (sorry that this forum does not allow me to format as a link)

even if the host was correctly resolved.



Everything works as expected if i visit my domain via port 8443.

But like I stated above, that doesnt really cut it.

 

Again, thanks for taking your time.

  0  
  0  
#8
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy-Solution
a week ago - last edited a week ago

  @KosmosCat 

 

Look loke you have typed wrong ip address smiley 169 should be 168

 

Recommended Solution
  0  
  0  
#9
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @MR.S 

OMG! What a silly fool I am!

 

I have completely overlooked this. Been scratching my head all day and it was staring me straight in the face all the time.

 

Thank you for taking your time 

  0  
  0  
#10
Options
Re:Exposing my port 80 and 443 via the Omada OC200 Hardware Controller for hosting Nginx reverse proxy
a week ago

  @KosmosCat 

 

yes

  0  
  0  
#11
Options