Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
opnsense newbie question DMZ NAT
« previous
next »
Print
Pages: [
1
]
Author
Topic: opnsense newbie question DMZ NAT (Read 1895 times)
pixelmeister
Newbie
Posts: 6
Karma: 1
opnsense newbie question DMZ NAT
«
on:
August 21, 2021, 01:20:41 am »
Hi,
I was using different gear since the last 10 years and wanted to switch to opensource.
So I am familiar to general network stuff, linux and servers, but I am totaly confused, by the different
vocabs/meanings
. So far most things I allready figured out (VLANs/LAN/DHCP/...)
So most network parts are running
fine - Thank you opnsense Team!
But I couldn't get my DMZ setup running, searched the Internet and the forum but couldn't find an simple example that would fit. Guess I am just not seeing it.
I have one public IP 1.2.3.4 <-> opnsense with 5 nics, WAN, LAN1,LAN2,LAN3 and DMZ
the DMZ uses 10.0.10.1 there are 2 servers hosting 3 services
10.0.10.10 hosts 2 webservers
Port 80 a.mydomain.com
Port 88 b.mydomain.com
10.0.10.11 hosts 1 webserver
port 8000 c.mydomain.com
I have absolutely no clue where to start, I tried to follow lots of tutorials but had no success.
I am unsure what NAT to use and in which field where to but what values.
Tried to make ALIASES for external IP, internal IP and the subdomains but failed.
Even if I get just one service back up running I would be glad :-)
best regards
Antonio
Logged
mircolino
Newbie
Posts: 23
Karma: 2
Re: opnsense newbie question DMZ NAT
«
Reply #1 on:
August 21, 2021, 07:34:41 am »
The following should work:
Firewall: Aliases
Name Type Content
--------- ------- ----------
WEB1_HOST Host(s) 10.0.10.10
WEB1_PORT Port(s) 80,88
WEB2_HOST Host(s) 10.0.10.11
WEB2_PORT Port(s) 8000
Firewall: NAT
Interface Protocol Source Port Destination Port NAT IP Ports
--------- -------- ------ ---- ----------- --------- --------- ---------
WAN IPv4 TCP * * WAN address WEB1_PORT WEB1_HOST WEB1_PORT
WAN IPv4 TCP * * WAN address WEB2_PORT WEB2_HOST WEB2_PORT
Firewall: Rules: WAN
Direction Protocol Source Port Destination Port Gateway Schedule
--------- -------- ------ ---- ----------- --------- ------- --------
In IPv4 TCP * * WEB1_HOST WEB1_PORT * *
In IPv4 TCP * * WEB2_HOST WEB2_PORT * *
«
Last Edit: August 21, 2021, 04:22:36 pm by mircolino
»
Logged
pixelmeister
Newbie
Posts: 6
Karma: 1
Re: opnsense newbie question DMZ NAT
«
Reply #2 on:
August 21, 2021, 10:34:47 am »
Thank you very much!
Allready started to test, ...
will post in the evening when I have success
Logged
pixelmeister
Newbie
Posts: 6
Karma: 1
Re: opnsense newbie question DMZ NAT
«
Reply #3 on:
August 24, 2021, 09:45:42 pm »
Thank you very much!
Just did it for the first server
For other opnsense newbees
Keep in mind that ALL changes need to be applied!
AND in some window masks - you have to active the rule - if not ticked before!
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
21.7 Legacy Series
»
opnsense newbie question DMZ NAT