wiggels.ufw_forward
UFW Forward
=========
Set up port forwarding in UFW
Requirements
- UFW must be installed and active.
- This setup works for Ubuntu versions 20.04 and 22.04.
Role Variables
- You need to provide port forwarding rules as a list using:
ufw_forward
- Check the example below for more details.
Dependencies
Example Playbook
You need root access or to use become: true
to run this.
- hosts: all
tasks:
- name: Set up 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 License
Author Information
Installa
ansible-galaxy install wiggels.ufw_forward
Licenza
mit
Download
2.1k
Proprietario
Experienced SRE and SecOps Engineer