aboutsummaryrefslogtreecommitdiff
path: root/src/p2p/net_node.inl
Commit message (Collapse)AuthorAgeFilesLines
...
| * | p2p: make this work with boost <= 1.65 (pffff)moneromooo-monero2020-12-031-0/+4
| | |
| * | p2p: rewrite boost's make_address_v4 to cater for < 1.66moneromooo2020-12-031-9/+14
| | |
* | | Merge pull request #6984Alexander Blair2020-12-031-2/+14
|\ \ \ | |/ / |/| | | | | 7a5e11645 net_node: add tor / i2p seed nodes (selsta)
| * | net_node: add tor / i2p seed nodesselsta2020-11-291-2/+14
| | | | | | | | | | | | Co-authored-by: Lee Clagett <code@leeclagett.com>
* | | p2p: give all hosts the same chance of being picked for connectingmoneromooo2020-11-291-1/+26
|/ / | | | | | | even if some run more than one node
* | Merge pull request #7008luigi11112020-11-291-1/+1
|\ \ | | | | | | | | | 3247f11 Silence stupid warnings (Howard Chu)
| * | Silence stupid warningsHoward Chu2020-11-111-1/+1
| |/
* | Merge pull request #6943luigi11112020-11-291-0/+4
|\ \ | | | | | | | | | cb069d0 p2p: remove banned peers from the white list (moneromooo-monero)
| * | p2p: remove banned peers from the white listmoneromooo2020-10-271-0/+4
| |/
* | Merge pull request #6933luigi11112020-11-291-2/+30
|\ \ | | | | | | | | | 1f04a31 p2p: use /16 filtering on IPv4-within-IPv6 addresses (moneromooo-monero)
| * | p2p: use /16 filtering on IPv4-within-IPv6 addressesmoneromooo-monero2020-11-031-2/+30
| | | | | | | | | | | | | | | | | | | | | IPv6 addresses include a range that can map IPv4 addresses, which allowed those mapped addresses to bypass filtering. This filter should be replaced by AS filtering at some point.
* | | Merge pull request #6920luigi11112020-11-291-0/+31
|\ \ \ | | | | | | | | | | | | aad2f87 net_node: add --ban-list option (selsta)
| * | | net_node: add --ban-list optionselsta2020-10-201-0/+31
| | |/ | |/|
* | | Merge pull request #6897luigi11112020-11-291-46/+68
|\ \ \ | | | | | | | | | | | | 2abdbf6 Add support for i2p and tor seed nodes (vtnerd)
| * | | Add support for i2p and tor seed nodesLee Clagett2020-10-191-46/+68
| | |/ | |/|
* | | Better log message for unusable anon networksHoward Chu2020-11-161-2/+2
| |/ |/|
* | Dandelion++: skip desynced peers in stem phasexiphon2020-10-121-5/+5
|/
* Merge pull request #6571Alexander Blair2020-08-051-10/+0
|\ | | | | | | 1d31e6c00 net_node: remove dead seed nodes (selsta)
| * net_node: remove dead seed nodesselsta2020-05-201-10/+0
| |
* | Merge pull request #6512Alexander Blair2020-07-191-1/+1
|\ \ | | | | | | | | | 5ef0607da Update copyright year to 2020 (SomaticFanatic)
| * | Update copyright year to 2020SomaticFanatic2020-05-061-1/+1
| |/ | | | | | | Update copyright year to 2020
* / Fix boost <1.60 compilation and fix boost 1.73+ warningsLee Clagett2020-05-311-1/+1
|/
* Merge pull request #6471luigi11112020-05-061-0/+3
|\ | | | | | | | | c6a1294 add another seed node (Gingeropolous/selsta) 9faf3d1 Add erciccione's seed node (erciccione/selsta)
| * add another seed nodeGingeropolous2020-04-221-0/+2
| | | | | | | | node is funded by random people and managed by me. currently functioning as public node at uwillrunanodesoon.moneroworld.com
| * Add erciccione's seed nodeerciccione2020-04-221-0/+1
| |
* | Merge pull request #6443luigi11112020-05-011-110/+135
|\ \ | |/ |/| | | 145be6d p2p: startup speedup, init seed nodes on first 'connect_to_seed()' (xiphon)
| * p2p: startup speedup, init seed nodes on first 'connect_to_seed()'xiphon2020-04-211-110/+135
| |
* | p2p: add seed node.guy2020-04-211-0/+1
| |
* | Adding Dandelion++ support to public networks:Lee Clagett2020-03-261-8/+3
| | | | | | | | | | | | - New flag in NOTIFY_NEW_TRANSACTION to indicate stem mode - Stem loops detected in tx_pool.cpp - Embargo timeout for a blackhole attack during stem phase
* | Merge pull request #6405luigi11112020-04-101-0/+1
|\ \ | |/ |/| | | 8d23047 p2p: add another seed node (moneromooo-monero)
| * p2p: add another seed nodemoneromooo-monero2020-03-271-0/+1
| | | | | | | | Node from syksy, administered by mooo
* | Merge pull request #6372luigi11112020-04-041-8/+6
|\ \ | | | | | | | | | 7b9017f p2p: plug tor to clearnet association vector (Aaron Hook)
| * | p2p: plug tor to clearnet association vectorAaron Hook2020-03-071-8/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | During the handshake for an incoming connection, the peer id is checked against the local node's peer id only for the specific zone of the incoming peer, in order to avoid linking public addresses to tor addresses: https://github.com/monero-project/monero/blob/5d7ae2d2791c0244a221872a7ac62627abb81896/src/p2p/net_node.inl#L2343 However, on handshakes for outgoing connections, all zones are checked: https://github.com/monero-project/monero/blob/5d7ae2d2791c0244a221872a7ac62627abb81896/src/p2p/net_node.inl#L1064 If an attacker wanted to link a specific tor node to a public node, they could potentially connect to as many public nodes as possible, get themselves added to the peer whitelist, maybe stuff some more attacker-owned addresses into the greylist, then disconnect, and for any future incoming connections, respond with the tor node's id in an attempt to link the public/tor addresses.
* | | p2p: fix frequent weak_ptr exception on connectionmoneromooo-monero2020-03-311-4/+6
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | When a handshake fails, it can fail due to timeout or destroyed connection, in which case the connection will be, or already is, closed, and we don't want to do it twice. Additionally, when closing a connection directly from the top level code, ensure the connection is gone from the m_connects list so it won't be used again. AFAICT this is now clean in netstat, /proc/PID/fd and print_cn. This fixes a noisy (but harmless) exception.
* | Merge pull request #6295Alexander Blair2020-03-271-2/+12
|\ \ | | | | | | | | | bcae95a2 p2p: do not add recently failed addresses to the peerlist (moneromooo-monero)
| * | p2p: do not add recently failed addresses to the peerlistmoneromooo-monero2020-03-201-2/+12
| | |
* | | Merge pull request #6283Alexander Blair2020-03-271-2/+2
|\ \ \ | | | | | | | | | | | | a84131ce p2p: fix off by one adding fallback peers (moneromooo-monero)
| * | | p2p: fix off by one adding fallback peersmoneromooo-monero2020-01-071-2/+2
| | | | | | | | | | | | | | | | The code would ignore the first one to be added
* | | | Merge pull request #6280Alexander Blair2020-03-271-2/+8
|\ \ \ \ | | | | | | | | | | | | | | | b818522d p2p: fix spurious warning when we're connected to at last one seed (moneromooo-monero)
| * | | | p2p: fix spurious warning when we're connected to at last one seedmoneromooo-monero2020-01-311-2/+8
| |/ / /
* | | | Merge pull request #6279Alexander Blair2020-03-271-1/+1
|\ \ \ \ | | | | | | | | | | | | | | | 36bdf402 p2p: fix adding wrong indices to the filtered peer list (moneromooo-monero)
| * | | | p2p: fix adding wrong indices to the filtered peer listmoneromooo-monero2020-01-031-1/+1
| |/ / /
* | / / p2p: remove old debug commandsAaron Hook2020-03-201-95/+0
| |/ / |/| |
* | | Merge pull request #6243Alexander Blair2020-03-121-9/+16
|\ \ \ | |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | 4771a7ae p2p: remove obsolete local time in handshake (moneromooo-monero) 2fbbc4a2 p2p: avoid sending the same peer list over and over (moneromooo-monero) 3004835b epee: remove backward compatible endian specific address serialization (moneromooo-monero) 39a343d7 p2p: remove backward compatible peer list (moneromooo-monero) 60631802 p2p: simplify last_seen serialization now we have optional stores (moneromooo-monero) 9467b2e4 cryptonote_protocol: omit top 64 bits of difficulty when 0 (moneromooo-monero) b595583f serialization: do not write optional fields with default value (moneromooo-monero) 5f98b46d p2p: remove obsolete local time from TIMED_SYNC (moneromooo-monero)
| * | p2p: remove obsolete local time in handshakemoneromooo-monero2020-01-291-3/+0
| | | | | | | | | | | | Also removes a potential fingerprinting vector
| * | p2p: avoid sending the same peer list over and overmoneromooo-monero2020-01-291-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Nodes remember which connections have been sent which peer addresses and won't send it again. This causes more addresses to be sent as the connection lifetime grows, since there is no duplication anymore, which increases the diffusion speed of peer addresses. The whole white list is now considered for sending, not just the most recent seen peers. This further hardens against topology discovery, though it will more readily send peers that have been last seen earlier than it otherwise would. While this does save a fair amount of net bandwidth, it makes heavy use of std::set lookups, which does bring network_address::less up the profile, though not too aggressively.
| * | p2p: remove obsolete local time from TIMED_SYNCmoneromooo-monero2020-01-261-5/+3
| | |
* | | Merge pull request #6248Alexander Blair2020-02-281-1/+1
|\ \ \ | | | | | | | | | | | | 21c3d42e p2p: drop the peerlist dump to TRACE (moneromooo-monero)
| * | | p2p: drop the peerlist dump to TRACEmoneromooo-monero2019-12-171-1/+1
| | |/ | |/| | | | | | | It's spammy
* | | Merge pull request #6053Alexander Blair2020-02-061-6/+6
|\ \ \ | | | | | | | | | | | | deb350b7 always print peer IDs in the same format (moneromooo-monero)