ufw_forward
UFW Forward
Configure port forwarding in UFW
Requirements
UFW needs to be installed and enabled. This role currently supports Ubuntu 20.04 and 22.04.
Role Variables
Port forwarding settings are required as a list under: ufw_forward See the example below for further explaination.
Dependencies
Example Playbook
You must either be root or become: true
in order to
- hosts: all
tasks:
- name: Configure port forwarding
ansible.builtin.include_role:
name: wiggels.ufw_forward
vars:
ufw_forward_interface: ens192
ufw_forward_rules:
- type: tcp
src_port: 80
dst_ip: 127.0.0.1
dst_port: 8080
License
MIT
Author Information
Install
ansible-galaxy install wiggels/ansible-role-ufw-forward
License
mit
Downloads
1627
Owner
Experienced SRE and SecOps Engineer