cloudstack-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jburwell <>
Subject [GitHub] cloudstack pull request #1653: Prevent DNS reflection attacks
Date Mon, 22 Aug 2016 14:41:35 GMT
Github user jburwell commented on a diff in the pull request:
    --- Diff: systemvm/patches/debian/config/opt/cloud/bin/cs/ ---
    @@ -452,9 +452,9 @@ def fw_vpcrouter(self):
                     ["filter", "", "-A INPUT -i %s -p udp -m udp --dport 67 -j ACCEPT" %])
    -                ["filter", "", "-A INPUT -i %s -p udp -m udp --dport 53 -j ACCEPT" %])
    +                ["filter", "", "-A INPUT -i %s -p udp -m udp --dport 53 -s %s -j ACCEPT"
% (, self.address['network'])])
    -                ["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 53 -j ACCEPT" %])
    +                ["filter", "", "-A INPUT -i %s -p tcp -m tcp --dport 53 -s %s -j ACCEPT"
% (, self.address['network'])])
    --- End diff --
    Minor nit: extract the value of ``self.address['network']`` to a local variable?  Not
only will change ensure consistency of the value across the four rules, but it will make the
code more literate.

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message