On Mon, 9 Sep 2002, inaye_olivetto wrote:
>
> Hi People!
>
> I'm using Dachstein Firewall, and I need a mail service on it!
>
> Cause I'll make a remote support on the webserver under Dachstein
> firewall. The Firewall has a dynamic IP, and I need to receive it by
> e-mail.
>
> How can I do it?!
I have a similar issue, this is how I solved it:
server
webhoster (home)
^ ^
| |
V V
Internet<=====>DSL<-->Firewall<-->LAN<-->(other LAN hosts)
^ (LEAF)
|
V
workstation
(employer)
My DSL service runs over PPPoE, so it uses the normal pppd and rp-pppoe
using dynamic addressing. I need to know the current address of the box
so that I can ssh in remotely.
I've altered the ip-up/-down scripts to emit a syslog message with the
new IP address. I use the logger tool to do this. I forget if I had
to compile that myself or not.
The firewall is configured to send remote syslog messages to the home
server.
The home server monitors the syslog for the address change message (and
ipchains messages) and executes a script that:
- copies the address to a file ( /var/log/myip or something like that ).
- A separate process uploads that file to my public website periodically.
- sends a GPG signed message[1] with the address on one line and the
whole syslog line on the line following to a helper account which ...
- (used to[2]) .forward that message to my LAN email and my email account
at work.
- My workstation has a procmail recipie to pipe the message to a script
which...
- verifies the GPG signature.
- and updates my /etc/hosts[3]
Eh, I got tired of looking up the addr every time and this was a fun
little hack :)
John
[1] (echo address="$7"; echo "$0") | /usr/bin/gpg --clearsign | \
/bin/mail -s "$7" pppcycle
[2] An overzealous admin at work took it upon himself to start bouncing
"fake" domains, so I now use a procmail recipie to apply an
appropriate address.
[3] I should also check the date of the change, I've been bitten by out
of order email when the connection rapidly lost sync (and its address)
several times in succession.
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Leaf-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-devel