ethereum / ethereum/populus

Local chain accepts foreign connections

Open
#258 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
319
Forks
110
PR merge metrics
No merged PRs in 30d

Description

* Populus Version: 1.5.3
* OSX
* Geth 1.5.x

### What was wrong?

A local chain starts accepting foreign connections when started. Scary and probably a bad thing.

Create a local chain:

```
"local": {
"chain": {
"class": "populus.chain.LocalGethChain"
},
"web3": {
"provider": {
"class": "web3.providers.rpc.RPCProvider",
"settings": {
"host": "127.0.0.1",
"port": 8545
}
}
}
},
```

Run it:

populus chain run local

You immediately start get connections from foreign IPs:
```
0228 11:00:37.323663 node/node.go:465] WebSocket endpoint opened: ws://127.0.0.1:8546
I0228 11:00:37.522397 p2p/server.go:655] Accepted conn 162.243.39.13:54654
I0228 11:00:37.838323 p2p/server.go:655] Accepted conn 52.44.72.95:37081
I0228 11:00:37.849815 p2p/server.go:655] Accepted conn 185.93.245.62:41092
I0228 11:00:37.953942 rpc/server.go:183] read error EOF
I0228 11:00:37.964624 rpc/server.go:183] read error EOF
I0228 11:00:38.125354 p2p/server.go:655] Accepted conn 138.201.227.73:44728
I0228 11:00:38.272827 cmd/geth/accountcmd.go:200] Unlocked account b9e19fc3c470a594fbd7401bae933aeec6c0459d
I0228 11:00:38.272921 miner/miner.go:136] Starting mining operation (CPU=1 TOT=2)
I0228 11:00:38.273163 core/state/state_object.go:257] b9e19fc3c470a594fbd7401bae933aeec6c0459d: #0 1000000000065000000000000000000 (+ 5000000000000000000)
I0228 11:00:38.273295 miner/worker.go:516] commit new work on block 13 with 0 txs & 0 uncles. Took 354.585µs
I0228 11:00:38.273330 miner/agent.go:110] (re)started agent[0]. mining...
I0228 11:00:38.273355 vendor/github.com/ethereum/ethash/ethash.go:259] Generating DAG for epoch 0 (size 1073739904) (0000000000000000000000000000000000000000000000000000000000000000)
I0228 11:00:38.273835 accounts/addrcache.go:215] reloaded keys, cache has 1 accounts
I0228 11:00:39.087717 vendor/github.com/ethereum/ethash/ethash.go:276] Done generating DAG for epoch 0, it took 814.366446ms
I0228 11:00:39.555636 p2p/nat/nat.go:109] network port tcp:30303 could not be mapped: goupnp: SOAP request got HTTP 500 Internal Server Error
I0228 11:00:40.593008 p2p/server.go:655] Accepted conn 52.183.65.60:39298
I0228 11:00:41.430257 p2p/server.go:655] Accepted conn 51.255.80.46:53268
I0228 11:00:41.431762 p2p/server.go:682] inbound conn 162.243.39.13:54654 faild enc handshake: EOF
I0228 11:00:41.444760 p2p/server.go:655] Accepted conn 76.188.40.253:56990
I0228 11:00:41.450704 p2p/server.go:682] inbound conn 76.188.40.253:56990 faild enc handshake: ecies: invalid message
I0228 11:00:41.935526 p2p/server.go:655] Accepted conn 62.138.8.127:37352
I0228 11:00:41.943907 p2p/server.go:682] inbound conn 62.138.8.127:37352 faild enc handshake: ecies: invalid message
I0228 11:00:42.469460 p2p/server.go:655] Accepted conn 162.243.39.13:54872
I0228 11:00:42.634326 p2p/server.go:682] inbound conn 185.93.245.62:41092 faild enc handshake: EOF
I0228 11:00:42.710030 p2p/server.go:682] inbound conn 52.44.72.95:37081 faild enc handshake: EOF
I0228 11:00:42.854174 p2p/server.go:655] Accepted conn 52.44.72.95:37186
I0228 11:00:43.069263 p2p/server.go:682] inbound conn 138.201.227.73:44728 faild e
```

#### Cute Animal Picture

```
;,_ ,
_uP~"b d"u,
dP' "b ,d" "o
d" , `b d"' "b
l] [ " `l, d" lb
Ol ? " "b`"=uoqo,_ "l
,dBb "b "b, `"~~TObup,_
,d" (db.`" "" "tbc,_ `~"Yuu,_
.d" l`T' '= ~ `""Yu,
,dO` gP, `u, b,_ "b7
d?' ,d" l, `"b,_ `~b "1
,8i' dl `l ,ggQOV",dbgq,._" `l lb
.df' (O, " ,ggQY"~ , @@@@@d"bd~ `b "1
.df' `" -=@QgpOY"" (b @@@@P db `Lp"b,
.d( _ "ko "=d_,Q` ,_ " "b,
Ql . `"qo,._ "tQo,_`""bo ;tb, `"b,
qQ |L ~"QQQgggc,_.,dObc,opooO `"~~";. __,7,
qp t\io,_ `~"TOOggQV"""" _,dg,_ =PIQHib.
`qp `Q["tQQQo,_ ,pl{QOP"' 7AFR`
` `tb '""tQQQg,_ p" "b ` .;-.`Vl'
"Yb `"tQOOo,__ _,edb ` .__ /`/'| |b;=;.__
`"tQQQOOOOP""`"\QV;qQObob"`-._`\_~~-._
"""" ._ / | |oP"\_ ~\ ~\_~\
`~"\ic,qggddOOP"| | ~\ `\~-._
,qP`"""|" | `\ `; `\ `\
_ _,p" | | `\`; | |
unknown "boo,._dP" `\_ `\ `\| `\ ;
`"7tY~' `\ `\ `|_ |
`~\ |
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.