Solved

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

Posted on 2007-12-04
5
252 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
ID: 20406083
A firewall (in Linux -- netfilter) is good at dropping packets.
0
 
LVL 34

Assisted Solution

by:Duncan Roe
Duncan Roe earned 250 total points
ID: 20406553
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
ID: 20427446
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

Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Over the last ten+ years I have seen Linux configuration tools come and go. In the early days there was the tried-and-true, all-powerful linuxconf that many thought would remain the one and only Linux configuration tool until the end of times. Well,…
SSH (Secure Shell) - Tips and Tricks As you all know SSH(Secure Shell) is a network protocol, which we use to access/transfer files securely between two networked devices. SSH was actually designed as a replacement for insecure protocols that sen…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

772 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