Recent Articles

Security Pen Testing - Google Hacking
If you are a security pen tester, you should know about the Google Hacking Database over at Johnny I Hack Stuff. There are a number of sites that deal with search engines and using them to discover vulnerabilities in...

Information Security Leaders
This was written soon after having listened to both the CISO of Cisco, and one of the primary think tank leaders from Gartner Group in December of 2005. The idea of the conversations was that business and IT...

The Passive Interface Command And OSPF
To pass the BSCI exam and become a CCNP, you have to be aware of the proper use of passive interfaces. You learned about passive interfaces in your CCNA studies , but here we'll review the basic concept and clear...

IGRP And Equal Cost Load Balancing
To pass the CCNA exam, you've got to know the role of the bandwidth command with IGRP and EIGRP and when to use it. In this tutorial, we'll configure IGRP over a frame relay hub-and-spoke network using the...

DNS And The IP Name-Server Command
DNS behaviors of a Cisco router are important topics for both the CCNA exam and real-world production networks, and you probably didn't know there were so many DNS details before you began studying for the exam! In this tutorial, we'll look at the ip...

Why Do We Need Private Address Ranges?
When you're studying to pass the CCNA, you're introduced to "private addresses", the address ranges formally referred to as RFC 1918 Private Addresses. (RFC stands for Request For Comment; to see a...

Different Way To Monitor Your Terminal Server...
In the past I have discussed the Citrix Resource manager and Windows Performance monitor as ways of troubleshooting your environment. There is another tool that's free from Microsoft that might aid you in...

Configuring Standard Access Lists
Access Control Lists (ACLs) allow a router to permit or deny packets based on a variety of criteria. The ACL is configured in global mode, but is applied at the interface level. An ACL does not take effect until it is...


Download Now!

04.19.07

Fortinet Firewall Transparent Mode

By A.P. Lawrence

The Fortinet 50A is a firewall router designed for 10 users or less (this is an older model, now replaced by the 50B).

Out of the box, it is configured as a NAT DHCP device at 192.168.1.99. I simply plugged my Mac Powerbook into the Fortinet's "internal" port, refreshed my TCP/IP, and was able to use a browser to connect to the firewwall.

The browser configuration is easy to use and had no surprises. I could have also used ssh - I really appreciate having a command line interface available. After changing the mode to "transparent" and assigning an ip within my actual network, I repatched this so that it sat between my existing router and my switch - "internal" port to my switch, "external" to my router. Fortinet thoughtfully provides a crossover cable that I used for the external port (while most switches have autosensing ports nowadays and need no crossover, a router may not).

At first I thought it wasn't working - I was dead in the water. However, this was just reboot and initialization delay, within a few seconds everything was up and runniing.

In this mode, the Fortinet is simply inspecting packets as they go in and out of my network. However, its default rules allow all traffic to pass, so nothing changed for me. However, I now had a clear view of all network activity as it all had to pass through the Fortinet. Clicking into the details of current sessions showed me a screen that looked something like this.

Obviously most of the traffic is just web browsing sessions (80 as destination port). Other ordinary traffic includes udp 123 to 66.187.224.4; that's just one of my Linux boxes updating from "clock2.redhat.com". But what the heck were all these connections from udp 5071?

I suppose you could look up 5071 in /etc/services. That's not likely to be too illuminating:

$ grep 5071 /etc/services
powerschool 5071/udp # PowerSchool
powerschool 5071/tcp # PowerSchool


Download Now!

There's an easier way on Unix/Linux systems:

$ lsof -i:5071
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Skype 16765 apl 26u IPv4 0x4c51710 0t0 TCP *:powerschool (LISTEN)
Skype 16765 apl 27u IPv4 0x435a040 0t0 UDP *:powerschool


Ahh.. so that's what they are. Sometimes lsof doesn't tell the whole story though, so you need to dig deeper:

$ lsof -i:60495
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
JavaAppli 13702 apl 34u IPv6 0x435caf0 0t0 TCP [::10.1.36.30]:60495->sub-132ip118.e-commercepark.com:9233 (ESTABLISHED)
$ ps -p 13702
PID TT STAT TIME COMMAND
13702 ?? S 30:13.12 /Applications/PokerPages Software/PokerPages Software


Well, that's OK, I am playing poker on-line (actually waiting for a game scheduled for later), so nothing to worry about there. But something that has always bothered me is what's going on when I'm not looking?

The Fortinet can help with that. I can define a policy rule that blocks ALL traffic, but is applied only at night after I've gone to bed. From 10:00 PM to 6:00 AM, absolutely nothing can flow through the Fortinet after applying this rule.

Of course I could be a little less draconian: I could allow clock updates or any other traffic I need. Note that you don't need to worry about locking yourself out of the administration browser accidentally; the Fortinet is smarter than that.

Policy rules can also use "protection profiles" that inspect and provide more complex protection. This can include subscription services such as anti-spam and web filtering. Fortinet offers various services like this; availability varies by model.

There are network configurations that can't work in transparent mode; see "Asymmetric routing and other FortiGate layer-2 installation issues" for a deeper explanation of these conditions.

*Originally published at APLawrence.com


About the Author:
A.P. Lawrence provides SCO Unix and Linux consulting services http://www.pcunix.com

About SysAdminNews
SysAdminNews is a collection of articles, news and commentary designed to keep system administrators informed about the latest trends impacting their profession. Updates and Advice for System Administrators

SysAdminNews is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
SysAdminNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com ITManagementNews.com

-- SysAdminNews is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2007 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article



Database Forum Updates and Advice for System Administrators SysAdminNews News Archives About Us Feedback SysAdminNews.com About Article Archive News Downloads WebProWorld Forums iEntry Advertise Contact Jayde