Policybased routing not working as expected
I have some issues with a Fortigate 60C Build0762.
I am not able to make PolicyBasedRouting to work as I expected.
I have the following VLAN/Subnet:
[ul]
There is a switch in front so all Vlan is tagged on internal5.
Is seems like randomly however outbound trafic is routed over local gateway or via VPN. 2 devices connected to technical net (10.201.1.x) is routed differently.
I know that the NAT/DHCP on linknet could give some issues, but since the VPN is connected and stable (also after reboot) I presume this is not a problem.
Could anyone tell me what I am doing wrong?
config system interface
edit "internal5"
set vdom "vdom_THIS"
set ip 10.201.1.1 255.255.255.0
set allowaccess ping
set type physical
set listen-forticlient-connection enable
set snmp-index 20
next
edit "201 Router"
set vdom "vdom_THIS"
set mode dhcp
set distance 25
set allowaccess ping
set snmp-index 31
set interface "internal5"
set vlanid 201
next
edit "202 Directly"
set vdom "vdom_THIS"
set ip 10.201.202.1 255.255.255.0
set allowaccess ping
set device-identification enable
set snmp-index 32
set interface "internal5"
set vlanid 202
next
edit "203 ViaVPN"
set vdom "vdom_THIS"
set ip 10.201.203.1 255.255.255.0
set allowaccess ping
set snmp-index 33
set interface "internal5"
set vlanid 203
next
edit "GW_HQ"
set vdom "vdom_THIS"
set ip 10.0.0.2 255.255.255.255
set type tunnel
set remote-ip 10.0.0.1
set snmp-index 34
set interface "201 Router"
next
end
config router static
edit 1
set dst 10.203.107.0 255.255.255.0
set distance 3
set device "GW_HQ"
next
edit 4
set distance 25
set device "GW_HQ"
next
end
config router policy
edit 1
set input-device "203 ViaVPN"
set src "0.0.0.0/0.0.0.0"
set dst "192.168.11.0/255.255.255.0"
set output-device "201 Router"
next
edit 3
set input-device "203 ViaVPN"
set src "10.201.203.0/255.255.255.0"
set dst "10.201.202.0/255.255.255.0"
set output-device "202 Directly"
next
edit 4
set input-device "203 ViaVPN"
set src "10.201.203.0/255.255.255.0"
set dst "10.201.1.0/255.255.255.0"
set output-device "internal5"
next
edit 2
set input-device "203 ViaVPN"
set src "10.201.203.0/255.255.255.0"
set dst "0.0.0.0/0.0.0.0"
set output-device "GW_HQ"
next
edit 5
set input-device "202 Directly"
set src "10.201.202.0/255.255.255.0"
set dst "0.0.0.0/0.0.0.0"
set output-device "internal5"
next
end
