OPNsense Forum

English Forums => General Discussion => Topic started by: vikozo on August 03, 2017, 01:17:22 pm

Title: connect to Raspberries behind the FW
Post by: vikozo on August 03, 2017, 01:17:22 pm
Hello
i would like to Setup the Firewall to be able to use my Webserver in my Network.
on my ISP Router (a Fritzbox) it is possible to Expose a Server, so my Bind, web and Mail is working.
but now with the same WAN IP addressee I would like to Access my Raspbeeries too.
something like
raspberri01.kozo.ch = 192.168.10.7
raspberri02.kozo.ch = 192.168.10.8
raspberri03.kozo.ch = 192.168.10.9
should be accessible too, all off them would have a webgui too
would this be possible to configure like this?
have a nice day
vinc
Title: Re: connect to Raspberries behind the FW
Post by: bartjsmit on August 03, 2017, 07:38:15 pm
If your ISP only provides one WAN IP address, you have two options:

- you can run each Pi on its own HTTP port; e.g. 81, 82, 83
- you can run a reverse proxy which sets the webroot of each Pi to a directory

This is for public access. If you only want to access them from a few clients, consider setting up a VPN server on OPNsense.

Bart...
Title: Re: connect to Raspberries behind the FW
Post by: fabian on August 03, 2017, 07:51:44 pm
alternative: using hostnames for HTTP to forward the traffic to the right pi.
Title: Re: connect to Raspberries behind the FW
Post by: vikozo on August 10, 2017, 02:49:30 pm
Thanks for your Feedback.
i will buy the Hardware and start it
Title: Re: connect to Raspberries behind the FW
Post by: vikozo on August 18, 2017, 08:08:10 am
alternative: using hostnames for HTTP to forward the traffic to the right pi.
Thanks for your feedback
is there a Howto/tutorial to read?
have a nice day
vinc
Title: Re: connect to Raspberries behind the FW
Post by: fabian on August 18, 2017, 09:37:47 pm
This is an HAProxy ACL so you will need to search for a HAProxy tutorial.