How to set up invisible drop box?
I have a CentOS5 server with a NIC attached to our administrative LAN. This server is basically invisible on the admin network and serves as a gateway to a highly restricted subnet. It has no ports open, does not respond to ping, etc. Completely stealth. I need a public drop box on another computer for users to place files needed by this server. I have Samba shares available on the admin LAN.
What I want to do is have the stealth box monitor the public drop box folder. When a file is placed in the folder, the stealth server must retrieve the file, then delete it from the public folder. I cannot mount the folder on the stealth server, that would defeat the stealthiness.
I have thought of using a cron job with scp or wget or something. But that poses a couple of problems for me. First, I don't know how it would delete the file in the remote folder. Plus, I need a fairly fast response time, so the cron job would have to run every minute. My problem with that is the file transfer time. In the case of large files, the cron job will restart the copy script before the first one is done. Ultimately, I get a bunch of transfer scripts going, all trying to transfer the same file, until things start to lock up.
One thought I had was for the public folder to detect a new file and issue a UDP or other one-way broadcast, which the stealth server could listen for but not reply or respond to. That could trigger the transfer script to process the file. I'm just not smart enough to set that up.
Any and all ideas, questions, or comments appreciated.
Michael
|