"Fossies" - the Fresh Open Source Software Archive

Member "zorp-7.0.4/zorp/policy.py.ssh.sample" (28 Oct 2019, 1273 Bytes) of package /linux/privat/zorp-7.0.4.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Python source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "policy.py.ssh.sample": 6.0.11_vs_7.0.1.

    1 ############################################################################
    2 ##
    3 ## Copyright (c) 2000-2015 BalaBit IT Ltd, Budapest, Hungary
    4 ## Copyright (c) 2015-2018 BalaSys IT Ltd, Budapest, Hungary
    5 ##
    6 ##
    7 ## This program is free software; you can redistribute it and/or modify
    8 ## it under the terms of the GNU General Public License as published by
    9 ## the Free Software Foundation; either version 2 of the License, or
   10 ## (at your option) any later version.
   11 ##
   12 ## This program is distributed in the hope that it will be useful,
   13 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
   14 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   15 ## GNU General Public License for more details.
   16 ##
   17 ## You should have received a copy of the GNU General Public License along
   18 ## with this program; if not, write to the Free Software Foundation, Inc.,
   19 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
   20 ##
   21 ############################################################################
   22 
   23 # sample firewall policy with access to SSH servers.
   24 
   25 from Zorp.Core import *
   26 
   27 #
   28 # The name of this function is passed to the Zorp binary with the --as
   29 # command line option.
   30 #
   31 
   32 # zorp_ssh instance
   33 def zorp_ssh():
   34     PFService("ssh")
   35 
   36     Rule(dst_port=22, service="ssh")