I couldn't connect to the VPN at work from behind the gateway at home. Tried the fix in this posting
http://forums.contribs.org/index.php?topic=1855.msg6169#msg6169 and it worked for me.
My 45AllowIPSECMasq in templates-custom looks like this.
{
local %services = ( masq => $masq );
my $me = "ipsec";
my $status = db_get_prop(\%services, 'masq', 'status') || "disabled";
my $loadme = db_get_prop(\%services, 'masq', $me) || "yes";
if ( ($status eq "enabled") and ($loadme eq "yes") )
{
$OUT = <<'HERE';
# Accept incoming ESP packets
# Don't bother about AH packets here, as you can't masq them
/sbin/ipchains --append input -p 50 -s 0/0 -d $OUTERNET -j ACCEPT
/sbin/ipchains --append input -p udp -s 0/0 500 -d $OUTERNET -j ACCEPT
HERE
}
}
Trevor B