Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Cron help, Crontab
Laserjet
post Aug 31 2006, 02:13 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 31-August 06
Member No.: 7,110



I have a application running in Linux that utilizes a webservice that can be accessed within the office only. I have to shut it down for a couple hours a day in order to complete a backup. I was thinking that it would be easy for me to set a cron scrudule that says - any traffic to this IP will go to this intranet address. (which would show the online-offline calendar for that application. Is this possible? If not, what is the best suggestion for this type of event?
Go to the top of the page
 
+Quote Post
Jim
post Sep 1 2006, 01:54 PM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Support Specialist
Posts: 1,280
Joined: 19-November 03
From: University of Minnesota- TC
Member No.: 1,828



So cron can't do IP routing. What can is iptables, so what you need to do is look into a combinatino of iptables and crontab to do what you want.

iptables will allow you to route any traffic to a specific ip to another ip or what ever. And cron will alow you run a scrip that sets up and removes that rule.

Its a little tricky, but thats what you need to do.


--------------------
--Jim Lester
jim@linuxhelp.net

Distro: Gentoo
System: AMD Athlon 3000+ XP 2.166 GHz
NVIDIA nForce2 IGP Chipset
1GB 333 MHz DDR SDRAM
NVIDIA nForce2 Dual Head 64 MB Graphics

Server Distro: CentOS
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 12th December 2017 - 01:03 PM