Written on January 2, 2018
I wanted to get some hands-on experience with Docker and Spring Boot, so I built a Spring Boot webapp, and have put together Docker images to tie it together with Bitcoin Core, strongSwan, and a database. Oh, also, it is absolutely no fun trying to choose a VPN service. I’m not aware of any VPN providers that offer certificate-based authentication for IKEv2/IPsec. Given the current transaction fees and confirmation delays with Bitcoin, it would make sense to go with a different cryptocurrency. You can clone the most up-to-date instance of this project here.
There are four Docker containers:
iptables -t natrule is inserted so that traffic is forwarded through
iptables -t manglerules are inserted, these are used to get the bandwidth counts.
You will need Java, Gradle, and Docker installed.
sudo apt-get install strongswan (need this for ipsec pki. will move commands to use openssl later)
cd ipsec-pki ; bash -x buildKeystore.sh
./gradlew build buildDocker
docker-compose up -d
bitcoin-qt -datadir=/home/ram/bob-datadir -port=19444 -rpcport=19332 -rpcuser=bob -rpcpassword=bobpass -connect=172.20.0.1:18333 -regtest -server -listen -debug
bitcoin-cli -regtest -rpcport=19332 -rpcuser=bob -rpcpassword=bobpass generate 1