Solved

Remote reboot for linux - ip tables

Posted on 2012-03-26
2
364 Views
Last Modified: 2012-03-26
Experts,

We need to set up some ip tables on a remote Linux Server.  I want to take the precaution that if a wrong ip table is entered we will loose access to the remote box.

With a Cisco Router I save the configuration and I use the command "reload in 5".
Then I enter the configuration.  If something goes wrong, the router reboots with the previous configuration and no harm done.

Is this possible with a Linux Centos Server where ip tables are being applied?

Thank you.
0
Comment
Question by:RandallVillalobos
2 Comments
 
LVL 29

Accepted Solution

by:
fosiul01 earned 250 total points
Comment Utility
when u save iptables rules ,its works straight way, so if your ip is wrong, it will block you, no way back!!

unless you have console access (some  hosting company provides console access)
or you tell some one to go to server console and cleared the ip tales.


or work way round woudl be ( its my thought)

you set a cron job , to flush iptables after 2 mins

so after you type iptables save ..

its you are stuck and  cant go back to server

cronjob will flush the iptables rules  after 2 min
and you will go back to server!!!

its self made rules (dont caught me on this) !!
0
 
LVL 43

Assisted Solution

by:ravenpl
ravenpl earned 250 total points
Comment Utility
I think You are looking for command "at"
man at
however test it first, I've seen number of servers where atd daemon was not running.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
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…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

8 Experts available now in Live!

Get 1:1 Help Now