Coder Social home page Coder Social logo

prosafe.lua's Introduction

prosafe.lua

This is a lua script to administer Netgear Prosafe smart switches via the telnet port. It is somewhat experimental and requires you to have libUseful and libUseful-lua installed.

N.B. Recent Netgear switches have the telnet management interface turned off by default. You will have to turn it on using the http management screens.

Features:

  • Displaying various information about a switch
  • set the switch's IPv4 address
  • set the switch's management password
  • turn on/off remote management services
  • set switches telnet banner
  • set syslog server to send logs to
  • display switch log
  • set sntp server to get time from
  • set switch clock to localhost time
  • list state of ports and mac addresses active on each port
  • disable/turn-off ports
  • lock ports to only allow traffic from current mac addresses

USAGE

  lua prosafe.lua <host> [options]

-pass <password>         supply password for logging in
-proxy <host>            proxy to connect to target via
-set-pass <password>     change password
-set-ip <address>        change ip4 address
-sync-clock              sync clock to local
-sntp <host>             set sntp server to get time updates from
-syslog <host>           set server to send logging to
-banner <text>           set telnet login banner
-snmp                    set Simple Network Management Protocol to 'off', 'on' or 
-ports                   show port status
-disable-port <port>     turn off/disable a port
-enable-port <port>      turn on a previously disabled/turned off port
-lock-port <port>        lock a port to the current MAC address(es)
-unlock-port <port>      unlock port to accept any MAC address
-unused-off              turn off unusued ports
-all-on                  turn on all ports
-unlock                  unlock all ports
-showlog                 output logs
-save                    make setting changes permanent

prosafe.lua's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.