supernets inspircd source & configuration
Go to file
2024-10-28 23:28:02 +03:00
services update readme 2024-10-28 23:28:02 +03:00
.dockerignore add compose file for linked networks and build arg to Dockerfile for ssl cert 2024-10-28 02:34:13 +03:00
.env add compose file for linked networks and build arg to Dockerfile for ssl cert 2024-10-28 02:34:13 +03:00
.gitignore add config env and docker-compose 2024-10-28 02:11:40 +03:00
config.env.example add config env and docker-compose 2024-10-28 02:11:40 +03:00
docker-compose.linked.yml update volume names and documentation 2024-10-28 23:22:51 +03:00
docker-compose.standalone.yml update volume names and documentation 2024-10-28 23:22:51 +03:00
Dockerfile added atheme, some fixes to inspi4 dockerfile 2024-10-28 07:38:36 +03:00
GeoLite2-Country.mmdb fix geolite db 2024-10-28 05:08:06 +03:00
include.default.conf move sslprofile to include 2024-10-28 05:00:06 +03:00
inspircd.conf fix geolite db 2024-10-28 05:08:06 +03:00
README.md update readme 2024-10-28 23:28:02 +03:00

Instructions

docker-compose

  • if you are not starting from scratch. delete stale containers and: docker rmi inspi4 and docker volume rm inspi4_ssl

  • copy config.env.exmaple to config.env and edit

  • optional: if you intend to link, copy include.default.conf to include.conf and edit (see linking section below.)

  • start: docker-compose -f docker-compose.standalone.yml up -d also use the linked variant if you intend to link.

  • docker build -t inspi4 -t inspi4:latest .

  • docker run -it --rm -e 'DEFAULT_BLOCK_HOST_MASK="nothing"' -net host inspi4

Optional

  • create a custom links.conf
  • docker run -it --rm -e 'DEFAULT_BLOCK_HOST_MASK="nothing"' -net host -v $(pwd)/links.conf:/etc/inspircd/links.conf:ro inspi4

Linking

  • Run docker exec -it ircd_ircd_linked_1 openssl x509 -sha256 -fingerprint -in /etc/ssl/inspircd/server.crt | tr -d ":" | tr '[:upper:]' '[:lower:]' to get the SSL fingerprints, the fingerprint refers to the remote SSL certificate fingerprint for each linking section.

  • On hub.netcrave.network add something like this to the include.conf:

<autoconnect period="8s"
             server="leaf.netcrave.network">

<link allowmask="*"
      bind="1.2.3.4"
      hidden="no"
      sslprofile="defaultssl"
      fingerprint="c543d8a4a6c825d917d20520e4962e4bcdc3c3c5d856815f7fd626b708842baf"
      ipaddr="4.2.3.1"
      name="leaf.netcrave.network"
      port="&env.SERVER_SSL_PORT;"
      recvpass="&env.LINK_RECV_PASSWORD;"
      sendpass="&env.LINK_SEND_PASSWORD;"
      statshidden="no"
      timeout="&env.LINK_TIMEOUT;">
  • On leaf.netcrave.network add something like this to the include.conf:
<autoconnect period="8s"
             server="hub.netcrave.network">

<link allowmask="*"
      bind="4.2.3.1"
      hidden="no"
      sslprofile="defaultssl"
      fingerprint="09afef0d8561b8d13e3e7a480ed006caed11d3f5b36c5f4569c60060baa936cd"
      ipaddr="1.2.3.4"
      name="hub.netcrave.network"
      port="&env.SERVER_SSL_PORT;"
      recvpass="&env.LINK_RECV_PASSWORD;"
      sendpass="&env.LINK_SEND_PASSWORD;"
      statshidden="no"
      timeout="&env.LINK_TIMEOUT;">

Linking with services

<link allowmask="*"
      bind="127.0.0.1"
      hidden="no"
      ipaddr="127.0.0.1"
      name="services.netcrave.network"
      port="7001"
      recvpass="&env.LINK_RECV_PASSWORD;"
      sendpass="&env.LINK_SEND_PASSWORD;"
      statshidden="no"
      timeout="&env.LINK_TIMEOUT;">