def __init__(self, file='shorewall.conf'): ShorewallConf.__init__(self, file, r'^(?P<option>[^=]+)=(?P<value>.*)', '%s=%s') self.read()
def __init__(self, file='masq'): ShorewallConf.__init__(self, file, r'^(?P<lan_if>[\w]+)\s+(?P<wan_if>[\w]+)$') self.read()
def __init__(self, file='interfaces'): ShorewallConf.__init__(self, file, r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)\s*(?P<options>[\w,= ]+)?$') self.read()
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()
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()
def __init__(self, file='interfaces'): ShorewallConf.__init__( self, file, r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)\s*(?P<options>[\w,= ]+)?$') self.read()
def __init__(self): ShorewallConf.__init__(self, 'zones', r'^(?P<name>[\w\d]+)\s+(?P<type>[\w\d]+)') self.read()
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()
def __init__(self): ShorewallConf.__init__(self, 'masq', r'^(?P<lan_if>[\w]+)\s+(?P<wan_if>[\w]+)') self.read()
def __init__(self): ShorewallConf.__init__(self, 'shorewall.conf', r'^(?P<option>[^=]+)=(?P<value>.*)', '%s=%s') self.read()
def __init__(self): ShorewallConf.__init__(self, 'zones', r'^(?P<name>[\w\d]+)\s+(?P<type>[\w\d]+)$') self.read()
def __init__(self): ShorewallConf.__init__( self, 'interfaces', r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)\s+(?P<options>[\w,=]+)$') self.read()
def __init__(self): ShorewallConf.__init__(self, 'masq', r'^(?P<lan_if>[\w]+)\s+(?P<wan_if>[\w]+)$') self.read()
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()
def __init__(self, file='zones'): ShorewallConf.__init__(self, file, r'^(?P<name>[\w\d]+)\s+(?P<type>[\w\d]+)$') self.read()
def __init__(self): ShorewallConf.__init__(self, 'interfaces', r'^(?P<zone>[\w]+)\s+(?P<if>[\w]+)') self.read()
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()
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()