Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
policy route back to inside interface
Hi..
I' ve this situation with a FG_200B:
two policy routes that say:
1: from my_net (internal) to remote_net port 80 force traffic to internal interface with gateway x.x.x.x (that belongs to my_net)
2: from my_net (internal) to any port 80 force traffic to wanX with gateway y.y.y.y
then.. the second one works. the first one doesn' t...
I am able to ping the remote_net but not get to port 80.
is it possible do a rule like the 1st one that force traffic to the same interface from where the traffic comes from?
thanks
Oliver
6 REPLIES 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Interesting scenario that you have. Can you just do this with a static route on the FGT and use ICMP redirection to steer the clients to the other gw on my_net for that remote network ?
Or better yet, place static route entries on the clients that need to use the 2nd gateway. I don' t think PBR will allow you to redirect in the fashion that you want imho.
PCNSE
NSE
StrongSwan
PCNSE
NSE
StrongSwan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Emnoc,
thanks for your reply..
I cannot do it via a static route since policy routing is before static routes in ' order of operations' .. and then I' ve a default policy routes that force the whole http traffic to anther hop.
Btw if I set up a static route on the pc it works... just tried.
in cisco router the policy route back to the same interface as the source shold work.. I don' t understand why it doesn' t with FG.
Oliver
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
That should work if I' m understanding correctly. As long as you specify the destination address for the remote network and make it the first policy route.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
it doesn' t :(
I will try to debug a bit later..
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I cannot do it via a static route since policy routing is before static routes in ' order of operations' .. and then I' ve a default policy routes that force the whole http traffic to anther hop. Btw if I set up a static route on the pc it works... just tried. in cisco router the policy route back to the same interface as the source shold work.. I don' t understand why it doesn' t with FG. OliverCorrect PBR comes before static, but how about removing the PBR entry and replacing it with a static entry for a test.
PCNSE
NSE
StrongSwan
PCNSE
NSE
StrongSwan
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
ook,
I did a debug and I found the problem..
traffic was coming from internet, being natted with a VIP, redirected with a PBR to a cisco router (that had a vpn) and delivered to the host (on the other side of the vpn)
After that, the host was not able to send traffic back since the source was an internet address and thereforse the traffic was not going back through the vpn but to the 0.0.0.0 of the host.
I just enabled the nat on the vip address and everything works now.
thanks for the support guys.
Oliver
