• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » How Packet Filter Works (iptables)

By Abhishek Ghosh January 24, 2024 7:00 pm Updated on January 24, 2024

How Packet Filter Works (iptables)

Advertisement

A packet filter, also known as a network filter, is an application or software that filters incoming and outgoing traffic on a computer network. This is usually to protect the network from attackers. Just as important as protection against external attackers is protection against unintentionally outgoing packets; This can make it more difficult, for example, for one’s own computer to spread viruses on the Internet unintentionally and unnoticed. A packet filter can be part of a firewall.

Packet filters are used to implement the concept of a firewall. On routers, they are used to implement so-called ingress filters. Such filters prevent data packets from being sent to or from a network that contain invalid sender or destination addresses. For example, if only the network 10.1.1.0/24 is connected to a router interface, and a data packet with the sender address 172.16.1.42 comes from this network, the router should discard the packet. There is either a configuration error or an attacker is trying to spoof his sender address. Multicast and broadcast sender addresses can also be filtered in this way. As an alternative to packet filtering, Unicast Reverse Path Forwarding is an alternative option.

How Packet Filter Works iptables

 

How it Works

 

The data is packaged in a network by the sending host in data packets and sent. Every packet that tries to pass through the packet filter is examined. Based on the data contained in each packet, such as the sender and recipient addresses, the packet filter decides what to do with that packet based on filtering rules. An inadmissible packet that is not allowed to pass through the filter is either discarded (called DENY or DROP in technical jargon), the sender is informed about the discard by means of an ICMP message with the remark that access was inadmissible (REJECT), or forwarded (FORWARD or PERMIT) or allowed through (ALLOW or PASS).

Advertisement

---

A packet filter is called “stateful” if it automatically generates a rule for an outgoing packet that accepts the response to that packet in a certain time window (in the range of minutes). If the answer does not come or if the time is exceeded, the rule expires. In principle, such filters can also handle protocols that work on two ports, for example FTP.

The packet filter is responsible for tasks such as comparing the source or destination address of the packets that pass through the firewall and must perform certain filtering or regulation of data traffic. If you think of the Internet as a gigantic collection of houses, then the IP addresses represent the house numbers, so to speak. Under a specific IP address, you can communicate directly with a computer.

The individual “floors” of these computers (marked with a number, which is also called a port) are now home to the various services such as HTTP, FTP or SSH. A packet filter can block various ports for visitors from the Internet, meaning that any connection from the Internet is rejected at the front door. By configuring a firewall accordingly, a computer network can be protected from attacks or access.

A packet filter defines rules that determine whether individual or contiguous packets are allowed to pass through the access protection system or are blocked. For example, such a rule would be: Discard all packets coming from the IP address 1.2.3.4. However, since attackers can come from arbitrary IP addresses, it is more feasible to go the opposite way and only allow packets coming from specific IP addresses to pass through.

In principle, however, this is not really a safe way, as a culprit can forge the house number without major technical problems. Secure communication, e.g. between company networks, is only possible if protocols are used that authenticate and authorize the users or systems involved.

Tagged With Packet filtering firewalls
Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to How Packet Filter Works (iptables)

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • WordPress & PHP : Different AdSense Units on Mobile Devices

    Here is How To Serve Different AdSense Units on Mobile Devices on WordPress With PHP. WordPress Has Function Which Can Be Used In Free Way.

  • Changing Data With cURL for OpenStack Swift (HP Cloud CDN)

    Changing Data With cURL For Object is Quite Easy in OpenStack Swift. Here Are Examples With HP Cloud CDN To Make it Clear. Official Examples Are Bad.

  • General Basics of Firewall

    A firewall is a security system that protects a computer network or an individual computer from unwanted network access. More broadly, a firewall is also a sub-aspect of a security concept. Every firewall security system is based on a software component. Firewall software is designed to restrict network access based on the sender or destination […]

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

vpsdime

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Cloud-Powered Play: How Streaming Tech is Reshaping Online GamesSeptember 3, 2025
  • How to Use Transcribed Texts for MarketingAugust 14, 2025
  • nRF7002 DK vs ESP32 – A Technical Comparison for Wireless IoT DesignJune 18, 2025
  • Principles of Non-Invasive Blood Glucose Measurement By Near Infrared (NIR)June 11, 2025
  • Continuous Non-Invasive Blood Glucose Measurements: Present Situation (May 2025)May 23, 2025
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2026 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy