Skip to main content
danishm99
New Member
Jun 9, 2022 6:34 PM UTC
Question

Unable to access virtual service from internal IP's

Hi Experts,

 

I have configured a virtual service on Fortigate in same IP range as of outside interface. Now I have a requirement to access the Virtual server IP from same subnet servers as of backend server on virtual server.

 

Is this possible, if so how can I achieve this.

 

I am aware of hairpin NAT in case of VIP but this is a different scenario where I want to access virtual server IP. Please help

2 replies

AEK
SuperUser
SuperUser
Jun 9, 2022 7:43 PM UTC

Suppose that internal subnet is 10.0.0.0/24, back-end server is 10.0.0.1 and VIP is 172.16.0.1.

I think the hosts from same subnet as back-end server will fall in some L3 related issue:

- Some host 10.0.0.2 tries to reach 172.16.0.1

- Packet reaches 10.0.0.1 through the VIP

- 10.0.0.1 replies to 10.0.0.2

- since it is on the same subnet, 10.0.0.2 receives reply directly from 10.0.0.1, not from 172.16.0.1

- Result : 10.0.0.2 drops the packet since it is unsolicited connection

 

So I thinks the only way for hosts from 10.0.0.0/24 to access 10.0.0.1 is to not use the VIP.

 

AEK
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT