This role sets up a simple NAT router on a Linux machine that can act as a default gateway for the local network to the Internet.
None.
public_interface
: The name of the network interface that faces to the public network (Internet). The default value is eth0
private_interface
: The name of the network interface that faces to the local/private network. The default value is eth1
None.
- hosts: linux_routers
roles:
- role: rubentsirunyan.nat_router
vars:
- public_interface: enp0s3
- private_interface: eth0
BSD
This role is created by Ruben Tsirunyan https://github.com/rubentsirunyan