55 lines
798 B
Markdown
55 lines
798 B
Markdown
|
# Lab 07 - NAT Overload and Port Forwarding
|
||
|
## Configure Router
|
||
|
On Router `EE` configure:
|
||
|
|
||
|
```sh
|
||
|
enable
|
||
|
configure terminal
|
||
|
ip access-list extended NAT-ACL
|
||
|
permit ip 10.0.0.0 0.255.255.255 any
|
||
|
exit
|
||
|
|
||
|
ip nat pool NAT-POOL 1.0.0.1 1.0.0.1 netmask 255.0.0.0
|
||
|
|
||
|
interface fastEthernet0/0
|
||
|
ip nat inside
|
||
|
exit
|
||
|
|
||
|
interface fastEthernet0/1
|
||
|
ip nat outside
|
||
|
exit
|
||
|
|
||
|
ip nat inside source list NAT-ACL pool NAT-POOL overload
|
||
|
|
||
|
exit
|
||
|
exit
|
||
|
disable
|
||
|
exit
|
||
|
```
|
||
|
|
||
|
On Router `R1` and `R2`:
|
||
|
```sh
|
||
|
enable
|
||
|
configure terminal
|
||
|
ip route 0.0.0.0 0.0.0.0 10.123.0.3
|
||
|
exit
|
||
|
exit
|
||
|
disable
|
||
|
exit
|
||
|
```
|
||
|
|
||
|
## Implement Port Forwarding
|
||
|
On `EE` configure port forwarding:
|
||
|
```sh
|
||
|
enable
|
||
|
configure terminal
|
||
|
|
||
|
ip nat inside source static tcp 10.10.10.10 80 1.0.0.1 180
|
||
|
ip nat inside source static tcp 10.10.10.10 443 1.0.0.1 443
|
||
|
|
||
|
exit
|
||
|
exit
|
||
|
disable
|
||
|
exit
|
||
|
```
|