Networking Forums

Networking Forums > Computer Networking > Linux Networking > How to use IPTABLES to simulate major network outages for testing purposes?

Reply
Thread Tools Display Modes

How to use IPTABLES to simulate major network outages for testing purposes?

 
 
Christiaan Lutzer
Guest
Posts: n/a

 
      10-18-2003, 03:23 PM
Greetings all,

I work with a large distributed system that makes heavy use of TCP/IP.
For example, from a command system we could expect around 900 TCP/IP
connections to remote nodes.

I would like to simulate all of those 900 TCP/IP connections dropping
at the same time. I.e., I would like RST packets to be sent to the
command system at the same time.

It has been suggested to just pull the cables to this command system
but I don't think that will suffice. The command system is a NT 4.0
box, and I believe the connections would require keep-alive timeouts
to occur before dropping. I'm more interested in a major network
event occurring.

So, I've placed a Linux firewall running Red Hat 8 in between the
command system and the rest of the world. My next step is to figure
out a way to use that system to drop all the connections for me.

Thanks all!
 
Reply With Quote
 
 
 
 
Allen Kistler
Guest
Posts: n/a

 
      10-18-2003, 03:41 PM
Christiaan Lutzer wrote:
> Greetings all,
>
> [snip]
>
> I would like to simulate all of those 900 TCP/IP connections dropping
> at the same time. I.e., I would like RST packets to be sent to the
> command system at the same time.
>
> [snip]
>
> So, I've placed a Linux firewall running Red Hat 8 in between the
> command system and the rest of the world. My next step is to figure
> out a way to use that system to drop all the connections for me.


RH stores the netfilter configuration in /etc/sysconfig/iptables.
All you need to do is edit this file (or swap in another one), then execute
/etc/init.d/iptables restart
to load the new rules.

A rule of the form
-A FORWARD -p tcp -j REJECT --reject-with tcp-reset
should do the trick, making sure you have no rule for ESTABLISHED that
precedes it.

 
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
Setting up RRAS for testing purposes JohnB Windows Networking 6 10-17-2008 02:44 AM
how to simulate network problems with iptables erwin Linux Networking 3 05-14-2008 04:00 PM
BT Major Service Outages Skokiaan Broadband 2 07-10-2006 08:45 AM
Simulate network failure jamie Linux Networking 4 08-15-2005 10:13 AM
How to copy DC for testing purposes. Chris Dove Windows Networking 4 02-23-2005 09:31 AM



1 2 3 4 5 6 7 8 9 10 11