SHARE
Facebook X Pinterest WhatsApp

Security Portal: Using Linux 2.4 Firewalling – Building a Firewall with Netfilter

Written By
thumbnail
Web Webster
Web Webster
Feb 19, 2001

“In my last column, I introduced Netfilter, Linux 2.4’s new
stateful firewalling package. Now, we’ll get to actually building a
firewall with Netfilter. While we’ll build a Small Office/Home
Office (SOHO) firewall script here, this article should be very
useful for any environment. This article should be useful for
network and system administrators, but also to the home user who
wants to secure a network or a single machine.
CIO types might
find this article too detail-oriented — they should profit most
from the first part of this series, the aforementioned last column.
For the rest of you, go get yourself a cup of coffee or a can of
Mountain Dew: even a small firewall can be fairly involved.”

“This article assumes a basic knowledge of firewalls and
protocols. If you don’t yet have one, don’t despair. I’ve made a
“prerequisite” article on firewall placement, default deny/allow
policies, and very basic TCP/IP fundamentals:
http://securityportal.com/articles/prereq20010219.html.”

“Remember, to filter a service, you usually just need to filter
packets with the appropriate source/destination port. If you wanted
to block incoming telnet connections, you might block all incoming
TCP packets with destination port 23. If you wanted to block your
network from making external web connections, you’d block outgoing
TCP packets with destination ports 80 (HTTP) and 443 (HTTPS). Other
protocols, like FTP, are more complicated – in those cases, you
just need to learn a little about the protocol. I’ll discuss FTP
messiness later in this article. For now, let’s get going.”

Complete
Story

thumbnail
Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Recommended for you...

A Thorough Approach to Improve the Privacy and Security of Your Linux PC
Damien
Oct 24, 2024
Several Russian Maintainers Removed From Linux Kernel Due To Compliance Concerns
Senthil Kumar
Oct 23, 2024
OpenSSH Splits Again: New Authentication Binary Unveiled
Bobby Borisov
Oct 16, 2024
13 Best Free and Open Source Anti-Malware Tools
webmaster
Oct 14, 2024
Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2025 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.