Solved

Remote reboot for linux - ip tables

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

NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

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…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

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