Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Potato168
New Contributor II

Web cache for my HTTP website is not working

Hi all,

 

I just have a very simple port portward config for my wan:8888 to my Lan Web server:80

 

There is nothing special on that webserver, what just a page to say "Hi". Even is no HTML coding.

 

My Firewall policy for this server like below:

 

config firewall policy
edit 13
set name "Incoming-NAS-Web"
set srcintf "virtual-wan-link"
set dstintf "Lan"
set action accept
set srcaddr "all"
set dstaddr "VIP-NAS-T8888"
set schedule "always"
set service "ALL"
set utm-status enable
set inspection-mode proxy
set ssl-ssh-profile "CA"
set logtraffic all
set webcache enable
next
end

 

The port forward is:

 

config firewall vip
edit "VIP-NAS-T8888"
set mappedip "172.30.0.2"
set extintf "wan1"
set portforward enable
set extport 8888
set mappedport 80
next
end

 

Why my webcache keep 0 hit in this case?

 

123123.png

2 REPLIES 2
kaman
Staff
Staff
Potato
New Contributor III

But the KB you provide - 

Reverse proxy configuration

config firewall vip

edit Reverse_proxy_VIP

set extintf port2

set type static-nat

set extip 192.168.10.1

set mappedip 172.10.20.30

end

 

config firewall policy

edit 0

set srcintf port2

set srcaddr all

set dstintf port1

set dstaddr Reverse_proxy_VIP

set schedule always

set service HTTP HTTPS

set action accept

set webcache enable

set webcache-https ssl-server

end

 

That KB mentions the same way for the web cache purpose.

The only difference is HTTP and HTTPS.

Announcements
Check out our Community Chatter Blog! Click here to get involved
Labels
Top Kudoed Authors