LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 01-20-2009, 07:30 PM   #1
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Responding to packets stolen with ip_queue


I have a userland program that I'm trying to modify (it's actually an updated version of packetbl). I see my only options are to return NF_ACCEPT, NF_DROP, or NF_STOLEN. If I return NF_DROP, then Netfilter simply discards the packet, which is not what I want; I want to return a rejection, either a TCP RST, or an ICMP Administratively Prohibited.

I'm assuming I can't easily change Netfilter's behavior on receiving NF_DROP, so I guess I need to steal the packet and construct a response in userland. Does anyone have any pointers on how to do this? Thanks!
 
  


Reply

Tags
netfilter



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
install module ip_queue !!! Dr_Death_UAE Linux - General 4 07-30-2006 03:10 AM
install module ip_queue !!! Dr_Death_UAE Linux - Software 0 07-25-2006 11:11 AM
displaying STOLEN packets stolen using NF_STOLEN venkatesh111 Linux - Networking 0 04-05-2006 01:02 AM
ip_queue rickthemick Linux - General 1 11-24-2004 03:44 AM
Compiling ip_queue with other options? Jimbo Mahoney Linux - General 1 06-08-2003 05:17 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 08:00 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration