Networking Forums

Networking Forums > Computer Networking > Linux Networking > how to simulate network problems with iptables

Reply
Thread Tools Display Modes

how to simulate network problems with iptables

 
 
erwin
Guest
Posts: n/a

 
      05-13-2008, 02:19 PM
To test an Application that communicates over UDP Multicast I would
like to filter out some packets using iptables. However, when I
specify a rule to DROP the packets on send, the application gets an
"Operation not permitted" error. What I would like to achieve is that
the packet gets silently dropped, without the application on the local
machine getting an immediate error.
 
Reply With Quote
 
 
 
 
goarilla
Guest
Posts: n/a

 
      05-13-2008, 08:50 PM
erwin wrote:
> To test an Application that communicates over UDP Multicast I would
> like to filter out some packets using iptables. However, when I
> specify a rule to DROP the packets on send, the application gets an
> "Operation not permitted" error. What I would like to achieve is that
> the packet gets silently dropped, without the application on the local
> machine getting an immediate error.


put a box up in between the host and the rest of the network

 
Reply With Quote
 
erwin
Guest
Posts: n/a

 
      05-14-2008, 06:54 AM
that's no option for me, in my case the box is multiply redundant on
several switches, I have no easy access to the network infrastructure
(nor even to the physical box).- that's why I would like to do it with
filtering locally on the box.

goarilla <kevin<punt>paulus|@|skynet schrieb:
> erwin wrote:
> > To test an Application that communicates over UDP Multicast I would
> > like to filter out some packets using iptables. However, when I
> > specify a rule to DROP the packets on send, the application gets an
> > "Operation not permitted" error. What I would like to achieve is that
> > the packet gets silently dropped, without the application on the local
> > machine getting an immediate error.

>
> put a box up in between the host and the rest of the network

 
Reply With Quote
 
Pascal Hambourg
Guest
Posts: n/a

 
      05-14-2008, 04:00 PM
Hello,

erwin a écrit :
> To test an Application that communicates over UDP Multicast I would
> like to filter out some packets using iptables. However, when I
> specify a rule to DROP the packets on send, the application gets an
> "Operation not permitted" error. What I would like to achieve is that
> the packet gets silently dropped, without the application on the local
> machine getting an immediate error.


At worst if it's not loopback traffic you can use the MARK target with
advanced routing to route discarded packets through a dummy interface.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
simulate ctrl-alt-del in rdp session John A Grandy Windows Networking 16 01-28-2009 01:43 AM
Is there a way to simulate/preview (but not really do) rsync ? Matthew Lincoln Linux Networking 9 05-05-2008 02:01 PM
simulate network printers running in VMs networked to the host only? Spin Windows Networking 1 10-16-2006 07:11 PM
Simulate network failure jamie Linux Networking 4 08-15-2005 10:13 AM
How to use IPTABLES to simulate major network outages for testing purposes? Christiaan Lutzer Linux Networking 1 10-18-2003 03:41 PM



1 2 3 4 5 6 7 8 9 10 11