Port forwarding is at the NAT box.
Your NATs box have 2 NIC cards...one NIC for external and the second one for internal.
Forward the External IP (real IP from ISP provider) to the internal IP (192.168.x.x or 10.10.x.x).
Let say that you have 192.168.1.254/24 is the server, and 192.168.2.2/24 is the client and you want to use PPTP.
0/0 - any address/from any subnet.
North internal subnet 192.168.1.x (.2~.254 can be use because .1 is used for the Gateway/internal NIC of the NAT box).
|
|
GW 192.168.1.1 (N NAT box interal network address)
|
Port Forward (alow 0/0 to access 192.168.1.254 through TCP protocal @ port 1723, and protocal 47 for port forwarding . or tcp_1723 & protocal 43 if NAT)
|
Ext 100.100.100.1 (N NAT box exteral network address)
|
|
|
|
World Wide Web - VPN Tunel
|
|
|
|
Ext 50.50.50.224 (S NAT box external network address)
|
Port Forward ( 0/0 to access 192.168.2.2 tcp_1723 & protocal 47, or tcp_1723 & 43 if NAT)
|
GW 192.168.2.1 (S NAT box interal network address)
|
|
South internal subnet 192.168.2.x
Or you could specifide and address instead of 0/0.
In the case above you could use:
North NAT box: alow 50.50.50.224 to access 192.168.1.254 tcp_1723 & protocal 47, or tcp_1723 & 43 if NAT.
South NAT box: alow 100.100.100.1 to access 192.168.2.2 tcp_1723 & protocal 47, or tcp_1723 & 43 if NAT.
You might want to look into some kind of network security if you are opening your network though WAN. (look up IPsec)