close forwarding channel with friendly error

This commit is contained in:
Michel Oosterhof 2015-08-29 07:57:57 +00:00
parent dbaca05201
commit 60af26cf56
1 changed files with 1 additions and 0 deletions

View File

@ -655,5 +655,6 @@ class CowrieConnectForwardingChannel(forwarding.SSHConnectForwardingChannel):
def dataReceived(self, data):
log.msg(eventid='KIPP0015', format='direct-tcp forward to %(dst_ip)s:%(dst_port)s with data %(data)s',
dst_ip=self.hostport[0], dst_port=self.hostport[1], data=repr(data))
self._close("Connection refused")
# vim: set et sw=4 et: