ManaTools::Shared::Shorewall

Section: User Contributed Perl Documentation (3)
Updated: 2017-07-06
Page Index
 

write_

INPUT

  $conf: HASH, contains the configuration to write

  $action: Str, possible values are "keep" or "drop"

OUTPUT

    0: requires user interaction
    1: everything has been done

DESCRIPTION

This function stores the configuration for shorewall inside the proper files.

NOTES

if write_ is called without the $action parameter it can return 0 (i.e. user interaction requested) when the firewall configuration has been manually changed.

In that case the developer will have to handle this request by providing two choices within the domain (keep | drop) and then recall write_ with the choosen behaviour.


 

Index

write_