Hey Guys,
Is there a way to do URL based routing on the FGT? FortiOS v5....
We have two ISP lines and would like traffic to certain websites to only go via the one line.
Thanks in advance!
theG
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.
theG wrote:You can use Policy routesHey Guys,
Is there a way to do URL based routing on the FGT? FortiOS v5....
We have two ISP lines and would like traffic to certain websites to only go via the one line.
Thanks in advance!
theG
Fortigate <3
BrUz wrote:You can use Policy routes
Hi BrUz,
Policy routes only allows me to add destination IP's...or am I missing something? I need to be able to use the URL instead....?
theG wrote:Policy routes only allows me to add destination IP's...or am I missing something? I need to be able to use the URL instead....?
Static or Policy routing is likely the closest thing to crafting something close to what you want, though you'll have to convert the FQDN of those urls into their IP address equivalent.
If you are adamant about a possible "work-around" solution, maybe designate a TCP port outside the normal standard range, say something like 65480 and 65443, set a policy route that routes that traffic out the desired port, then create a VIP (inside->WAN) that "converts" those ports back into the normal expect ports. So in theory, accessing http://www.google.com:85480 should be directed out the correct WAN port on port 80. Very hackish. lol.
Note I haven't tried the above and don't even know if it will work.
Personally, if the original purpose of the request is to access certain websites on the faster WAN connection, you may be better off just setting up ECMP Load Balancing (weighted Load Balance) favouring the faster connection.
NSE4/FMG-VM64/FortiAnalyzer-VM/6.0 (FWF30E/FW92D/FGT200D/FGT101E/FGT81E)/ FAP220B/221C
Yes, URL-based routing exists.
http://kb.fortinet.com/kb/documentLink.do?externalID=FD36819
In my testing step 6 is not required, I am unsure of the need for that.
awesome :) will def give this a look for future setups.
Thanks Dirty_Wizard!
never tried, feels pretty hacky and i wonder about this line
Defined URL needs to be unique and non-existing on the real server otherwise users will be served by replacement block message.
that feels, like it is still only hostname routing and translating to IP, which you can do with policy routes and FQDN addresses
FWIW: There's not such thing as URL based routing. A URL has to be resolved and then routed at a layer3 address by a layer3 device ( router/firewall )
PCNSE
NSE
StrongSwan
1. Create a FQDN object for the URL
2. Create a policy using the previously created FQDN and choose the required WAN interface.
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 |
---|---|
1517 | |
1013 | |
749 | |
443 | |
209 |
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.