예제 #1
0
파일: test_reject.py 프로젝트: regit/nufw
 def testRejectAuthenticated(self):
     self.config["nuauth_reject_after_timeout"] = 0
     self.config["nuauth_reject_authenticated_drop"] = 1
     self.nuauth = Nuauth(self.config)
     user = self.users[0]
     client = user.createClientWithCerts()
     testPortFailure(self, self.iptables, client, VALID_PORT, ECONNREFUSED)
     client.stop()
예제 #2
0
파일: test_reject.py 프로젝트: regit/nufw
 def testDrop(self):
     self.config["nuauth_reject_after_timeout"] = "0"
     self.config["nuauth_reject_authenticated_drop"] = "0"
     self.nuauth = Nuauth(self.config)
     user = self.users[0]
     client = user.createClientWithCerts()
     testPortFailure(self, self.iptables, client, VALID_PORT, ETIMEDOUT)
     client.stop()
예제 #3
0
 def testRejectAuthenticated(self):
     self.config["nuauth_reject_after_timeout"] = 0
     self.config["nuauth_reject_authenticated_drop"] = 1
     self.nuauth = Nuauth(self.config)
     user = self.users[0]
     client = user.createClientWithCerts()
     testPortFailure(self, self.iptables, client, VALID_PORT, ECONNREFUSED)
     client.stop()
예제 #4
0
 def testDrop(self):
     self.config["nuauth_reject_after_timeout"] = "0"
     self.config["nuauth_reject_authenticated_drop"] = "0"
     self.nuauth = Nuauth(self.config)
     user = self.users[0]
     client = user.createClientWithCerts()
     testPortFailure(self, self.iptables, client, VALID_PORT, ETIMEDOUT)
     client.stop()
예제 #5
0
파일: test_reject.py 프로젝트: regit/nufw
 def testRejectTimedout(self):
     self.config["nuauth_reject_after_timeout"] = "1"
     self.config["nuauth_reject_authenticated_drop"] = "0"
     self.nuauth = Nuauth(self.config)
     testPortFailure(self, self.iptables, None, VALID_PORT, ECONNREFUSED)
예제 #6
0
 def testRejectTimedout(self):
     self.config["nuauth_reject_after_timeout"] = "1"
     self.config["nuauth_reject_authenticated_drop"] = "0"
     self.nuauth = Nuauth(self.config)
     testPortFailure(self, self.iptables, None, VALID_PORT, ECONNREFUSED)