Stop network flood in one step
July 6, 2008
Filed under
Linux, Server Management
Ok, two
First connect to your server’s private network using SSH and login as root. Your data center should provide you how can you do this, on Softlayer servers you have to create first a VPN tunnel to the Softlayer network then you can connect to the server’s private IP.
Usually a server has two network adapters: one for public traffic and one for the server’s private network. As You are smart and know the server’s configuration, must know how these adapters are named, anyway, usually eth0 for private network and eth1 for public.
If you are connected to the server’s private IP and only then, type in the command-line:
ifdown eth1
This command will shut your server’s public network down, thus closing all connections.
To fire the public network up:
ifup eth1
Why did I warn you about to not do this if you are not connected to the private network? Well, think a bit: if you close the public adapter and you manage the server through this network, how will you reconnect if the public network is shut down?
If you can connect only through the public network, you can try to just simply restart the public network’s adapter using the following command:
/etc/init.d/network restart
To check at any time your public network adapter’s status:
ifstatus eth1
Possible related posts (automatic):
Related posts brought to you by Yet Another Related Posts Plugin.



















Comments
Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!
If you want to use your OpenID, fill out the field labeled "Website" with the OpenID URL. The other fields may remain empty.