Simple nat example

In this example a very simple nat setup is made. Given a router with 2 interfaces a) public ip address from internet b) trusted network zone Computers in trusted network zone are allowed to reach internet over the public ip address

Simple NAT example
This is for vyatta vc6.4 and up. Things like dhcp server and dns setup (resolver for the computers on 192.168.1.1/24) are not described/defined here.

interfaces { ethernet eth0 { address 192.168.1.1/24 description trustedlan duplex auto firewall { out { name DMZ-Trusted }       }     ethernet eth1 { address dhcp description "isp connection" } nat { source { rule 100 { description masquerade NAT many to one outbound-interface eth1 protocol all source { address 192.168.1.0/24 }            translation address masquerade } }