Hi,
I have an internal web server with a fixed IP.
The external access is provided by Fortinet router, with only one public IP for the whole network.
I want to allow external access to that server (and after multiple servers) with a DMZ and started to configure a DMZ interface, a virtual IP and corresponding policies as shown here:
http://docs-legacy.fortinet.com/fos50hlp/50/index.html#page/FortiOS%205.0%20Help/objects.067.08.html
However I have some questions:
- Is that method the good one for my use case ?
- When creating the virtual IP address, I have to put the external IP address. I just have one, so how can I manage the access to multiple internal web servers ?
Many thanks,
Nominating a forum post submits a request to create a new Knowledge Article based on the forum post topic. Please ensure your nomination includes a solution within the reply.
syldor wrote:Yes- Is that method the good one for my use case
Use different ports is the only option- When creating the virtual IP address, I have to put the external IP address. I just have one, so how can I manage the access to multiple internal web servers ?
Thanks gschmitt.
So it looks like I have to do both port forwarding and DMZ interface, but port forwarding was implicit in the video, when setup HTTP Virtual IP, I can put any port instead of 80:80.
syldor wrote:It's quite easy, go to Policy&Objects > Objects > Virtual IPsSo it looks like I have to do both port forwarding and DMZ interface, but port forwarding was implicit in the video, when setup HTTP Virtual IP, I can put any port instead of 80:80.
Create a New virtual IP
External IP Address: YourExternalIP
Mapped IP Address: YourInternalServerIP
Port Forwarding checked
Protocol TCP (in case of webservers)
External Service Port 8080
Map To Port 80
Create a normal wan to internal policy from all to this VIP
Now if you try to access YourExternalIP:8080 you get forwarded to YourInternalServerIP:80
there is no DMZ interface on my fortinet unit. My webserver is connected to a switch that is connected to my fortinet unit. Should I use one of the unattributed physical interfaces and physically connect my switch to it, and route data from the DMZ to the web server on my switch ?
You got two options:
Use any free single interface on the FortiGate. If you are in Switch Mode (all internal ports are connected) you can switch to Interface Mode and seperate them.
If your switch can do VLANs you can create a VLAN Interface on your existing FortiGate interface. (System > Network > Interface - Create New; VLAN; enter VLAN ID)
On the Switch simply add the port as a tagged port and the port the Server is connected to as an untagged port (or tagged if you enable VLAN on the NIC)
gschmitt i dont get the second option.
When you say "add the port as a tagged port", which port are you talking about ?
And for the first option, once in interface mode, I have to configure access from my DMZ interface to internet no ? So with a different public IP than the one of my current external interface ?
Thanks
syldor wrote:The switch INTERFACE.gschmitt i dont get the second option.
When you say "add the port as a tagged port", which port are you talking about ?
And for the first option, once in interface mode, I have to configure access from my DMZ interface to internet no ? So with a different public IP than the one of my current external interface ?
You can NAT different subnets (DMZ and internal) to wan on the same public IP if you want to
Another question:
there is no DMZ interface on my fortinet unit. My webserver is connected to a switch that is connected to my fortinet unit.
Should I use one of the unattributed physical interfaces and physically connect my switch to it, and route data from the DMZ to the web server on my switch ?
Edit: talk about the switch
Hi Team
I have an issue doing Virtual IP on fortigate version 7.2.4.
does vip work on that version?
Select Forum Responses to become Knowledge Articles!
Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.
User | Count |
---|---|
1721 | |
1098 | |
752 | |
447 | |
234 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.