File tree Expand file tree Collapse file tree 2 files changed +1
-26
lines changed
systemvm/debian/opt/cloud/bin/cs Expand file tree Collapse file tree 2 files changed +1
-26
lines changed Original file line number Diff line number Diff line change 2121import time
2222import CsHelper
2323from CsDatabag import CsDataBag
24- from CsApp import CsApache , CsDnsmasq , CsPasswdSvc
24+ from CsApp import CsApache , CsPasswdSvc
2525from CsRoute import CsRoute
2626from CsRule import CsRule
2727
@@ -566,10 +566,6 @@ def post_config_change(self, method):
566566 logging .error (
567567 "Not able to setup source-nat for a regular router yet" )
568568
569- if self .config .has_dns () or self .config .is_dhcp ():
570- dns = CsDnsmasq (self )
571- dns .add_firewall_rules ()
572-
573569 if self .config .has_metadata ():
574570 app = CsApache (self )
575571 app .setup ()
Original file line number Diff line number Diff line change @@ -81,24 +81,3 @@ def stop(self):
8181 def restart (self ):
8282 CsHelper .service ("cloud-password-server@%s" % self .ip , "restart" )
8383
84-
85- class CsDnsmasq (CsApp ):
86- """ Set up dnsmasq """
87-
88- def add_firewall_rules (self ):
89- """ Add the necessary firewall rules
90- """
91- # self.fw.append(["", "front",
92- # "-A INPUT -i %s -p udp -m udp --dport 67 -j ACCEPT" % self.dev
93- # ])
94- #
95- # if self.config.has_dns():
96- # self.fw.append([
97- # "", "front",
98- # "-A INPUT -i %s -d %s/32 -p udp -m udp --dport 53 -j ACCEPT" % (self.dev, self.ip)
99- # ])
100- #
101- # self.fw.append([
102- # "", "front",
103- # "-A INPUT -i %s -d %s/32 -p tcp -m tcp --dport 53 -j ACCEPT" % (self.dev, self.ip)
104- # ])
You can’t perform that action at this time.
0 commit comments