?
Solved

Remote reboot for linux - ip tables

Posted on 2012-03-26
2
Medium Priority
?
376 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 29

Accepted Solution

by:
fosiul01 earned 1000 total points
ID: 37766852
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 1000 total points
ID: 37767328
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

Congratulations! You’re Certified – Now What?

Starting a new career can be overwhelming. Becoming certified in your field of expertise is a great start, but where do you go from here?  Here are some tips to help you on your career journey.

Question has a verified solution.

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

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…
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
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.
Suggested Courses
Course of the Month14 days, 6 hours left to enroll

800 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