site-to-site VPN, osx server connected to a router
I'm having a bad time setting up a site-to-site VPN between our two offices :
Each office is connected to Internet via a satellite-modem box (IpStar) that is also a router device, so on one side of the box we have our public ip address and and the other side it's private.
Mac OS X Server is running on a Mac Mini 2GHz.
(I've added one more ethernet port by using a USB-to-Ethernet adaptater D-Link DUB-E100)
The Mac Mini is providing all the basic network services to the other client computers in the office, it's doing Nat and routing as well.
en0 is the internal interface for the client side (192.168.210.0 for office 1 / 192.168.220.0 for office 2)
en2 is the external interface and it's connected to the ethernet port of the satellite-modem box (10.143.243.0 for office 1 / 10.143.244.0 for office 2)
Everything is working fine (including normal client/server L2TP VPN), only site-to-site VPN is making problems.
In the satellite box i've forwarded the right ports to the Mac Mini en2 (external) interface ip address.
I've followed the Apple Network Services Documentation to setup the Firewall and the VPN using s2svpnadmin.
But the trick is, in the apple doc the os x server is connected directly to internet via one of their internal interface.
My situation is different : between my os x server and internet there's another router : the Satellite modem box. I thought i would only have to setup port forwarding but apparently that's not enough.
Here is my s2svpnadmin config for office1:
External gateway address of the local site: ABCD
External gateway address of the remote site: WXYZ
Using shared-secret encryption. Shared secret = password
====Details for policy #1====
Local subnet address: 192.168.210.0
Number of prefix bits representing the local subnet: 24
Remote subnet address: 192.168.220.0
Number of prefix bits representing the remote subnet: 24
And i'm a bit confused when i'm running s2svpnadmin 'cause it's asking for "external gateway address of the local site", is it the ip address of en2 or the one provided by the isp ?
Anyway, whatever i enter it doesn't work (ping...)
So now i hope somebody can help me, thx in advance !
MacBook, Mac OS X (10.4.10)