Coder Social home page Coder Social logo

Comments (4)

MaxxLiu22 avatar MaxxLiu22 commented on August 23, 2024 1

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.

MaxxLiu22 avatar MaxxLiu22 commented on August 23, 2024

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.

ziyedbe avatar ziyedbe commented on August 23, 2024

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.

ziyedbe avatar ziyedbe commented on August 23, 2024

Hello @MaxxLiu22 ,
Thank you! This is exactly what I needed !

Best regards,
Zied.

from ansible-galaxy-fortios-collection.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.