Solved

Remote reboot for linux - ip tables

Posted on 2012-03-26
2
375 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 250 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 250 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

Flexible connectivity for any environment

The KE6900 series can extend and deploy computers with high definition displays across multiple stations in a variety of applications that suit any environment. Expand computer use to stations across multiple rooms with dynamic access.

Question has a verified solution.

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

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
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.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

696 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