• Jussi Laakkonen's avatar
    [connman] Use protocol prefix with dot separator in firewall conf. JB#42675 · 39d02c6e
    Jussi Laakkonen authored
    This commit makes firewall configuration a bit more closer to the rest
    of the connman configuration file formats to preserve consistency. This
    changes to use following format in the firewall configuration:
    
    Rules with key:
    PROTOCOL.CHAIN.RULES
    
    Policies with key:
    PROTOCOL.CHAIN.POLICY
    
    For example, IPv4 chain OUTPUT policy for DROP packets would be:
    IPv4.OUTPUT.POLICY = DROP
    
    And rules for the same chain:
    IPv4.OUTPUT.RULES = -p tcp -m tcp --dport 80 -j ACCEPT
    39d02c6e
firewall.c 58.7 KB