m1k1o/neko-vpn

Having trouble building

Opened this issue · 4 comments

Hi! Currently my plan is to run a couple neko rooms and run one of them through neko-vpn, however I'm having trouble building the container. These are my current configs with some stuff redacted/changed for privacy/security, not really sure where I'm messing up. If you need anything else let me know. I also am not using traefik :)

Build Error

image

Docker Compose for nekovpn

nekovpn:
    build: "/mnt/storage/nekovpn/ovpn-nodejs"
    restart: "unless-stopped"
    sysctls:
      - net.ipv6.conf.all.disable_ipv6=0
    cap_add:
      - net_admin
    dns:
     - 8.8.8.8
     - 8.8.4.4
    volumes:
      - "/dev/net:/dev/net:z"
      - "/mnt/storage/nekovpn/vpn:/vpn"
    command: "80 miami.ovpn"

and this is my file structure

/mnt/storage/nekovpn

image

/mnt/storage/nekovpn/vpn

image

/mnt/storage/nekovpn/.env

#
# vpn config
#
DEFAULT_VPN="miami.ovpn"

# View more at:
# https://github.com/m1k1o/ovpn-nodejs/tree/f62621f5440b717b3e3ae344ab2476f5571e1f87#group-regex
FILE_REGEXP=""

# View more at:
# https://github.com/m1k1o/ovpn-nodejs/tree/f62621f5440b717b3e3ae344ab2476f5571e1f87#group-regex
GROUP_REGEXP=""

#
# neko config
#
ADMIN_PASSWORD="admin"
USER_PASSWORD="neko"
DOWNLOAD_DIR="./downloads"
PORT_RANGE="57000-57010"
DEFAULT_SCREEN="1360x768@60"

#
# only if using docker-compose.yml
#
HTTP_PORT="80"

#
# only if using docker-compose.traefik.yml
#
TRAEFIK_NETWORK_NAME="traefik_default"
TRAEFIK_RULE="Host(`neko.example.com`)"
TRAEFIK_ENTRYPOINTS="web-secure"
TRAEFIK_CERTRESOLVER="letsencrypt"

/mnt/storage/nekovpn/vpn/miami.ovpn

client
dev tun
proto udp
remote <redacted> 54783

nobind
auth-user-pass .auth

resolv-retry infinite

auth SHA512
cipher AES-256-CBC
verb 2
mute-replay-warnings
remote-cert-tls server
persist-key
persist-tun

key-direction 1
<ca>
-----BEGIN CERTIFICATE-----
<redacted>
-----END CERTIFICATE-----
</ca>
<tls-auth>
-----BEGIN OpenVPN Static key V1-----
<redacted>
-----END OpenVPN Static key V1-----
</tls-auth>

/mnt/storage/nekovpn/vpn/.auth

example-username
example-password
m1k1o commented

According to https://stackoverflow.com/a/40182520:

EAI_AGAIN is a DNS lookup timed out error

Can you try if curl https://google.com/ works? Probably you are missing DNS servers on your server or they are blocked/unreachable because of VPN.

You can manually add 8.8.8.8 to /etc/hosts.

image
Result of curl, the machine still seems to have full internet access and all my other docker containers and programs are running well.

Slight update, managed to get it to build by doing docker build "/mnt/storage/nekovpn/ovpn-nodejs" --no-cache --network=host, and then I just made docker compose use the image that was generated from that build. Other than it just not wanting to build, works great :)

m1k1o commented

Interesting, seems like there was an issue with docker connectivity.