Difference between revisions of "NAT Tutorial"

From CTWUG Wiki
Jump to: navigation, search
Line 10: Line 10:
 
Wugger PC PVT IP: 10.0.0.3
 
Wugger PC PVT IP: 10.0.0.3
  
[[Image:MediaWiki:NAT_ips.jpg]]
+
[[Image:NAT_ips.jpg]]
  
  
 
First configure the IP's for your wlan1 (Wireless Wug interface) and eht1 (Ethernet interface)
 
First configure the IP's for your wlan1 (Wireless Wug interface) and eht1 (Ethernet interface)
  
[[Image:MediaWiki:Mikrotik_nat_howto01.jpg]]
+
[[Image:Mikrotik_nat_howto01.jpg]]
  
[[Image:MediaWiki:Mikrotik_nat_howto02.jpg]]
+
[[Image:Mikrotik_nat_howto02.jpg]]
  
 
Set your static Wug route of 172.18.0.0/16
 
Set your static Wug route of 172.18.0.0/16
  
[[Image:MediaWiki:Mikrotik_nat_howto03.jpg]]
+
[[Image:Mikrotik_nat_howto03.jpg]]
  
[[Image:MediaWiki:Mikrotik_nat_howto04.jpg]]
+
[[Image:Mikrotik_nat_howto04.jpg]]
  
  
Line 31: Line 31:
 
First we will configure the Source Network Address Translation setting (SRC-NAT). This will translate your local pvt lan ip (10.0.0.3) to a public (wug accessible) ip.
 
First we will configure the Source Network Address Translation setting (SRC-NAT). This will translate your local pvt lan ip (10.0.0.3) to a public (wug accessible) ip.
  
[[Image:MediaWiki:Mikrotik_nat_howto05.jpg]]
+
[[Image:Mikrotik_nat_howto05.jpg]]
  
[[Image:MediaWiki:Mikrotik_nat_howto06.jpg]]
+
[[Image:Mikrotik_nat_howto06.jpg]]

Revision as of 18:12, 21 September 2009

This is a tutorial to explain how to use your own private lan range for network and NAT network address translation This means, for example, that in your private network you can have whatever private IP you want which is then in turn translated to the public network IP (WUG IP) given to you by your WUG Admin. This tutorial can thus be used by wuggers who dont want to change the internal IP addressing of their LAN.

In tutorial we are using the following ips:

Highsite IP: 172.18.100.254 Wugger RB IP: 172.18.100.6 Wugger Wug Range: 172.18.100.0/29 Wugger PVT Lan Range: 10.0.0.0/24 Wugger PC PVT IP: 10.0.0.3

NAT ips.jpg


First configure the IP's for your wlan1 (Wireless Wug interface) and eht1 (Ethernet interface)

Mikrotik nat howto01.jpg

Mikrotik nat howto02.jpg

Set your static Wug route of 172.18.0.0/16

Mikrotik nat howto03.jpg

Mikrotik nat howto04.jpg


To configure the NAT, go to IP > Firewall and click the NAT tab


First we will configure the Source Network Address Translation setting (SRC-NAT). This will translate your local pvt lan ip (10.0.0.3) to a public (wug accessible) ip.

Mikrotik nat howto05.jpg

Mikrotik nat howto06.jpg