add support to enable routing
This commit is contained in:
parent
a3f13ff8da
commit
8a8192749b
5 changed files with 51 additions and 0 deletions
|
|
@ -30,3 +30,18 @@
|
|||
mode: "0755"
|
||||
notify:
|
||||
- reload nftables
|
||||
|
||||
- name: copy netforwarding script
|
||||
when: firewall.routing
|
||||
template:
|
||||
src: netforwarding.j2
|
||||
dest: /usr/local/bin/netforwarding
|
||||
mode: 0755
|
||||
|
||||
- name: setup netforwarding service
|
||||
when: firewall.routing
|
||||
notify: restart netforwarding
|
||||
template:
|
||||
src: netforwarding.service.j2
|
||||
dest: /etc/systemd/system/netforwarding.service
|
||||
mode: 0644
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue