Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 12-02-2007, 04:27 PM   #1
LQ Newbie
Registered: Dec 2007
Posts: 4

Rep: Reputation: 0
rejecting packets

I want to reject the packets from being transmitted.Currently i could DROP the packets using iptables but i dont know how to REJECT with iptables with icmp type as "host unreachable" .Please help me out.
Old 12-03-2007, 06:31 AM   #2
Registered: Jul 2004
Posts: 171

Rep: Reputation: 30
-j REJECT --reject-with icmp-host-unreachable
Old 12-04-2007, 04:27 AM   #3
LQ Newbie
Registered: Dec 2007
Posts: 4

Original Poster
Rep: Reputation: 0
thanx for replying.How can i embed the command given by you in my code... so that whenever unnecessary packets occur i need to reject those packets while my code is running.


icmp, iptables

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rejecting domains with Postfix... CRCool75 Linux - Networking 4 03-09-2006 07:42 AM
sendmail rejecting connections WorldBuilder Linux - Networking 21 01-12-2006 06:34 AM
encapsulating TCP packets in UDP packets... yoshi95 Programming 3 06-03-2004 02:53 PM
Sendmail is rejecting some mail member57 Linux - Networking 2 04-20-2004 11:18 AM
Rejecting Spam Emails vk1985 Linux - Networking 3 04-11-2003 04:36 AM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:12 PM.

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