Solved

Application sends a Packet, but it should be dropped by the IP.

Posted on 2007-12-04
5
250 Views
Last Modified: 2013-12-16
HI,

I want to simulate the following situation.

My Application sends a packet, but the ip packet should be dropped by the ip layer.
Is there any way on Linux using ifconfig command or any other to drop a packet intentioanlly.
0
Comment
Question by:srini_kandimalla
5 Comments
 
LVL 9

Accepted Solution

by:
svs earned 250 total points
Comment Utility
A firewall (in Linux -- netfilter) is good at dropping packets.
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 250 total points
Comment Utility
Why do you want to do this? I only ask in case there might be a simpler way to achieve your goal.
For instance, if you are developing a user-level program which does its own session control over UDP, you could use the gdb debugger to simulate packet loss.
0
 

Expert Comment

by:pillaisuder
Comment Utility
use firewall(iptables)
set the iptables default policy as drop or reject
another query is tell me which exact application packet to drop?
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now