LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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
 
LinkBack Search this Thread
Old 01-20-2009, 08: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: 69
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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


All times are GMT -5. The time now is 11:45 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration