61 lines
939 B
Markdown
61 lines
939 B
Markdown
- name: Install Default Gateway IP {{ publicip }}
|
||
|
||
pfsensible.core.pfsense_gateway:
|
||
|
||
name: default_gw
|
||
|
||
interface: wan
|
||
|
||
gateway: "{{ publicip }}"
|
||
|
||
state: present
|
||
|
||
|
||
|
||
- name: Set Default Route for Router
|
||
|
||
pfsensible.core.pfsense_default_gateway:
|
||
|
||
gateway: defaultgw4
|
||
|
||
ipprotocol: inet
|
||
|
||
|
||
|
||
- name: Enable Interface vtnet0 (Gateway)
|
||
|
||
pfsensible.core.interface:
|
||
|
||
descr: wan
|
||
|
||
interface: vtnet0
|
||
|
||
interface_descr: wan
|
||
|
||
ipv4_address: "10.10.10.2"
|
||
|
||
ipv4_gateway: "10.10.10.1"
|
||
|
||
ipv4_prefixlen: 28
|
||
|
||
ipv4_type: static
|
||
|
||
|
||
|
||
- name: Enable Interface vtnet1 (Privat-Network)
|
||
|
||
pfsensible.core.interface:
|
||
|
||
descr: lan
|
||
|
||
interface: vtnet1
|
||
|
||
interface_descr: lan
|
||
|
||
ipv4_address: {{ privat-network-gw }}
|
||
|
||
ipv4_gateway: "10.10.10.2"
|
||
|
||
ipv4_prefixlen: 24
|
||
|
||
ipv4_type: static |