"be consistent" | |
PerlMonks |
SSH Tunnels and IPC(?)by fuzzyping (Chaplain) |
on May 26, 2003 at 15:17 UTC ( [id://260846]=perlquestion: print w/replies, xml ) | Need Help?? |
fuzzyping has asked for the wisdom of the Perl Monks concerning the following question:
I have a project that I'm trying to iron out some details for. First, a brief description: I'm building a centralized database for logging from a series of distributed firewalls. The logging will take place via a perl script I've written that opens a pipe on the logging interface (OpenBSD's pflog0), parses the output, and inserts the data into a MySQL table. For security's sake, and to be able to maintain a "pull" mode from the database server, I've been using a remote SSH tunnel (forwards remote port to local port), then using SSH to run the remote script. The script connects to the firewall's local port, forwarding the connection through the tunnel to the database server securely. Unfortunately, this brings up a couple of issues: 1) How to monitor that the tunnel stays up, and 2) How to monitor that the script is still running/connected? I'd consider moving the SSH connection task into the Perl code, but I haven't found any tunnelling methods in the Net::SSH or Net::SSH::Perl modules. As far as the process monitoring goes, I don't have any experience with process communication or error trapping, so any "high-level" suggestions will be greatly appreciated. Example use of script: TIA, -fp
Back to
Seekers of Perl Wisdom
|
|