I’d like connect to VPN Server (Windows 2003) from home, school etc.
What I’ve done:
I’ve made NAT, I’ve Forwarded tpc and udp ports to Windows machine TCP: 1723, UDP: 500,4500,1701.
Only how enable ESP (Protocol ID 50) and GRE (Protocol ID 74), I’d like use both L2TP and PPTP.
No need to forward ESP as NAT-T will be in use. This uses TCP4500 (you need to check this port). No need to forward UDP1701 as this is L2TP without ESP encapsulation.
Turn on connection tracking and PPTP / GRE service ports in /IP FIREWALL. This should sort GRE.
Unfortunately I can’t do this on the router, I know that will be better solution, i can do this only on the windows box.
When this server (VPN) is behind NAT, it will be work properly?
No need to forward ESP as NAT-T will be in use. This uses TCP4500 (you need to check this port). No need to forward UDP1701 as this is L2TP without ESP encapsulation.
So, what ports I must forward?
TCP: 1723
UDP: 500,4500
Turn on connection tracking and PPTP / GRE service ports in /IP FIREWALL. This should sort GRE.