Add support for specifying SNAT source and destination filters

This is useful if forwarded packets need to exit on a different
interface depending on the source or destination IP address or port.

Change-Id: Ifbfbade4baaa1901b08549e52acc725e45379a16
This commit is contained in:
Pierre Riteau 2022-08-11 12:42:57 +02:00
parent a2f9801034
commit 3903ca92e9
2 changed files with 11 additions and 0 deletions

View File

@ -15,5 +15,10 @@
out_interface: "{{ item.interface }}" out_interface: "{{ item.interface }}"
jump: SNAT jump: SNAT
to_source: "{{ item.source_ip }}" to_source: "{{ item.source_ip }}"
destination: "{{ item.destination | default(omit) }}"
destination_port: "{{ item.destination_port | default(omit) }}"
destination_ports: "{{ item.destination_ports | default(omit) }}"
source: "{{ item.source | default(omit) }}"
source_port: "{{ item.source_port | default(omit) }}"
with_items: "{{ snat_rules }}" with_items: "{{ snat_rules }}"
become: True become: True

View File

@ -0,0 +1,6 @@
---
features:
- |
Adds support for specifying SNAT source and destination filters. This is
useful if forwarded packets need to exit on a different interface depending
on the source or destination IP address or port.