Here is what I have working. #!/bin/sh DSTIP="192.168.2.1" SRCIP="192.168.1.1" COUNT="2" SLEEP="60" while [ 1=1 ]; do ping -c $COUNT -S $SRCIP $DSTIP > /dev/null sleep $SLEEP done
I can start it and it runs fine from the shell when I use nohup /sbin/vpnkeepup & But if I put that in a shellcmd I seem to get errors about it. XML error: not well-formed (invalid token) at line 26 What I'm putting in is: (in the tag <system>) <shellcmd>nohup /sbin/vpnkeepup &</shellcmd> Now I googled a bit and tried a few other different things but what is the best way to put this in the shellcmd option? Thanks John -----Original Message----- From: alan walters [mailto:[EMAIL PROTECTED] Sent: Saturday, November 19, 2005 3:33 PM To: [email protected] Subject: RE: [pfSense Support] IPsec Does Auto Establish work? I would love a copy of this if you get it working well. Could you post a snippet to the list when you complete it thanks -----Original Message----- From: John Cianfarani [mailto:[EMAIL PROTECTED] Sent: Saturday, November 19, 2005 5:37 PM To: [email protected] Subject: RE: [pfSense Support] IPsec Does Auto Establish work? Yeah I guess it should. I probably will end up writing a small shell/php script to send a few pings then sleep for 30-60secs and repeat. And pop that into the shellcmd. Seems like the best option at the moment. John -----Original Message----- From: Holger Bauer [mailto:[EMAIL PROTECTED] Sent: Friday, November 18, 2005 4:21 PM To: [email protected] Subject: AW: [pfSense Support] IPsec Does Auto Establish work? Heh, looks like this option should be called "make voip happy [X]" > -----Ursprüngliche Nachricht----- > Von: John Cianfarani [mailto:[EMAIL PROTECTED] > Gesendet: Freitag, 18. November 2005 22:18 > An: [email protected] > Betreff: RE: [pfSense Support] IPsec Does Auto Establish work? > > > Here is my somewhat potential setup for why I needed to keep > the tunnel > up. > > Lets say you have voip phones at a small remote site (1-2 users) which > has a dynamic ip address. (Which uses the mobile ipsec client setup) > Lets also assume the phones don't register with the call > server (static > configuration or they register every 30min/60min). > > Call server is at the host site. Call comes in for one of the remote > phones but because the tunnel is down and the ip is dynamic it can't > bring up ipsec session, hence unable to ring the phone. > > Now you might say if a user isn't there who cares. But the > phone might > be set to do call forwarding or the user doesn't have their > machine on. > > > On this note it could be resolved if it was possible to put in a > dynamicdns name instead of ip so the host site would always be able to > find the remote site? > > Thanks > John > > -----Original Message----- > From: Vivek Khera [mailto:[EMAIL PROTECTED] > Sent: Friday, November 18, 2005 3:19 PM > To: [email protected] > Subject: Re: [pfSense Support] IPsec Does Auto Establish work? > > what's the point of keeping the tunnel up? won't either endpoint > force it to re-establish on demand anyhow? > > i know my mobile user IPsec vpn does so from my mac to pfSense. i'm > fairly certain our remote office VPN also does so, but it is a > LOOOONG haul over an unreliable network, so it is up and down > all the > time anyway. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > ____________ Virus checked by G DATA AntiVirusKit --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
