iplock: iplock::flush Class Reference

iplock  3.0.18
A command line tool to add and remove rules from your firewall without you having to be root.

Block the specified IP addresses. More...

#include <iplock.h>

Inheritance diagram for iplock::flush:
Collaboration diagram for iplock::flush:
Public Types typedef std::shared_ptr< commandpointer_t   Public Member Functions  flush (iplock *parent, advgetopt::getopt::pointer_t opt, char const *command_name="iplock --flush")   virtual ~flush () override   virtual void run () override   Protected Member Functions void verify_ip (std::string const &ip)   Protected Attributes std::string f_chain = std::string("unwanted")   std::string f_interface = std::string("eth0")   iplockf_iplock = nullptr   advgetopt::getopt::pointer_t f_iplock_opt = advgetopt::getopt::pointer_t()   advgetopt::getopt::pointer_t f_opt = advgetopt::getopt::pointer_t()   bool const f_quiet   bool const f_verbose   Detailed Description

This class goes through the list of IP addresses specified on the command line and add them to the chain as defined in ipconfig.conf.

By default, the scheme is set to "http". It can be changed with the –scheme command line option.

Definition at line 138 of file iplock.h.

Member Typedef Documentation
typedef std::shared_ptr<command> iplock::command::pointer_t inherited

Definition at line 41 of file iplock.h.

Constructor & Destructor Documentation
iplock::flush::flush ( iplockparent, advgetopt::getopt::pointer_t  opt, char const *  command_name = "iplock --flush"  )

Definition at line 1485 of file iplock.cpp.

Referenced by iplock::count::run().

iplock::flush::~flush ( ) overridevirtual

Definition at line 1494 of file iplock.cpp.

Member Function Documentation
void iplock::flush::run ( ) overridevirtual
void iplock::command::verify_ip ( std::string const &  ip) protectedinherited

Definition at line 696 of file iplock.cpp.

References iplock::scheme::scheme().

Referenced by iplock::block_or_unblock::handle_ips(), and iplock::count::run().

Member Data Documentation
std::string iplock::command::f_chain = std::string("unwanted") protectedinherited
std::string iplock::command::f_interface = std::string("eth0") protectedinherited
iplock* iplock::command::f_iplock = nullptr protectedinherited

Definition at line 54 of file iplock.h.

Referenced by iplock::batch::run().

advgetopt::getopt::pointer_t iplock::command::f_iplock_opt = advgetopt::getopt::pointer_t() protectedinherited
advgetopt::getopt::pointer_t iplock::command::f_opt = advgetopt::getopt::pointer_t() protectedinherited
bool const iplock::command::f_quiet protectedinherited

Definition at line 59 of file iplock.h.

Referenced by iplock::block_or_unblock::handle_ips(), run(), and iplock::batch::run().

bool const iplock::command::f_verbose protectedinherited

The documentation for this class was generated from the following files:

This document is part of the Snap! Websites Project.

Copyright by Made to Order Software Corp.

Syndicate content

Snap! Websites
An Open Source CMS System in C++

Contact Us Directly