In reference to this post; http://socpuppet.blogspot.com/2014/07/using-usb-thumb-drive-with-cisco-isr.html I found the same usbflash from patriot that was giving me mounting problems, actually works on a cisco 887VA.
c887VA;show ver | inc usb
3633136K bytes of USB Flash usbflash0 (Read/Write)
dir usbflash0:
Directory of usbflash0:/
1 -rw- 4096 Jul 31 2014 00:48:22 +02:00 ._.Trashes
2 drw- 0 Jul 31 2014 00:48:22 +02:00 .Trashes
3 drw- 0 Jul 31 2014 00:48:22 +02:00 .fseventsd
7 drw- 0 Jul 31 2014 00:48:26 +02:00 .Spotlight-V100
7788273664 bytes total (7787438080 bytes free)
another interesting, the dir command show 2 partitions devices.
NOTE: also all usb flash did not work and generate the following error in the logs;
The top two devices did not work.
Ken Felix
NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
Wednesday, August 13, 2014
NAT-SymDB: DB is either not enabled or not initiated.
I worked on a SP 887VA cisco ADSL router and would like to share a problem that I discovered with SNAT. The following error was showing in the logs and when debug nat det was enabled
NAT-SymDB: DB is either not enabled or not initiated.
A quick google search showed numerous others with the same issues. I still don't understand what's changed with NAT in 15.1.X code on these , but it looks like the classic ip nat inside | outside statements are no longer required.
Here's the cfg ;
interfaces;
Current configuration : 138 bytes
!
interface Vlan1
ip address 192.168.188.1 255.255.255.0
no ip redirects
no ip proxy-arp
ip nat enable
ip virtual-reassembly in
end
Current configuration : 308 bytes
!
interface Dialer0
ip address negotiated
ip flow ingress
ip nat enable
encapsulation ppp
no ip route-cache cef
ip tcp header-compression
ip tcp adjust-mss 1450
dialer pool 1
dialer-group 1
ppp authentication chap callin
ppp chap hostname adslusernamehere
ppp chap password 0 adslpassswordhere
no cdp enable
end
!
interface ATM0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip flow ingress
no atm ilmi-keepalive
end
!
interface ATM0.1 point-to-point
ip flow ingress
pvc 8/35
encapsulation aal5snap
protocol ppp dialer
dialer pool-member 1
!
end
Initially I had ip nat inside and outside under the vlan1 and dialer 0 interfaces. That didn't work. So here's the finally NAT configuration;
access-list 100 remark LAN local ip_address for allowances of nats
access-list 100 permit ip 192.168.188.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!
!
ip nat source list 100 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
!
int vlan 1
ip nat enable
int dialer 0
ip nat enable
end
the cisco model type;
Router#show ver
Router#show version
Cisco IOS Software, C880 Software (C880DATA-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Wed 21-Mar-12 00:27 by prod_rel_team
ROM: System Bootstrap, Version 12.4(22r)YB5, RELEASE SOFTWARE (fc1)
Router uptime is 4 minutes
System returned to ROM by power-on
System restarted at 09:45:34 UTC Wed Aug 13 2014
System image file is "flash:c880data-universalk9-mz.151-4.M4.bin"
Last reload type: Normal Reload
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 887VA (MPC8300) processor (revision 1.0) with 236544K/25600K bytes of memory.
Processor board ID FCZ1646XXXX
1 DSL controller
1 Ethernet interface
4 FastEthernet interfaces
1 ATM interface
1 Virtual Private Network (VPN) Module
256K bytes of non-volatile configuration memory.
125496K bytes of ATA CompactFlash (Read/Write)
License Info:
License UDI:
-------------------------------------------------
Device# PID SN
-------------------------------------------------
*0 CISCO887VA-K9 FCZ16469XXXX
License Information for 'c880-data'
License Level: advsecurity Type: Permanent
Next reboot license Level: advsecurity
Configuration register is 0x2102
Ken Felix
NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
NAT-SymDB: DB is either not enabled or not initiated.
A quick google search showed numerous others with the same issues. I still don't understand what's changed with NAT in 15.1.X code on these , but it looks like the classic ip nat inside | outside statements are no longer required.
Here's the cfg ;
interfaces;
Current configuration : 138 bytes
!
interface Vlan1
ip address 192.168.188.1 255.255.255.0
no ip redirects
no ip proxy-arp
ip nat enable
ip virtual-reassembly in
end
Current configuration : 308 bytes
!
interface Dialer0
ip address negotiated
ip flow ingress
ip nat enable
encapsulation ppp
no ip route-cache cef
ip tcp header-compression
ip tcp adjust-mss 1450
dialer pool 1
dialer-group 1
ppp authentication chap callin
ppp chap hostname adslusernamehere
ppp chap password 0 adslpassswordhere
no cdp enable
end
!
interface ATM0
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
ip flow ingress
no atm ilmi-keepalive
end
!
interface ATM0.1 point-to-point
ip flow ingress
pvc 8/35
encapsulation aal5snap
protocol ppp dialer
dialer pool-member 1
!
end
Initially I had ip nat inside and outside under the vlan1 and dialer 0 interfaces. That didn't work. So here's the finally NAT configuration;
access-list 100 remark LAN local ip_address for allowances of nats
access-list 100 permit ip 192.168.188.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!
!
ip nat source list 100 interface Dialer1 overload
ip route 0.0.0.0 0.0.0.0 Dialer1
!
int vlan 1
ip nat enable
int dialer 0
ip nat enable
end
the cisco model type;
Router#show ver
Router#show version
Cisco IOS Software, C880 Software (C880DATA-UNIVERSALK9-M), Version 15.1(4)M4, RELEASE SOFTWARE (fc1)
Technical Support: http://www.cisco.com/techsupport
Copyright (c) 1986-2012 by Cisco Systems, Inc.
Compiled Wed 21-Mar-12 00:27 by prod_rel_team
ROM: System Bootstrap, Version 12.4(22r)YB5, RELEASE SOFTWARE (fc1)
Router uptime is 4 minutes
System returned to ROM by power-on
System restarted at 09:45:34 UTC Wed Aug 13 2014
System image file is "flash:c880data-universalk9-mz.151-4.M4.bin"
Last reload type: Normal Reload
This product contains cryptographic features and is subject to United
States and local country laws governing import, export, transfer and
use. Delivery of Cisco cryptographic products does not imply
third-party authority to import, export, distribute or use encryption.
Importers, exporters, distributors and users are responsible for
compliance with U.S. and local country laws. By using this product you
agree to comply with applicable laws and regulations. If you are unable
to comply with U.S. and local laws, return this product immediately.
A summary of U.S. laws governing Cisco cryptographic products may be found at:
http://www.cisco.com/wwl/export/crypto/tool/stqrg.html
If you require further assistance please contact us by sending email to
export@cisco.com.
Cisco 887VA (MPC8300) processor (revision 1.0) with 236544K/25600K bytes of memory.
Processor board ID FCZ1646XXXX
1 DSL controller
1 Ethernet interface
4 FastEthernet interfaces
1 ATM interface
1 Virtual Private Network (VPN) Module
256K bytes of non-volatile configuration memory.
125496K bytes of ATA CompactFlash (Read/Write)
License Info:
License UDI:
-------------------------------------------------
Device# PID SN
-------------------------------------------------
*0 CISCO887VA-K9 FCZ16469XXXX
License Information for 'c880-data'
License Level: advsecurity Type: Permanent
Next reboot license Level: advsecurity
Configuration register is 0x2102
Ken Felix
NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
Monday, August 11, 2014
TIP: Firewall Policys storage area Fortigate
The fortigate firewall has all firewall policies stored within the dir /data/config you can copy the gzip compress file for acrhive or delivery to auditors or for tracking. Anytime there's a change to the firewall policies, this file will be update under the /data/config directory.
NOTE: Firewall policies are held by vdom:name and type ( ipv4 or ipv6 )
You can mount a USB thumb drive and backup just the firewall policies without backing up the rest of the configuration.
Ken Felix
A NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
NOTE: Firewall policies are held by vdom:name and type ( ipv4 or ipv6 )
You can mount a USB thumb drive and backup just the firewall policies without backing up the rest of the configuration.
Ken Felix
A NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
SSLVPN portal is suspect for session inspection also
Somebody contact me offline about this earlier posting of mine ( http://socpuppet.blogspot.com/2014/08/your-fortigate-is-not-as-secured-as-you.html ) and ask me my thoughts about how secure is the fortigate sslvpn portal from session sniffing.
Will I hate to say; " it's not secured as what we may think" and is vulnerable to the same issues as indicated.
As in the earlier post, the private-key is accessible on all fortigate firewalls & by any administrator , & regardless of his roles. Unless you prevented that person from having access to the file_systems, he has access to critical certificate and private-key information. This would hold true to any https webserver also ( windows,apache,ngnix,etc...)
One of the earlier other question ask by a former colleague of mine; " how did I determine that the private-key matches the ssl website certificate "?
That's easy in the /tmp directory that we seen earlier, we only need to gather the certificate and the private-key and do a match comparison. This is a simple & trivial task to accomplish. Here's the most easiest way to do this;
1: Use the SSL cert/key matcher website located at the following URL;
https://www.sslshopper.com/certificate-key-matcher.html
Just paste the suspected certificate and private-key in the respective boxes.
i.e ( matching the user_server.crt and user_server.key that gathered from the /tmp directory )
NOTE: The above shows the two are a match between certificate and private-key so we know the private-key that we have acquired is useable by that particular ssl server.
2: The next method is done by using the common openssl utility, and by comparing the modulus from the x.509 certificate and rsa key.
e.g ( matching a fortigate sslvpn portal certificate )
The last step; " is now to pull the certificate from the "actual sslvpn portal" and compare it " to our findings.
( example1 using openssl )
openssl s_client -showcerts -connect x.x.x.x:10443
( example2 doing it realtime against a sslvpn portal server )
NOTE: As you can clearly see, the certificate matches the sslmatch website and we know the private-key is the correct private key for this certificate.
So when you put all of this together, and we now capture SSLVPN portal traffic. We will find that we can also decrypt this traffic just as easy as the firewall administration traffic.
I should mention few more options for reducing these types risks.
1: ensure that the clients are only using strong ciphers
You should use a test ciphers scripts or openssl for testing that your ciphers that the server offers. The clients will negotiate, based on this offered listing and what that webrowser is actually capable of. Most modern browser supports strong ciphers. ( IE9+, Firefox/Chrome, )
2: ensure the clients are using ephemeral session keys
This is known as PFS perfect forward secrecy. I will speak more about this in the future and how all website should be using this. This is typically not in your control since you can't control the client's browser support and it's not 100% clear if all fortigate supports ephemeral sessions keys. You test cipher will show what ciphers it does supports.
3: Disable SSLVPN portal access in it's entirely
Okay not ideal, but if you remove the temptation, then you remove the risk per-se. I worked in financial & banking sector for a while , and that was one way we removed certain risks.
Good CSO/CISOs would determine what risks if any with regards to forward facing application servers. And than make a determination of allowing these types of access and by what means.
4: Setup a IPSEC access 1st access w/certificates, and then SSLVPN access portal server
Okay not easy to deploy, adds more complexity and still does nothing to prevents the capturing of HTTPS traffic if your private-key is compromised. This approach ensure the clients are encrypted with a symmetrical encryption and then path between the IPSEC server to the SSLVPN firewall is the only path at risk. With the used of certificate based authentication, we can revoke an potential compromised clients machine or if the users leaves the organization.
NOTE: Ideally you could try to hack up a client-access that comes thru via IPSEC to the fortigate and then access to SSLVPN fortigate , but I never looked at what's all involved for accomplishing this .Maybe one day in the future I will stop being lazy and figure this out ;)
Conclusion
Now that we know our SSL traffic regardless of admin or sslvpn-portal , is exposed for session sniffing. The reason for bring these 2 posts up, is to ensure that you know your are not really secured.
If agencies like FBI/CIA/NSA and other agencies both domestic or foreign, has access to your data. Than you are potentially exposed. This is regardless of a sslvpn firewall or a email business server.
What this means:
1: If PFS is not enable by some type of ephemeral-key-creation, anybody that has access to the private-key has access to you data ( period ! )
2: You have no control as to what an organization does with the private-keys for any SSL based services
3: A disgruntle employee could sniff your password or other sensitive data, and sale this information off to the highest bidder
4: A IT security administrator could be bribed or trick with providing this data ( social engineering or lack of understanding SSL encryption & protection of the private-key )
5: The government demands via a "warrants or subpeona" access to the private-key for your system
( yes, this has happen do you trust your government ? )
6: A business organization uses the private-server key for decrypting traffic for SSL deep inspection of content ( do you trust your external organizations? google?yahoo? etc...... I sure as hell don't ! )
Keep in mind, without protection, a agency like NSA could capture your data today and brute-force or gather the private-key later , and now have access to both ; past , current and future data, that used by that private-key.
If you don't believe me, just contact them and ask them ;)
Yes, just the merge fact that your sslvpn session was not secured with a strong crypto methods and lacks supports of ephemeral key generation. This means you are Potentially compromised. And then you factor in that the private-key is readable by anybody who gains access to it.
One thing we should have learned from Eric Snowden, These peoples are not your friend;
For more scary reading do a "google" search on the USA lead prism system and the goals of internet traffic capture & inspection.
Ken Felix
A NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
Will I hate to say; " it's not secured as what we may think" and is vulnerable to the same issues as indicated.
As in the earlier post, the private-key is accessible on all fortigate firewalls & by any administrator , & regardless of his roles. Unless you prevented that person from having access to the file_systems, he has access to critical certificate and private-key information. This would hold true to any https webserver also ( windows,apache,ngnix,etc...)
One of the earlier other question ask by a former colleague of mine; " how did I determine that the private-key matches the ssl website certificate "?
That's easy in the /tmp directory that we seen earlier, we only need to gather the certificate and the private-key and do a match comparison. This is a simple & trivial task to accomplish. Here's the most easiest way to do this;
1: Use the SSL cert/key matcher website located at the following URL;
https://www.sslshopper.com/certificate-key-matcher.html
Just paste the suspected certificate and private-key in the respective boxes.
i.e ( matching the user_server.crt and user_server.key that gathered from the /tmp directory )
NOTE: The above shows the two are a match between certificate and private-key so we know the private-key that we have acquired is useable by that particular ssl server.
2: The next method is done by using the common openssl utility, and by comparing the modulus from the x.509 certificate and rsa key.
e.g ( matching a fortigate sslvpn portal certificate )
The last step; " is now to pull the certificate from the "actual sslvpn portal" and compare it " to our findings.
( example1 using openssl )
openssl s_client -showcerts -connect x.x.x.x:10443
( example2 doing it realtime against a sslvpn portal server )
NOTE: As you can clearly see, the certificate matches the sslmatch website and we know the private-key is the correct private key for this certificate.
So when you put all of this together, and we now capture SSLVPN portal traffic. We will find that we can also decrypt this traffic just as easy as the firewall administration traffic.
I should mention few more options for reducing these types risks.
1: ensure that the clients are only using strong ciphers
You should use a test ciphers scripts or openssl for testing that your ciphers that the server offers. The clients will negotiate, based on this offered listing and what that webrowser is actually capable of. Most modern browser supports strong ciphers. ( IE9+, Firefox/Chrome, )
2: ensure the clients are using ephemeral session keys
This is known as PFS perfect forward secrecy. I will speak more about this in the future and how all website should be using this. This is typically not in your control since you can't control the client's browser support and it's not 100% clear if all fortigate supports ephemeral sessions keys. You test cipher will show what ciphers it does supports.
3: Disable SSLVPN portal access in it's entirely
Okay not ideal, but if you remove the temptation, then you remove the risk per-se. I worked in financial & banking sector for a while , and that was one way we removed certain risks.
Good CSO/CISOs would determine what risks if any with regards to forward facing application servers. And than make a determination of allowing these types of access and by what means.
4: Setup a IPSEC access 1st access w/certificates, and then SSLVPN access portal server
Okay not easy to deploy, adds more complexity and still does nothing to prevents the capturing of HTTPS traffic if your private-key is compromised. This approach ensure the clients are encrypted with a symmetrical encryption and then path between the IPSEC server to the SSLVPN firewall is the only path at risk. With the used of certificate based authentication, we can revoke an potential compromised clients machine or if the users leaves the organization.
NOTE: Ideally you could try to hack up a client-access that comes thru via IPSEC to the fortigate and then access to SSLVPN fortigate , but I never looked at what's all involved for accomplishing this .Maybe one day in the future I will stop being lazy and figure this out ;)
Conclusion
Now that we know our SSL traffic regardless of admin or sslvpn-portal , is exposed for session sniffing. The reason for bring these 2 posts up, is to ensure that you know your are not really secured.
If agencies like FBI/CIA/NSA and other agencies both domestic or foreign, has access to your data. Than you are potentially exposed. This is regardless of a sslvpn firewall or a email business server.
What this means:
1: If PFS is not enable by some type of ephemeral-key-creation, anybody that has access to the private-key has access to you data ( period ! )
2: You have no control as to what an organization does with the private-keys for any SSL based services
3: A disgruntle employee could sniff your password or other sensitive data, and sale this information off to the highest bidder
4: A IT security administrator could be bribed or trick with providing this data ( social engineering or lack of understanding SSL encryption & protection of the private-key )
5: The government demands via a "warrants or subpeona" access to the private-key for your system
( yes, this has happen do you trust your government ? )
6: A business organization uses the private-server key for decrypting traffic for SSL deep inspection of content ( do you trust your external organizations? google?yahoo? etc...... I sure as hell don't ! )
Keep in mind, without protection, a agency like NSA could capture your data today and brute-force or gather the private-key later , and now have access to both ; past , current and future data, that used by that private-key.
If you don't believe me, just contact them and ask them ;)
Yes, just the merge fact that your sslvpn session was not secured with a strong crypto methods and lacks supports of ephemeral key generation. This means you are Potentially compromised. And then you factor in that the private-key is readable by anybody who gains access to it.
One thing we should have learned from Eric Snowden, These peoples are not your friend;
For more scary reading do a "google" search on the USA lead prism system and the goals of internet traffic capture & inspection.
Ken Felix
A NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( $ $ )=
o
/ \
Sunday, August 10, 2014
Fortgate Patch Build numbering explanation
If you have been around fortinet for awhile, you will find the build numbers are always increasing but not always in a +1 consecutive order for the OS that operates the fortigates appliances.
Using the fortiOS 4.0 MR3 train, I created a list all of the builds starting with patch 0 thru 18
Fortinet will continue support under the 4.0MR3 release for 36 months. So 4.0 MR3 will most likely end somewhere b4 the end of 2014.
The FortiOS version 4.0 MR#3 was initially release 2011 3-18, and should have EoL 2014 4-19
Why gaps exists between builds, has do to any of the following;
So for example from patch17 build 688 to patch 18 build 689 was 1 increment. ( There was just one build attempt ).
But between patch10 build 639 to patch11 build 646, there was 7 unique builds before the patch11 was released.
A good indicator of major fixes or improvement, " when you see a big jump between public patch releases", that's a good indicator of some major work done to the OS version train.
Using the fortiOS 4.0 MR3 train, I created a list all of the builds starting with patch 0 thru 18
Fortinet will continue support under the 4.0MR3 release for 36 months. So 4.0 MR3 will most likely end somewhere b4 the end of 2014.
The FortiOS version 4.0 MR#3 was initially release 2011 3-18, and should have EoL 2014 4-19
Why gaps exists between builds, has do to any of the following;
- the build that was schedule to be made public, was retracted
- the didn't pass QC, so another build was generated
- more fixes where need or add
- or a new devices was introduce
So for example from patch17 build 688 to patch 18 build 689 was 1 increment. ( There was just one build attempt ).
But between patch10 build 639 to patch11 build 646, there was 7 unique builds before the patch11 was released.
A good indicator of major fixes or improvement, " when you see a big jump between public patch releases", that's a good indicator of some major work done to the OS version train.
Ken Felix
NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( + - )=
@
/ \
NSE ( network security expert) and Route/Switching Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( + - )=
@
/ \
Saturday, August 9, 2014
Fortimail Interfaces Types as of 5.1.2 GA or higher
The fortimail appliance supports the following interfaces types;
1:standard port
2:redundant port ( 2 or more members )
3:vlan interfaces ( 802.1q tag )
The config for any type is simple & easy. Please see examples
1> a standard static address
2> redundant ports ( with 2x member ports #3 & #4 )
3.a> 802.1q tagged vlan-interface ( bounded to a physical port #6 )
3.b> 802.1q tagged vlan-interface ( bounded to the redundant port0 )
Interfaces not supported are loopbacks ( even tho the unit has a hidden loopback interface btw ) , nor ether-bundled interfaces with 802.3ad. The redundant interface is ideal and the best you can get,with regards to redundancy.
1:standard port
2:redundant port ( 2 or more members )
3:vlan interfaces ( 802.1q tag )
The config for any type is simple & easy. Please see examples
1> a standard static address
2> redundant ports ( with 2x member ports #3 & #4 )
3.a> 802.1q tagged vlan-interface ( bounded to a physical port #6 )
3.b> 802.1q tagged vlan-interface ( bounded to the redundant port0 )
Interfaces not supported are loopbacks ( even tho the unit has a hidden loopback interface btw ) , nor ether-bundled interfaces with 802.3ad. The redundant interface is ideal and the best you can get,with regards to redundancy.
Ken Felix
Freelance Network/Security Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( + - )=
@
/ \
Freelance Network/Security Engineer
kfelix -----a----t---- socpuppets ---dot---com
^ ^
=( + - )=
@
/ \
Friday, August 8, 2014
Fortigate firewall policy matching order
A firewall policy on a fortigate is match in the follow order;
source and destination interfaces
source and destination address
service
schedule
and finally we execute the action
Basically the same way you see the policy in the WebGUI display or CLI is the matching order.
Also multiple policies are are matched top to bottom & till one of 2 things happen;
1> it's match and the corresponding action take place ( drop/accept/encrypt/etc.... ) and any security profiles are applied or traffic shapers
or
2> it's not matched and drop
Always place most specific 1st and more broader policies last . I always try to get in a habit of placing vpn policies above everybody else.
Here's a typically policy with #s indicating the matching order. I left out the user identity stuff.
or via cli
Keep the following in mind when troubleshooting fwpolicies;
1: RPF checks if applied comes 1st
2: next any route lookup/decisions comes next ( can't do anything till we know where the packet is destination )
3: diag debug flow is your friend ( learn how to use it )
http://socpuppet.blogspot.com/2013/03/flow-diagnostic-fortigate.html
4: the policy must be active in order for it to work ( will duh, but easily missed )
5: the ordering of the policies are very crucial
6: the traffic has to reach the firewall in order to be process ( will again a big duh, but if you have no sessions no drops in the logs if logging is enable, than you can assume the packet never made it to you )
The diag sniffer packet command is your next best friend
I hope this post comes in handy for flow diagnostics.
Ken Felix
Security and Network Engineer
source and destination interfaces
source and destination address
service
schedule
and finally we execute the action
Basically the same way you see the policy in the WebGUI display or CLI is the matching order.
Also multiple policies are are matched top to bottom & till one of 2 things happen;
1> it's match and the corresponding action take place ( drop/accept/encrypt/etc.... ) and any security profiles are applied or traffic shapers
or
2> it's not matched and drop
Always place most specific 1st and more broader policies last . I always try to get in a habit of placing vpn policies above everybody else.
Here's a typically policy with #s indicating the matching order. I left out the user identity stuff.
or via cli
Keep the following in mind when troubleshooting fwpolicies;
1: RPF checks if applied comes 1st
2: next any route lookup/decisions comes next ( can't do anything till we know where the packet is destination )
3: diag debug flow is your friend ( learn how to use it )
http://socpuppet.blogspot.com/2013/03/flow-diagnostic-fortigate.html
4: the policy must be active in order for it to work ( will duh, but easily missed )
5: the ordering of the policies are very crucial
6: the traffic has to reach the firewall in order to be process ( will again a big duh, but if you have no sessions no drops in the logs if logging is enable, than you can assume the packet never made it to you )
The diag sniffer packet command is your next best friend
I hope this post comes in handy for flow diagnostics.
Ken Felix
Security and Network Engineer
kfelix ----a---t---socpuppets ---d---o---t---com
^ ^
=( - - )=
o
/ \
Subscribe to:
Posts (Atom)





















