Skip to content

Commit

Permalink
Merge pull request #90 from dappnode/v0.1.18
Browse files Browse the repository at this point in the history
V0.1.18
  • Loading branch information
eduadiez authored Nov 10, 2018
2 parents 58e02ed + de4e9af commit ad679cb
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 39 deletions.
2 changes: 1 addition & 1 deletion build/src/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ modprobe af_key

# Start services
mkdir -p /var/run/pluto /var/run/xl2tpd
rm -f /var/run/pluto/pluto.pid /var/run/xl2tpd.pid
rm -f /var/run/xl2tpd.pid

touch /var/run/dnp_vpn

Expand Down
17 changes: 11 additions & 6 deletions build/src/ipsec
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,20 @@ start() {
}

stop() {
if [ "${RC_CMD}" = "restart" ] ; then
checkconfig || return 1
if [ "${RC_CMD}" = "restart" ] ; then
checkconfig || return 1
fi
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --pidfile "${PLUTO_PIDFILE}"
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
ebegin "Stopping (killing it)"
start-stop-daemon --stop -s SIGKILL --pidfile "${PLUTO_PIDFILE}"
fi
ebegin "Stopping ${SVCNAME}"
start-stop-daemon --stop --pidfile "${PLUTO_PIDFILE}"
RETVAL=$?
${IPSEC_BINARY} _stackmanager stop
${IPSEC_BINARY} --stopnflog
eend $RETVAL
eend $?

}

reload() {
Expand Down
7 changes: 4 additions & 3 deletions dappnode_package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vpn.dnp.dappnode.eth",
"version": "0.1.15",
"version": "0.1.18",
"description": "Dappnode package responsible for providing the VPN (L2TP/IPSec) connection",
"avatar": "/ipfs/QmWwMb3XhuCH6JnCF6m6EQzA4mW9pHHtg7rqAfhDr2ofi8",
"type": "dncore",
Expand All @@ -24,8 +24,9 @@
"subnet": "172.33.0.0/16",
"ipv4_address": "172.33.1.4"
},
"author": "Eduardo Antuña <eduadiez@gmail.com> (https://github.com/eduadiez)",
"author": "DAppNode Association <admin@dappnode.io> (https://github.com/dappnode)",
"contributors": [
"Eduardo Antuña <eduadiez@gmail.com> (https://github.com/eduadiez)",
"DAppLion <dapplion@giveth.io> (https://github.com/dapplion)",
"Alex Floyd <alex@giveth.io> (https://github.com/mex20)"
],
Expand All @@ -37,7 +38,7 @@
],
"homepage": {
"userui": "https://dappnode.github.io/DAppNode_OTP",
"homepage": "https://github.com/dappnode/DNP_BIND#readme"
"homepage": "https://github.com/dappnode/DNP_VPN#readme"
},
"repository": {
"type": "git",
Expand Down
56 changes: 27 additions & 29 deletions docker-compose-vpn.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,30 @@
version: "3.4"

version: '3.4'
networks:
network:
driver: bridge
ipam:
config:
- subnet: 172.33.0.0/16

network:
driver: bridge
ipam:
config:
-
subnet: 172.33.0.0/16
volumes:
vpndnpdappnodeeth_data: {}

vpndnpdappnodeeth_data: {}
services:
vpn.dnp.dappnode.eth:
build: ./build
image: vpn.dnp.dappnode.eth:0.1.15
container_name: DAppNodeCore-vpn.dnp.dappnode.eth
privileged: true
restart: always
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- /etc/hostname:/etc/vpnname:ro
- /usr/src/dappnode/config:/usr/src/app/config:ro
- /lib/modules:/lib/modules:ro
- vpndnpdappnodeeth_data:/usr/src/app/secrets
ports:
- 4500:4500/udp
- 500:500/udp
dns: 172.33.1.2
networks:
network:
ipv4_address: 172.33.1.4
vpn.dnp.dappnode.eth:
build: ./build
image: 'vpn.dnp.dappnode.eth:0.1.18'
container_name: DAppNodeCore-vpn.dnp.dappnode.eth
privileged: true
restart: always
volumes:
- '/var/run/docker.sock:/var/run/docker.sock'
- '/etc/hostname:/etc/vpnname:ro'
- '/usr/src/dappnode/config:/usr/src/app/config:ro'
- '/lib/modules:/lib/modules:ro'
- 'vpndnpdappnodeeth_data:/usr/src/app/secrets'
ports:
- '4500:4500/udp'
- '500:500/udp'
dns: 172.33.1.2
networks:
network:
ipv4_address: 172.33.1.4

0 comments on commit ad679cb

Please sign in to comment.