handshake_ix.go 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486
  1. package nebula
  2. import (
  3. "time"
  4. "github.com/flynn/noise"
  5. "github.com/sirupsen/logrus"
  6. "github.com/slackhq/nebula/header"
  7. "github.com/slackhq/nebula/iputil"
  8. "github.com/slackhq/nebula/udp"
  9. )
  10. // NOISE IX Handshakes
  11. // This function constructs a handshake packet, but does not actually send it
  12. // Sending is done by the handshake manager
  13. func ixHandshakeStage0(f *Interface, hh *HandshakeHostInfo) bool {
  14. err := f.handshakeManager.allocateIndex(hh)
  15. if err != nil {
  16. f.l.WithError(err).WithField("vpnIp", hh.hostinfo.vpnIp).
  17. WithField("handshake", m{"stage": 0, "style": "ix_psk0"}).Error("Failed to generate index")
  18. return false
  19. }
  20. certState := f.pki.GetCertState()
  21. ci := NewConnectionState(f.l, f.cipher, certState, true, noise.HandshakeIX, []byte{}, 0)
  22. hh.hostinfo.ConnectionState = ci
  23. hsProto := &NebulaHandshakeDetails{
  24. InitiatorIndex: hh.hostinfo.localIndexId,
  25. Time: uint64(time.Now().UnixNano()),
  26. Cert: certState.RawCertificateNoKey,
  27. }
  28. hsBytes := []byte{}
  29. hs := &NebulaHandshake{
  30. Details: hsProto,
  31. }
  32. hsBytes, err = hs.Marshal()
  33. if err != nil {
  34. f.l.WithError(err).WithField("vpnIp", hh.hostinfo.vpnIp).
  35. WithField("handshake", m{"stage": 0, "style": "ix_psk0"}).Error("Failed to marshal handshake message")
  36. return false
  37. }
  38. h := header.Encode(make([]byte, header.Len), header.Version, header.Handshake, header.HandshakeIXPSK0, 0, 1)
  39. msg, _, _, err := ci.H.WriteMessage(h, hsBytes)
  40. if err != nil {
  41. f.l.WithError(err).WithField("vpnIp", hh.hostinfo.vpnIp).
  42. WithField("handshake", m{"stage": 0, "style": "ix_psk0"}).Error("Failed to call noise.WriteMessage")
  43. return false
  44. }
  45. // We are sending handshake packet 1, so we don't expect to receive
  46. // handshake packet 1 from the responder
  47. ci.window.Update(f.l, 1)
  48. hh.hostinfo.HandshakePacket[0] = msg
  49. hh.ready = true
  50. return true
  51. }
  52. func ixHandshakeStage1(f *Interface, addr *udp.Addr, via *ViaSender, packet []byte, h *header.H) {
  53. certState := f.pki.GetCertState()
  54. ci := NewConnectionState(f.l, f.cipher, certState, false, noise.HandshakeIX, []byte{}, 0)
  55. // Mark packet 1 as seen so it doesn't show up as missed
  56. ci.window.Update(f.l, 1)
  57. msg, _, _, err := ci.H.ReadMessage(nil, packet[header.Len:])
  58. if err != nil {
  59. f.l.WithError(err).WithField("udpAddr", addr).
  60. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Failed to call noise.ReadMessage")
  61. return
  62. }
  63. hs := &NebulaHandshake{}
  64. err = hs.Unmarshal(msg)
  65. /*
  66. l.Debugln("GOT INDEX: ", hs.Details.InitiatorIndex)
  67. */
  68. if err != nil || hs.Details == nil {
  69. f.l.WithError(err).WithField("udpAddr", addr).
  70. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Failed unmarshal handshake message")
  71. return
  72. }
  73. remoteCert, err := RecombineCertAndValidate(ci.H, hs.Details.Cert, f.pki.GetCAPool())
  74. if err != nil {
  75. e := f.l.WithError(err).WithField("udpAddr", addr).
  76. WithField("handshake", m{"stage": 1, "style": "ix_psk0"})
  77. if f.l.Level > logrus.DebugLevel {
  78. e = e.WithField("cert", remoteCert)
  79. }
  80. e.Info("Invalid certificate from host")
  81. return
  82. }
  83. vpnIp := iputil.Ip2VpnIp(remoteCert.Details.Ips[0].IP)
  84. certName := remoteCert.Details.Name
  85. fingerprint, _ := remoteCert.Sha256Sum()
  86. issuer := remoteCert.Details.Issuer
  87. if vpnIp == f.myVpnIp {
  88. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  89. WithField("certName", certName).
  90. WithField("fingerprint", fingerprint).
  91. WithField("issuer", issuer).
  92. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Refusing to handshake with myself")
  93. return
  94. }
  95. if addr != nil {
  96. if !f.lightHouse.GetRemoteAllowList().Allow(vpnIp, addr.IP) {
  97. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).Debug("lighthouse.remote_allow_list denied incoming handshake")
  98. return
  99. }
  100. }
  101. myIndex, err := generateIndex(f.l)
  102. if err != nil {
  103. f.l.WithError(err).WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  104. WithField("certName", certName).
  105. WithField("fingerprint", fingerprint).
  106. WithField("issuer", issuer).
  107. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Failed to generate index")
  108. return
  109. }
  110. hostinfo := &HostInfo{
  111. ConnectionState: ci,
  112. localIndexId: myIndex,
  113. remoteIndexId: hs.Details.InitiatorIndex,
  114. vpnIp: vpnIp,
  115. HandshakePacket: make(map[uint8][]byte, 0),
  116. lastHandshakeTime: hs.Details.Time,
  117. relayState: RelayState{
  118. relays: map[iputil.VpnIp]struct{}{},
  119. relayForByIp: map[iputil.VpnIp]*Relay{},
  120. relayForByIdx: map[uint32]*Relay{},
  121. },
  122. }
  123. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  124. WithField("certName", certName).
  125. WithField("fingerprint", fingerprint).
  126. WithField("issuer", issuer).
  127. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  128. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).
  129. Info("Handshake message received")
  130. hs.Details.ResponderIndex = myIndex
  131. hs.Details.Cert = certState.RawCertificateNoKey
  132. // Update the time in case their clock is way off from ours
  133. hs.Details.Time = uint64(time.Now().UnixNano())
  134. hsBytes, err := hs.Marshal()
  135. if err != nil {
  136. f.l.WithError(err).WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  137. WithField("certName", certName).
  138. WithField("fingerprint", fingerprint).
  139. WithField("issuer", issuer).
  140. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Failed to marshal handshake message")
  141. return
  142. }
  143. nh := header.Encode(make([]byte, header.Len), header.Version, header.Handshake, header.HandshakeIXPSK0, hs.Details.InitiatorIndex, 2)
  144. msg, dKey, eKey, err := ci.H.WriteMessage(nh, hsBytes)
  145. if err != nil {
  146. f.l.WithError(err).WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  147. WithField("certName", certName).
  148. WithField("fingerprint", fingerprint).
  149. WithField("issuer", issuer).
  150. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Failed to call noise.WriteMessage")
  151. return
  152. } else if dKey == nil || eKey == nil {
  153. f.l.WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  154. WithField("certName", certName).
  155. WithField("fingerprint", fingerprint).
  156. WithField("issuer", issuer).
  157. WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).Error("Noise did not arrive at a key")
  158. return
  159. }
  160. hostinfo.HandshakePacket[0] = make([]byte, len(packet[header.Len:]))
  161. copy(hostinfo.HandshakePacket[0], packet[header.Len:])
  162. // Regardless of whether you are the sender or receiver, you should arrive here
  163. // and complete standing up the connection.
  164. hostinfo.HandshakePacket[2] = make([]byte, len(msg))
  165. copy(hostinfo.HandshakePacket[2], msg)
  166. // We are sending handshake packet 2, so we don't expect to receive
  167. // handshake packet 2 from the initiator.
  168. ci.window.Update(f.l, 2)
  169. ci.peerCert = remoteCert
  170. ci.dKey = NewNebulaCipherState(dKey)
  171. ci.eKey = NewNebulaCipherState(eKey)
  172. hostinfo.remotes = f.lightHouse.QueryCache(vpnIp)
  173. hostinfo.SetRemote(addr)
  174. hostinfo.CreateRemoteCIDR(remoteCert)
  175. existing, err := f.handshakeManager.CheckAndComplete(hostinfo, 0, f)
  176. if err != nil {
  177. switch err {
  178. case ErrAlreadySeen:
  179. // Update remote if preferred
  180. if existing.SetRemoteIfPreferred(f.hostMap, addr) {
  181. // Send a test packet to ensure the other side has also switched to
  182. // the preferred remote
  183. f.SendMessageToVpnIp(header.Test, header.TestRequest, vpnIp, []byte(""), make([]byte, 12, 12), make([]byte, mtu))
  184. }
  185. msg = existing.HandshakePacket[2]
  186. f.messageMetrics.Tx(header.Handshake, header.MessageSubType(msg[1]), 1)
  187. if addr != nil {
  188. err := f.outside.WriteTo(msg, addr)
  189. if err != nil {
  190. f.l.WithField("vpnIp", existing.vpnIp).WithField("udpAddr", addr).
  191. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).WithField("cached", true).
  192. WithError(err).Error("Failed to send handshake message")
  193. } else {
  194. f.l.WithField("vpnIp", existing.vpnIp).WithField("udpAddr", addr).
  195. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).WithField("cached", true).
  196. Info("Handshake message sent")
  197. }
  198. return
  199. } else {
  200. if via == nil {
  201. f.l.Error("Handshake send failed: both addr and via are nil.")
  202. return
  203. }
  204. hostinfo.relayState.InsertRelayTo(via.relayHI.vpnIp)
  205. f.SendVia(via.relayHI, via.relay, msg, make([]byte, 12), make([]byte, mtu), false)
  206. f.l.WithField("vpnIp", existing.vpnIp).WithField("relay", via.relayHI.vpnIp).
  207. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).WithField("cached", true).
  208. Info("Handshake message sent")
  209. return
  210. }
  211. case ErrExistingHostInfo:
  212. // This means there was an existing tunnel and this handshake was older than the one we are currently based on
  213. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  214. WithField("certName", certName).
  215. WithField("oldHandshakeTime", existing.lastHandshakeTime).
  216. WithField("newHandshakeTime", hostinfo.lastHandshakeTime).
  217. WithField("fingerprint", fingerprint).
  218. WithField("issuer", issuer).
  219. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  220. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).
  221. Info("Handshake too old")
  222. // Send a test packet to trigger an authenticated tunnel test, this should suss out any lingering tunnel issues
  223. f.SendMessageToVpnIp(header.Test, header.TestRequest, vpnIp, []byte(""), make([]byte, 12, 12), make([]byte, mtu))
  224. return
  225. case ErrLocalIndexCollision:
  226. // This means we failed to insert because of collision on localIndexId. Just let the next handshake packet retry
  227. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  228. WithField("certName", certName).
  229. WithField("fingerprint", fingerprint).
  230. WithField("issuer", issuer).
  231. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  232. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).
  233. WithField("localIndex", hostinfo.localIndexId).WithField("collision", existing.vpnIp).
  234. Error("Failed to add HostInfo due to localIndex collision")
  235. return
  236. default:
  237. // Shouldn't happen, but just in case someone adds a new error type to CheckAndComplete
  238. // And we forget to update it here
  239. f.l.WithError(err).WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  240. WithField("certName", certName).
  241. WithField("fingerprint", fingerprint).
  242. WithField("issuer", issuer).
  243. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  244. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 1, "style": "ix_psk0"}).
  245. Error("Failed to add HostInfo to HostMap")
  246. return
  247. }
  248. }
  249. // Do the send
  250. f.messageMetrics.Tx(header.Handshake, header.MessageSubType(msg[1]), 1)
  251. if addr != nil {
  252. err = f.outside.WriteTo(msg, addr)
  253. if err != nil {
  254. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  255. WithField("certName", certName).
  256. WithField("fingerprint", fingerprint).
  257. WithField("issuer", issuer).
  258. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  259. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).
  260. WithError(err).Error("Failed to send handshake")
  261. } else {
  262. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  263. WithField("certName", certName).
  264. WithField("fingerprint", fingerprint).
  265. WithField("issuer", issuer).
  266. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  267. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).
  268. Info("Handshake message sent")
  269. }
  270. } else {
  271. if via == nil {
  272. f.l.Error("Handshake send failed: both addr and via are nil.")
  273. return
  274. }
  275. hostinfo.relayState.InsertRelayTo(via.relayHI.vpnIp)
  276. f.SendVia(via.relayHI, via.relay, msg, make([]byte, 12), make([]byte, mtu), false)
  277. f.l.WithField("vpnIp", vpnIp).WithField("relay", via.relayHI.vpnIp).
  278. WithField("certName", certName).
  279. WithField("fingerprint", fingerprint).
  280. WithField("issuer", issuer).
  281. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  282. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).
  283. Info("Handshake message sent")
  284. }
  285. f.connectionManager.AddTrafficWatch(hostinfo.localIndexId)
  286. hostinfo.remotes.ResetBlockedRemotes()
  287. return
  288. }
  289. func ixHandshakeStage2(f *Interface, addr *udp.Addr, via *ViaSender, hh *HandshakeHostInfo, packet []byte, h *header.H) bool {
  290. if hh == nil {
  291. // Nothing here to tear down, got a bogus stage 2 packet
  292. return true
  293. }
  294. hh.Lock()
  295. defer hh.Unlock()
  296. hostinfo := hh.hostinfo
  297. if addr != nil {
  298. if !f.lightHouse.GetRemoteAllowList().Allow(hostinfo.vpnIp, addr.IP) {
  299. f.l.WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).Debug("lighthouse.remote_allow_list denied incoming handshake")
  300. return false
  301. }
  302. }
  303. ci := hostinfo.ConnectionState
  304. msg, eKey, dKey, err := ci.H.ReadMessage(nil, packet[header.Len:])
  305. if err != nil {
  306. f.l.WithError(err).WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  307. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).WithField("header", h).
  308. Error("Failed to call noise.ReadMessage")
  309. // We don't want to tear down the connection on a bad ReadMessage because it could be an attacker trying
  310. // to DOS us. Every other error condition after should to allow a possible good handshake to complete in the
  311. // near future
  312. return false
  313. } else if dKey == nil || eKey == nil {
  314. f.l.WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  315. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).
  316. Error("Noise did not arrive at a key")
  317. // This should be impossible in IX but just in case, if we get here then there is no chance to recover
  318. // the handshake state machine. Tear it down
  319. return true
  320. }
  321. hs := &NebulaHandshake{}
  322. err = hs.Unmarshal(msg)
  323. if err != nil || hs.Details == nil {
  324. f.l.WithError(err).WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  325. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).Error("Failed unmarshal handshake message")
  326. // The handshake state machine is complete, if things break now there is no chance to recover. Tear down and start again
  327. return true
  328. }
  329. remoteCert, err := RecombineCertAndValidate(ci.H, hs.Details.Cert, f.pki.GetCAPool())
  330. if err != nil {
  331. e := f.l.WithError(err).WithField("vpnIp", hostinfo.vpnIp).WithField("udpAddr", addr).
  332. WithField("handshake", m{"stage": 2, "style": "ix_psk0"})
  333. if f.l.Level > logrus.DebugLevel {
  334. e = e.WithField("cert", remoteCert)
  335. }
  336. e.Error("Invalid certificate from host")
  337. // The handshake state machine is complete, if things break now there is no chance to recover. Tear down and start again
  338. return true
  339. }
  340. vpnIp := iputil.Ip2VpnIp(remoteCert.Details.Ips[0].IP)
  341. certName := remoteCert.Details.Name
  342. fingerprint, _ := remoteCert.Sha256Sum()
  343. issuer := remoteCert.Details.Issuer
  344. // Ensure the right host responded
  345. if vpnIp != hostinfo.vpnIp {
  346. f.l.WithField("intendedVpnIp", hostinfo.vpnIp).WithField("haveVpnIp", vpnIp).
  347. WithField("udpAddr", addr).WithField("certName", certName).
  348. WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).
  349. Info("Incorrect host responded to handshake")
  350. // Release our old handshake from pending, it should not continue
  351. f.handshakeManager.DeleteHostInfo(hostinfo)
  352. // Create a new hostinfo/handshake for the intended vpn ip
  353. f.handshakeManager.StartHandshake(hostinfo.vpnIp, func(newHH *HandshakeHostInfo) {
  354. //TODO: this doesnt know if its being added or is being used for caching a packet
  355. // Block the current used address
  356. newHH.hostinfo.remotes = hostinfo.remotes
  357. newHH.hostinfo.remotes.BlockRemote(addr)
  358. // Get the correct remote list for the host we did handshake with
  359. hostinfo.remotes = f.lightHouse.QueryCache(vpnIp)
  360. f.l.WithField("blockedUdpAddrs", newHH.hostinfo.remotes.CopyBlockedRemotes()).WithField("vpnIp", vpnIp).
  361. WithField("remotes", newHH.hostinfo.remotes.CopyAddrs(f.hostMap.GetPreferredRanges())).
  362. Info("Blocked addresses for handshakes")
  363. // Swap the packet store to benefit the original intended recipient
  364. newHH.packetStore = hh.packetStore
  365. hh.packetStore = []*cachedPacket{}
  366. // Finally, put the correct vpn ip in the host info, tell them to close the tunnel, and return true to tear down
  367. hostinfo.vpnIp = vpnIp
  368. f.sendCloseTunnel(hostinfo)
  369. })
  370. return true
  371. }
  372. // Mark packet 2 as seen so it doesn't show up as missed
  373. ci.window.Update(f.l, 2)
  374. duration := time.Since(hh.startTime).Nanoseconds()
  375. f.l.WithField("vpnIp", vpnIp).WithField("udpAddr", addr).
  376. WithField("certName", certName).
  377. WithField("fingerprint", fingerprint).
  378. WithField("issuer", issuer).
  379. WithField("initiatorIndex", hs.Details.InitiatorIndex).WithField("responderIndex", hs.Details.ResponderIndex).
  380. WithField("remoteIndex", h.RemoteIndex).WithField("handshake", m{"stage": 2, "style": "ix_psk0"}).
  381. WithField("durationNs", duration).
  382. WithField("sentCachedPackets", len(hh.packetStore)).
  383. Info("Handshake message received")
  384. hostinfo.remoteIndexId = hs.Details.ResponderIndex
  385. hostinfo.lastHandshakeTime = hs.Details.Time
  386. // Store their cert and our symmetric keys
  387. ci.peerCert = remoteCert
  388. ci.dKey = NewNebulaCipherState(dKey)
  389. ci.eKey = NewNebulaCipherState(eKey)
  390. // Make sure the current udpAddr being used is set for responding
  391. if addr != nil {
  392. hostinfo.SetRemote(addr)
  393. } else {
  394. hostinfo.relayState.InsertRelayTo(via.relayHI.vpnIp)
  395. }
  396. // Build up the radix for the firewall if we have subnets in the cert
  397. hostinfo.CreateRemoteCIDR(remoteCert)
  398. // Complete our handshake and update metrics, this will replace any existing tunnels for this vpnIp
  399. f.handshakeManager.Complete(hostinfo, f)
  400. f.connectionManager.AddTrafficWatch(hostinfo.localIndexId)
  401. if f.l.Level >= logrus.DebugLevel {
  402. hostinfo.logger(f.l).Debugf("Sending %d stored packets", len(hh.packetStore))
  403. }
  404. if len(hh.packetStore) > 0 {
  405. nb := make([]byte, 12, 12)
  406. out := make([]byte, mtu)
  407. for _, cp := range hh.packetStore {
  408. cp.callback(cp.messageType, cp.messageSubType, hostinfo, cp.packet, nb, out)
  409. }
  410. f.cachedPacketMetrics.sent.Inc(int64(len(hh.packetStore)))
  411. }
  412. hostinfo.remotes.ResetBlockedRemotes()
  413. f.metricHandshakes.Update(duration)
  414. return false
  415. }