Comments (4)
Hi @ziyedbe ,
Sorry for misunderstanding your question. Here, I've prepared an example to create a VWP and allow traffic in both directions. I hope this is helpful to solve your question. Let me know if this doesn't satisfy your needs.
tasks:
- name: Configure virtual wire pairs.
fortios_system_virtual_wire_pair:
vdom: root
state: present
system_virtual_wire_pair:
member:
- interface_name: port4
- interface_name: port5
name: VWP
- name: Configure IPv4/IPv6 policies.
fortios_firewall_policy:
vdom: root
state: present
firewall_policy:
action: accept
comments: example
dstaddr:
- name: all
dstintf:
- name: port4
- name: port5
name: VWP_policy
policyid: '4'
service:
- name: ALL
srcaddr:
- name: all
srcintf:
- name: port4
- name: port5
schedule: always
Thanks,
Maxx
from ansible-galaxy-fortios-collection.
Hi @ziyedbe ,
Thank you for your question. IPv4 Virtual Wire Pair Policies are configured similarly to firewall policies. Here's how to set up a wire pair policy. I hope this information is helpful for you. Please let me know if you have any further questions or if this doesn't address your inquiry.
Thanks,
Maxx
from ansible-galaxy-fortios-collection.
Hello @MaxxLiu22 ,
Thank you for your answer, but i m looking for a way to configure IPv4 Virtual Wire Pair Policies using ansible not via the GUI or command lines.
Thank you !
from ansible-galaxy-fortios-collection.
Hello @MaxxLiu22 ,
Thank you! This is exactly what I needed !
Best regards,
Zied.
from ansible-galaxy-fortios-collection.
Related Issues (20)
- Error creating VLAN interface in different VDOM with fortinet.fortios.fortios_system_interface HOT 11
- fortios_firewall_vip ignores ldb_method HOT 3
- Custom Application list HOT 3
- KeyError: 'ldb_method' with --check HOT 2
- Playbook Runs successfully, but dont see addition in GUI after, cli shows its there HOT 3
- firewall policy always shows changes HOT 6
- ConnectionError: command timeout triggered HOT 1
- Unknown action 0 Command fail. Return code -1 HOT 1
- API based auth failed: wrong credentials HOT 1
- full backup HOT 4
- `IndexError: list index out of range` when running check mode on `fortios_firewall_addrgrp` HOT 1
- fortinet.fortios 2.3.6 does not work with ansible-core 2.17.2 for backups HOT 4
- fortios_configuration_fact local usernames under global configuration HOT 1
- fortinet.fortios.fortios_configuration_fact | Selector: "system_status" | "msg": "Error in repo" | fortios version 2.3.6 HOT 1
- Adding new secondary ip instead of replacing HOT 2
- Question on fortinet.fortios.fortios_export_config_playbook HOT 6
- How to speed up configuration changes HOT 1
- fortinet.fortios.fortios_firewall_addrgrp & json input HOT 3
- system_version check breaks support for using vDOM-specific credentials HOT 1
- "fortios_router_prefix_list" module is replacing existing configuration HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-galaxy-fortios-collection.