Welcome! Log In Create A New Profile

Advanced

NGINX only for forwarding to LAN

December 11, 2019 07:42AM
Hi@all,

first of all a "hello" to the round. I am new here :-)

I want to set up NGINX on my firewall/router (IPFire). But only as reverse proxy. There are no websites running on the IPFire.

The IP-Fire has a fixed IP on the WAN interface and can be reached from the Internet.

[IPFire]
WAN: 10.20.30.40
LAN: 192.168.xx.254

Behind the firewall, i.e. in the LAN, there are several web servers each running on the same port (80) but on different physical servers:

[Server1]
LAN: 192.168.xx.5

[Server2]
LAN: 192.168.xx.6

Furthermore I have an external, official domain (mydomain.de). On the external root server I have created two subdomains which I redirect to the IPFire's fixed IP:

gw.mydomain.com -> http://10.20.30.40
cloud.mydomain.com -> http://10.20.30.40

NGINX on the IPfire should now forward all requests directed to gw.mydomain.de to the server 192.168.xx.5 (and turück)

and requests addressed to cloud.mydomain.com to LAN: 192.168.xx.6

As far as I know the header has to be rewritten so that the remote client thinks it is communicating with xxxx.mydomain.de and not with 192.168.xx.y.

I tried for hours yesterday to get this with examples from the internet but nothing worked.

Does this work at all? Can anyone help me?

best regards
pixel24
Subject Author Posted

NGINX only for forwarding to LAN

pixel24 December 11, 2019 07:42AM

Re: NGINX only for forwarding to LAN

Francis Daly December 11, 2019 03:22PM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 11:02AM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 11:22AM

Re: NGINX only for forwarding to LAN

Francis Daly December 12, 2019 11:38AM

Re: NGINX only for forwarding to LAN

pixel24 December 12, 2019 01:12PM

Re: NGINX only for forwarding to LAN

pixel24 December 13, 2019 02:39AM

Re: NGINX only for forwarding to LAN

Francis Daly December 13, 2019 08:24AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 71
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready