config firewall vip edit " WorkingServer" set extip ##.###.##.#2 set extintf " port12" set mappedip ###.##.##.100 next edit " NewServer" set extip ##.###.##.#3 set extintf " port12" set mappedip ###.##.##.160 next end config firewall policy edit ## set srcintf " WAN" set dstintf " LAN" set srcaddr " all" set dstaddr " WorkingServer" set action accept set schedule " always" set service " HTTP" " HTTPS" set logtraffic enable next edit ## set srcintf " WAN" set dstintf " LAN" set srcaddr " all" set dstaddr " NewServer" set action accept set schedule " always" set service " HTTP" " HTTPS" set logtraffic enable nextMany thanks gR
config firewall vip edit " WorkingServer" set extip ##.###.##.#2 set extintf " port12" set mappedip ###.##.##.100 next edit " NewServer" set extip ##.###.##.#3 set extintf " port12" set mappedip ###.##.##.160 next endThose ending digits don' t match:
Working Webserver IP - ##.###.###.91/29 New Webserver IP - ##.###.###.92/29
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
ABB@ProBiblio Fortigate 200D (slave master)
diag deb ena diag sniffer packet any ' icmp and host x.x.x.160' 4 0 a diag sniffer packet any ' icmp and host y.y.y.92' 4 0 a(just learned about the ' a' option - current absolute time stamp). Then of course, ping the external WAN IP.
ORIGINAL: ede_pfau BTW: if a VIP is in place reply traffic from the internal host will automatically be source NATted to the external address. And even traffic originating from the internal server will be source NATted to it' s external address due to the VIP mapping. A VIP is much more than e.g. an IP pool.I thought so as well, but I figured overkill couldn' t hurt. At least for a test...
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com
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 |
---|---|
1748 | |
1114 | |
764 | |
447 | |
241 |
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 2025 Fortinet, Inc. All Rights Reserved.