I'm answering my own question because it seems that a lot of people are doinig the same mistake that I did and lose their ether !
I did setup publicly accessible node like this:
geth --mine --nodiscover --maxpeers 0 --networkid 1 --rpc --rpccorsdomain "*" --rpcaddr "my-public-ip" --rpcapi="db,eth,net,web3,personal,web3"
I created new ethereum account that is going to be my "contract owner" account
- I transfered small amount of ether in the "contract owner" account so I can have enough gas to deploy my new contract
- I did setup truffle to connect to my ethereum node
- I used truffle console to unlock my account
- I got error "Error: exceeds block gas limit"
At this point I was confused because I saw that on etherscan I have about 10USD worth of ether in my account that should be enough to deploy my contract
I checked etherscan again and I saw "outgoing" transaction draining all my money from the ethereum address
After some research, this is how the money was stolen:
- A bot found out about my public ethereum node
- It connected to it and requested the account list + account balances
- It started sending "sendTransaction" requests non stop
- When I unlocked my account on the public node to deploy my contract - the bot that was using the same node also got access to my account and it transfered the funds from my account
I'm writing this to prevent other developers from doing the same mistake. The bot address is:
There are tons of comments from people that got their ether stolen from them. And I'm not talking about my 10USD, so far the bot has stolen:
ETH Balance: 37,070.060208365548676156 Ether
ETH USD Value: $16,642,974.23 (@ $448.96/ETH)
This should be here because I got to this situation while following tutorials around the web and nobody explained the risks and what may happen