feat: update port forwarding configuration to use API call
All checks were successful
Deploy / deploy (push) Successful in 34s
All checks were successful
Deploy / deploy (push) Successful in 34s
This commit is contained in:
94
config.yaml
94
config.yaml
@@ -219,48 +219,52 @@
|
|||||||
useVlanTagging: true
|
useVlanTagging: true
|
||||||
|
|
||||||
- name: Configure Port Forwarding
|
- name: Configure Port Forwarding
|
||||||
cisco.meraki.networks_appliance_firewall_port_forwarding_rules:
|
ansible.builtin.uri:
|
||||||
state: present
|
url: "https://api.meraki.com/api/v1/networks/{{ nid }}/appliance/firewall/portForwardingRules"
|
||||||
networkId: "{{ nid }}"
|
method: PUT
|
||||||
purge: false
|
headers:
|
||||||
rules:
|
X-Cisco-Meraki-API-Key: "{{ lookup('ansible.builtin.env', 'MERAKI_DASHBOARD_API_KEY') }}"
|
||||||
- name: NAS HTTP
|
Content-Type: application/json
|
||||||
uplink: internet1
|
body_format: json
|
||||||
protocol: tcp
|
body:
|
||||||
publicPort: 80
|
rules:
|
||||||
lanIp: 192.168.10.2
|
- name: NAS HTTP
|
||||||
localPort: 80
|
uplink: internet1
|
||||||
allowedIps:
|
protocol: tcp
|
||||||
- any
|
publicPort: 80
|
||||||
- name: NAS HTTPS
|
lanIp: 192.168.10.2
|
||||||
uplink: internet1
|
localPort: 80
|
||||||
protocol: tcp
|
allowedIps:
|
||||||
publicPort: 443
|
- any
|
||||||
lanIp: 192.168.10.2
|
- name: NAS HTTPS
|
||||||
localPort: 443
|
uplink: internet1
|
||||||
allowedIps:
|
protocol: tcp
|
||||||
- any
|
publicPort: 443
|
||||||
- name: NAS SSH
|
lanIp: 192.168.10.2
|
||||||
uplink: internet1
|
localPort: 443
|
||||||
protocol: tcp
|
allowedIps:
|
||||||
publicPort: 3102
|
- any
|
||||||
lanIp: 192.168.10.2
|
- name: NAS SSH
|
||||||
localPort: 3102
|
uplink: internet1
|
||||||
allowedIps:
|
protocol: tcp
|
||||||
- 5.135.141.48
|
publicPort: 3102
|
||||||
- name: Xbox TCP
|
lanIp: 192.168.10.2
|
||||||
uplink: internet1
|
localPort: 3102
|
||||||
protocol: tcp
|
allowedIps:
|
||||||
publicPort: 3074
|
- 5.135.141.48
|
||||||
lanIp: 192.168.40.2
|
- name: Xbox TCP
|
||||||
localPort: 3074
|
uplink: internet1
|
||||||
allowedIps:
|
protocol: tcp
|
||||||
- any
|
publicPort: 3074
|
||||||
- name: Xbox UDP
|
lanIp: 192.168.40.2
|
||||||
uplink: internet1
|
localPort: 3074
|
||||||
protocol: udp
|
allowedIps:
|
||||||
publicPort: 3074
|
- any
|
||||||
lanIp: 192.168.40.2
|
- name: Xbox UDP
|
||||||
localPort: 3074
|
uplink: internet1
|
||||||
allowedIps:
|
protocol: udp
|
||||||
- any
|
publicPort: 3074
|
||||||
|
lanIp: 192.168.40.2
|
||||||
|
localPort: 3074
|
||||||
|
allowedIps:
|
||||||
|
- any
|
||||||
|
|||||||
Reference in New Issue
Block a user