In article <dnss5f$jgs$1$8302bc10@news.demon.co.uk>,
Martin Kayes <nospam@nospam.com> wrote:
[NAT-T, PIX]
Try just these two lines:
isakmp nat-traversal 20
access-list 110 permit udp any host <public ip> eq 4500
If the PIX is the VPN termination point, then only the first line,
isakmp nat-traversal 20
is needed.
If you are trying to make a connection through a PIX to a VPN termination
point that is internal, then if that server has a public IP that
is not shared with any other machine:
: the static is needed for each of these cases
static (inside,outside) ServerPublicIP ServerPrivateIP netmask 255.255.255.255
: pptp, if that's what the internal server is handling
access-list 110 permit gre any host ServerPublicIP
access-list 110 permit udp any host ServerPublicIP eq 1723
: l2tp, if that's what the internal server is handling
access-list 110 permit udp any host ServerPublicIP eq 1701
If the internal server is handling IPSec:
: ipsec, AH enabled and ServerPublicIP is the same as ServerPrivateIP
access-list 110 permit udp any host ServerPublicIP eq 500
access-list 110 permit esp any host ServerPublicIP
access-list 110 permit ah any host ServerPublicIP
OR
: ipsec, AH not enabled. ServerPublicIP does not need to be the same
: as ServerPrivateIP
access-list 110 permit udp any host ServerPublicIP eq 500
access-list 110 permit esp any host ServerPublicIP
OR
: ipsec. AH can be enabled or not. ServerPublicIP does not need to be
: the same as ServerPrivateIP
isakmp nat-traversal 20
access-list 110 permit udp any host ServerPublicIP eq 500
access-list 110 permit udp any host ServerPublicIP eq 4500
It does not hurt to combine these IPSec cases, into:
isakmp nat-traversal 20
access-list 110 permit udp any host ServerPublicIP eq 500
access-list 110 permit udp any host ServerPublicIP eq 4500
access-list 110 permit esp any host ServerPublicIP
access-list 110 permit ah any host ServerPublicIP
If you are trying to make a connection through a PIX to a VPN termination
point that is internal, and if that server has a public IP that
is shared with any other machine, such as the outside interface of
the PIX, you set things up differently. The below is written
assuming that you are using the public IP of the PIX itself.
If you are using a different public IP for the server, but still shared with
other machines, then in each 'static' command, for the word
'interface', substitute the public IP, and
in each acl entry, in place of 'interface outside', substitute
'host' followed by the shared public IP:
(Note: PIX 6.x syntax; the port forwarding might be different in 7.0)
: if pptp is what the internal server handles
static (inside, outside) udp interface 1723 ServerPrivateIP 1723 netmask 255.255.255.255
access-list 110 permit udp any interface outside eq 1723 netmask 255.255.255.255
: if l2tp is what the internal server handles
static (inside,outside) udp interface 1701 ServerPrivateIP 1701
access-list 110 permit udp any interface outside eq 1701
: if IPSec is what the internal server handles:
isakmp nat-traversal 20
static (inside,outside) udp interface 500 ServerPrivateIP 500 netmask 255.255.255.255
static (inside,outside) udp interface 4500 ServerPrivateIP 4500 netmask 255.255.255.255
access-list 110 permit udp any interface outside eq 500
access-list 110 permit udp any interface outside eq 4500
An example of not using the PIX outside interface as the public IP
for the server:
: if l2tp is what the internal server handles
static (inside,outside) udp ServerPublicIP 1701 ServerPrivateIP 1701 netmask 255.255.255.255
access-list 110 permit udp any host ServerPublicIP eq 1701
--
Programming is what happens while you're busy making other plans.