Git Product home page Git Product logo

pssonicwall's Introduction

Build status

PSSonicWall

This PowerShell module provides a set of functions to interact with SonicWall appliances using its SonicOS API.

Prerequisites

First of all you must activate the SonicOS API in your SonicWall appliance. SonicOS API was introduced in SonicOS 6.5.1 so if you have a previous version you must first upgrade your appliance in order to use this module.

To activate the SonicOS API you can follow these steps(instructions taken from the SonicOS API Reference):

  • Navigate to MANAGE | Network > Appliance | Base Settings.
  • Scroll to the SonicOS API section.
  • Select Enable SonicOS API.
  • Select Enable RFC-2617 HTTP Basic Access authentication.
  • Click Accept.

Connecting and disconnecting to a SonicWall Appliance

The first step for accessing the SonicOS API using PSSonicWall is to connect to the appliance. For that purpose you can use Connect-SWAppliance:

Connect-SWAppliance -Server 192.168.168.168

When you are done with the API interaction you should disconnect your session. To do so you can use Disconnect-SWAppliance:

Disconnect-SWAppliance

Using Get functions

Once you are connected you can use PSSonicWall to read all the information that SonicOS API can offer. Here's a list of the Get commands currently available:

Function Description
Get-SWAccessRule Retrieve Access Rules
Get-SWAddressGroup Retrieve Address Groups
Get-SWAddressObject Retrive Address Objects
Get-SWDns Retrieve DNS configuration
Get-SWInterface Retrieve interfaces
Get-SWNatPolicy Retrieve NAT Policies
Get-SWRoutePolicy Retrieve Routing Policies
Get-SWSchedule Retrieve Schedules
Get-SWServiceGroup Retrieve Service Groups
Get-SwZone Retrieve Zones

If you want to know more about a certain function you can use Get-Help NameOfTheFuncion to know more.

pssonicwall's People

Contributors

mmeseguer avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

pssonicwall's Issues

Contribution

Hello,
I'm loving the Sonicwall module . I've created several additional functional and would like to work with you to build this module out further. I'm not great at development but I work with Sonicwall firewalls all day and your module has helped me allot.

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.