Top "Netfilter" questions

Netfilter is a set of hooks inside the Linux kernel that allows kernel modules to register callback functions with the network stack.

How can I programmatically manage iptables rules on the fly?

I need to query existing rules, as well as being able to easily add and delete rules. I haven't found …

linux api kernel iptables netfilter
Change TCP Payload with nfqueue/scapy

Hello I am using nfqueue and scapy and I my goal is to recieve packets at my NFQUEUE, change the …

python scapy tcp-ip netfilter packet-injection
Convert source IP address from struct iphdr* to string equivalent using Linux netfilter

I want to convert the source & destination IP addresses from a packet captured using netfilter to char *. In my …

c linux kernel kernel-module netfilter
IP-address from sk_buff

I am writing a kernel module which registers a netfilter hook. I am trying to get the ip address of …

c linux-kernel netfilter
Print TCP Packet Data

In TCP Communication, when the packet is being transferred from ethernet to network(IP) layer, I want to print the …

c tcp linux-kernel hook netfilter
Using sk_buff to add an Ethernet frame header

I have a kernel module that captures outgoing Internet traffic(Netfilter hook: LOCAL_OUT) At this hook, there's still no …

c linux-kernel kernel kernel-module netfilter
Source and destination port of ICMP packet

I'm writing a packet filter in netfilter. Is there a way I can get the source and destination port of …

linux-kernel netfilter
How to access data/payload from tcphdr (sk_buff) struct on debian 64 bits?

I'm working on a small firewall, i had to retrieve the datas from each tcp packet from port 80 (http) for …

c network-programming kernel-module netfilter
How to append data on a packet from kernel space?

I am trying to append some data on a packet from kernel space. I have an echo client and server. …

c linux kernel-module netfilter
Netfilter kernel module to intercept packets and log them

I had a basic code. This code drops and logs all the incoming and outgoing packets. I want to write …

c linux tcp linux-kernel netfilter