示例#1
0
 def __init__(self, file='shorewall.conf'):
     ShorewallConf.__init__(self, file,
         r'^(?P<option>[^=]+)=(?P<value>.*)', '%s=%s')
     self.read()
示例#2
0
 def __init__(self, file='masq'):
     ShorewallConf.__init__(self, file,
         r'^(?P<lan_if>[\w]+)\s+(?P<wan_if>[\w]+)$')
     self.read()
示例#3
0
 def __init__(self, file='interfaces'):
     ShorewallConf.__init__(self, file,
         r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)\s*(?P<options>[\w,= ]+)?$')
     self.read()
示例#4
0
文件: __init__.py 项目: neoclust/mmc
 def __init__(self):
     ShorewallConf.__init__(self, 'rules',
         r'^(?P<action>[\w\d/]+)\s+(?P<src>[\w\d:.]+)\s+(?P<dst>[\w\d:.]+)\s*(?P<proto>[\w\d]*)\s*(?P<dst_port>[:\w\d]*)')
     self.read()
示例#5
0
 def __init__(self, file='policy'):
     ShorewallConf.__init__(self, file,
         r'^(?P<src>[\w]+)\s+(?P<dst>[\w]+)\s+(?P<policy>ACCEPT|DROP|REJECT)\s*(?P<log>[\w]*)$')
     self.read()
示例#6
0
 def __init__(self, file='interfaces'):
     ShorewallConf.__init__(
         self, file,
         r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)\s*(?P<options>[\w,= ]+)?$')
     self.read()
示例#7
0
文件: __init__.py 项目: neoclust/mmc
 def __init__(self):
     ShorewallConf.__init__(self, 'zones',
         r'^(?P<name>[\w\d]+)\s+(?P<type>[\w\d]+)')
     self.read()
示例#8
0
 def __init__(self):
     ShorewallConf.__init__(
         self, 'rules',
         r'^(?P<action>[\w\d/]+)\s+(?P<src>[\w\d:.,]+)\s+(?P<dst>[\w\d:.]+)\s*(?P<proto>[\w\d]*)\s*(?P<dst_port>[:\w\d]*)$'
     )
     self.read()
示例#9
0
文件: __init__.py 项目: neoclust/mmc
 def __init__(self):
     ShorewallConf.__init__(self, 'masq',
         r'^(?P<lan_if>[\w]+)\s+(?P<wan_if>[\w]+)')
     self.read()
示例#10
0
 def __init__(self):
     ShorewallConf.__init__(self, 'shorewall.conf',
                            r'^(?P<option>[^=]+)=(?P<value>.*)', '%s=%s')
     self.read()
示例#11
0
 def __init__(self):
     ShorewallConf.__init__(self, 'zones',
                            r'^(?P<name>[\w\d]+)\s+(?P<type>[\w\d]+)$')
     self.read()
示例#12
0
 def __init__(self):
     ShorewallConf.__init__(
         self, 'interfaces',
         r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)\s+(?P<options>[\w,=]+)$')
     self.read()
示例#13
0
 def __init__(self):
     ShorewallConf.__init__(self, 'masq',
                            r'^(?P<lan_if>[\w]+)\s+(?P<wan_if>[\w]+)$')
     self.read()
示例#14
0
 def __init__(self):
     ShorewallConf.__init__(
         self, 'policy',
         r'^(?P<src>[\w]+)\s+(?P<dst>[\w]+)\s+(?P<policy>ACCEPT|DROP|REJECT)\s*(?P<log>[\w]*)$'
     )
     self.read()
示例#15
0
 def __init__(self, file='zones'):
     ShorewallConf.__init__(self, file,
         r'^(?P<name>[\w\d]+)\s+(?P<type>[\w\d]+)$')
     self.read()
示例#16
0
文件: __init__.py 项目: neoclust/mmc
 def __init__(self):
     ShorewallConf.__init__(self, 'interfaces',
         r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)')
     self.read()
示例#17
0
 def __init__(self, file='rules'):
     ShorewallConf.__init__(self, file,
         r'^(?P<action>[\w\d/]+)\s+(?P<src>[\w\d:.,]+)\s+(?P<dst>[\w\d:.]+)\s*(?P<proto>[\w\d]*)\s*(?P<dst_port>[:,\d]*)$')
     self.read()
示例#18
0
 def __init__(self, file='rules'):
     ShorewallConf.__init__(
         self, file,
         r'^(?P<action>[\w\d/]+)\s+(?P<src>[\w\d:/!~.,-]+)\s+(?P<dst>[\w\d:/!~.,-]+)\s*(?P<proto>[\w\d]*)\s*(?P<dst_port>[:,\d]*)$'
     )
     self.read()