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 21
21
import time
22
22
import CsHelper
23
23
from CsDatabag import CsDataBag
24
- from CsApp import CsApache , CsDnsmasq , CsPasswdSvc
24
+ from CsApp import CsApache , CsPasswdSvc
25
25
from CsRoute import CsRoute
26
26
from CsRule import CsRule
27
27
@@ -566,10 +566,6 @@ def post_config_change(self, method):
566
566
logging .error (
567
567
"Not able to setup source-nat for a regular router yet" )
568
568
569
- if self .config .has_dns () or self .config .is_dhcp ():
570
- dns = CsDnsmasq (self )
571
- dns .add_firewall_rules ()
572
-
573
569
if self .config .has_metadata ():
574
570
app = CsApache (self )
575
571
app .setup ()
Original file line number Diff line number Diff line change @@ -81,24 +81,3 @@ def stop(self):
81
81
def restart (self ):
82
82
CsHelper .service ("cloud-password-server@%s" % self .ip , "restart" )
83
83
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