LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 12-06-2007, 02:59 AM   #1
bharat.bvrit
LQ Newbie
 
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
Rejecting packets


hi,
I am trying to develop a content filter.For sniffing the packets i'm using the "libipq" library.Here while blocking filetypes(suppose image file) i'm using "NF_DROP"...which is causing a problem that once the packet is dropped,the status is in dropped state for a long time ,since requests will sent by browser to the host if the required packet is not reached to the browser.....so i thought of rejecting packets instead of dropping.But i couldn't understand how to reject the packets.Please help me.

Thanx in advance............
 
Old 12-17-2007, 01:57 AM   #2
khaled_h
LQ Newbie
 
Registered: Mar 2007
Distribution: Fedora Core, SuSE, RH
Posts: 6

Rep: Reputation: 0
Hi,

You can use "NF_REJECT" instead of "NF_DROP" to reject packets instead of dropping them. If you are using iptables command, you can specify '-j REJECT' as the action of the command.
 
  


Reply



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
rejecting packets bharat.bvrit Linux - Networking 2 12-04-2007 04:27 AM
Postfix rejecting connections atmadrau Linux - Server 5 02-20-2007 07:56 AM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
Sendmail rejecting IPs dskny Linux - Software 0 08-21-2003 10:11 AM
Rejecting Spam Emails vk1985 Linux - Networking 3 04-11-2003 04:36 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 PM.

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