Closed merlin-ke closed 2 months ago
STEP 1: open terminal, and update the configuration: cd Taranis-NG docker build -t taranis-ng-bots . -f ./docker/Dockerfile.bots docker build -t taranis-ng-collectors . -f ./docker/Dockerfile.collectors docker build -t taranis-ng-core . -f ./docker/Dockerfile.core docker build -t taranis-ng-gui . -f ./docker/Dockerfile.gui docker build -t taranis-ng-presenters . -f ./docker/Dockerfile.presenters docker build -t taranis-ng-publishers . -f ./docker/Dockerfile.publishers
[ ] Taranis NG instance is up and running.
STEP 2: open the web browser by navigating to https://@IP:4443. The default credentials are admin / admin.
STEP 3: to Add a collector, then navigate to Configuration -> Collectors nodes. You should see Default Docker Collector in the list. Or you can add a new collector (figure 1 and 2)
-STEP 4: Adding a presenter node. Go to Configuration -> Presenters nodes. Click Add new. Enter any name and description. For URL, enter http://presenters/ and for key, enter supersecret (or whatever password you chose during the installation). Click Save.
- STEP 1: open terminal, and update the configuration: cd Taranis-NG docker build -t taranis-ng-bots . -f ./docker/Dockerfile.bots docker build -t taranis-ng-collectors . -f ./docker/Dockerfile.collectors docker build -t taranis-ng-core . -f ./docker/Dockerfile.core docker build -t taranis-ng-gui . -f ./docker/Dockerfile.gui docker build -t taranis-ng-presenters . -f ./docker/Dockerfile.presenters docker build -t taranis-ng-publishers . -f ./docker/Dockerfile.publishers
- [ ] Taranis NG instance is up and running.
- STEP 2: open the web browser by navigating to https://@ip:4443. The default credentials are admin / admin.
- STEP 3: to Add a collector, then navigate to Configuration -> Collectors nodes. You should see Default Docker Collector in the list. Or you can add a new collector (figure 1 and 2)
-STEP 4: Adding a presenter node. Go to Configuration -> Presenters nodes. Click Add new. Enter any name and description. For URL, enter http://presenters/ and for key, enter supersecret (or whatever password you chose during the installation). Click Save.
- STEP 5 : Adding a publisher node: Configuration -> Publishers nodes. Click Add new. Enter any name and description. For URL, enter http://publishers/. and for key, enter supersecret (or whatever password you chose during the installation). Click Save STEP 6 : Adding sources to collect. Configuration -> OSINT Sources. Click Add new. Select the collectors node that you just created and then you should be able to see all the collectors it has registered. Pick one (for instance the RSS collector), and you will be able to enter all the necessary details. Finally, click Save. STEP 7: Uploading the CPE, CWE and CVE dictionaries (https://github.com/SK-CERT/Taranis-NG/tree/main)
Followed aforementioned steps, however, no Default Collector is in the list, and no new collector node can be added (entered same values as in your picture and the same key - was not changed).
Any ideas?
@ByteMastermind @merlin-ke It happened to me. I retry to rebuild (docker-compose), if you are using the docker-compose
ARANIS_NG_TAG=build docker-compose -f docker/docker-compose.yml build --pull TARANIS_NG_TAG=build docker-compose -f docker/docker-compose.yml up
or this if you have use the docker
TARANIS_NG_TAG=build docker compose -f docker/docker-compose.yml build --pull TARANIS_NG_TAG=build docker compose -f docker/docker-compose.yml up
@ByteMastermind @merlin-ke It happened to me. I retry to rebuild (docker-compose), if you are using the docker-compose
ARANIS_NG_TAG=build docker-compose -f docker/docker-compose.yml build --pull TARANIS_NG_TAG=build docker-compose -f docker/docker-compose.yml up
or this if you have use the docker
TARANIS_NG_TAG=build docker compose -f docker/docker-compose.yml build --pull TARANIS_NG_TAG=build docker compose -f docker/docker-compose.yml up
Seems like the problem still prevails.
I managed to solve this issue. I opted to build the images using @hsninbil approach. After this, I edited the compose file and updated the image names. I added a password to Postgre on the file too (of course this isn't recommended ). Here is the compose file. After which
docker compose up
Brought up everything.
change the URL from localhost to either an IP or something else otherwise you wont login if you don't access be UI from localhost. This is changed from the .env file.
`services: redis: image: "redis:${REDIS_TAG}" restart: unless-stopped environment: TZ: "${TZ}" volumes:
"redis_conf:/usr/local/etc/redis" logging: driver: "json-file" options: max-size: "200k" max-file: "10"
database: image: "postgres:${POSTGRES_TAG}" restart: unless-stopped environment: POSTGRES_DB: "taranis-ng" POSTGRES_USER: "taranis-ng" POSTGRES_PASSWORD: "supersecret" TZ: "${TZ}" PGTZ: "${TZ}" command: ["postgres", "-c", "shared_buffers=${DB_SHARED_BUFFERS}", "-c", "max_connections=${DB_MAX_CONNECTIONS}"] volumes:
"database_data:/var/lib/postgresql/data" logging: driver: "json-file" options: max-size: "200k" max-file: "10" secrets:
core: depends_on:
"database" restart: unless-stopped image: "taranis-ng-core:${TARANIS_NG_TAG}" build: context: .. dockerfile: ./docker/Dockerfile.core args: HTTP_PROXY: "${HTTP_PROXY}" HTTPS_PROXY: "${HTTPS_PROXY}" http_proxy: "${HTTP_PROXY}" https_proxy: "${HTTPS_PROXY}" environment: REDIS_URL: "redis://redis" DB_URL: "database" DB_DATABASE: "taranis-ng" DB_USER: "taranis-ng" DB_POOL_SIZE: 100 DB_POOL_RECYCLE: 300 DB_POOL_TIMEOUT: 30 TARANIS_NG_AUTHENTICATOR: "${TARANIS_NG_AUTHENTICATOR}" LDAP_SERVER: "${LDAP_SERVER}" LDAP_BASE_DN: "${LDAP_BASE_DN}" LDAP_CA_CERT_PATH:
OPENID_LOGOUT_URL: "" WORKERS_PER_CORE: "1"
CVE_UPDATE_FILE: "${CVE_UPDATE_FILE}" CPE_UPDATE_FILE: "${CPE_UPDATE_FILE}" CWE_UPDATE_FILE: "${CWE_UPDATE_FILE}"
TZ: "${TZ}" DEBUG: "true" DEBUG_SQL: "false" labels: traefik.enable: "true" traefik.http.services.taranis-api.loadbalancer.server.port: "80"
traefik.http.routers.taranis-api-443.entrypoints: "websecure"
traefik.http.routers.taranis-api-443.rule: "PathPrefix(/api/
)"
traefik.http.routers.taranis-api-443.tls: "true"
traefik.http.routers.taranis-api-443.tls.domains[0].main: "${TARANIS_NG_HOSTNAME}"
traefik.http.routers.taranis-api-443.service: "taranis-api"
traefik.http.routers.taranis-sse-443.entrypoints: "websecure"
traefik.http.routers.taranis-sse-443.rule: "PathPrefix(/sse
)"
traefik.http.routers.taranis-sse-443.tls: "true"
traefik.http.routers.taranis-sse-443.tls.domains[0].main: "${TARANIS_NG_HOSTNAME}"
traefik.http.routers.taranis-sse-443.service: "taranis-api"
volumes:
api_key
bots: depends_on: core: condition: service_healthy restart: unless-stopped image: "taranis-ng-bots:${TARANIS_NG_TAG}" build: context: .. dockerfile: ./docker/Dockerfile.bots args: HTTP_PROXY: "${HTTP_PROXY}" HTTPS_PROXY: "${HTTPS_PROXY}" http_proxy: "${HTTP_PROXY}" https_proxy: "${HTTPS_PROXY}" environment: TARANIS_NG_CORE_URL: "http://core" TARANIS_NG_CORE_SSE: "http://core/sse" WORKERS_PER_CORE: "1" TZ: "${TZ}" logging: driver: "json-file" options: max-size: "200k" max-file: "10" secrets:
api_key
collectors: depends_on: core: condition: service_healthy restart: unless-stopped image: "taranis-ng-collectors:${TARANIS_NG_TAG}" build: context: .. dockerfile: ./docker/Dockerfile.collectors args: HTTP_PROXY: "${HTTP_PROXY}" HTTPS_PROXY: "${HTTPS_PROXY}" http_proxy: "${HTTP_PROXY}" https_proxy: "${HTTPS_PROXY}" environment: TARANIS_NG_CORE_URL: "http://core" WORKERS_PER_CORE: "1" DEBUG: "true" TZ: "${TZ}" volumes:
api_key
presenters: depends_on: core: condition: service_healthy restart: unless-stopped image: "taranis-ng-presenters:${TARANIS_NG_TAG}" build: context: .. dockerfile: ./docker/Dockerfile.presenters args: HTTP_PROXY: "${HTTP_PROXY}" HTTPS_PROXY: "${HTTPS_PROXY}" http_proxy: "${HTTP_PROXY}" https_proxy: "${HTTPS_PROXY}" environment: TARANIS_NG_CORE_URL: "http://core" WORKERS_PER_CORE: "1" TZ: "${TZ}" ports:
api_key
publishers: depends_on: core: condition: service_healthy restart: unless-stopped image: "taranis-ng-publishers:${TARANIS_NG_TAG}" build: context: .. dockerfile: ./docker/Dockerfile.publishers args: HTTP_PROXY: "${HTTP_PROXY}" HTTPS_PROXY: "${HTTPS_PROXY}" http_proxy: "${HTTP_PROXY}" https_proxy: "${HTTPS_PROXY}" environment: TARANIS_NG_CORE_URL: "http://core" WORKERS_PER_CORE: "1" TZ: "${TZ}" logging: driver: "json-file" options: max-size: "200k" max-file: "10" secrets:
api_key
gui: depends_on:
"core" restart: unless-stopped image: "taranis-ng-gui:${TARANIS_NG_TAG}" build: context: .. dockerfile: ./docker/Dockerfile.gui args: HTTP_PROXY: "${HTTP_PROXY}" HTTPS_PROXY: "${HTTPS_PROXY}" http_proxy: "${HTTP_PROXY}" https_proxy: "${HTTPS_PROXY}"
environment: NGINX_WORKERS: "4" NGINX_CONNECTIONS: "16" VUE_APP_TARANIS_NG_URL: "${TARANIS_NG_HTTPS_URI}" VUE_APP_TARANIS_NG_CORE_API: "${TARANIS_NG_HTTPS_URI}/api/v1" VUE_APP_TARANIS_NG_CORE_SSE: "${TARANIS_NG_HTTPS_URI}/sse" VUE_APP_TARANIS_NG_LOCALE: "${VUE_APP_TARANIS_NG_LOCALE}" TZ: "${TZ}" labels: traefik.enable: "true" traefik.http.services.taranis-gui.loadbalancer.server.port: "80"
traefik.http.middlewares.redirect-to-443.redirectscheme.scheme: "https" traefik.http.middlewares.redirect-to-443.redirectscheme.port: "${TARANIS_NG_HTTPS_PORT}"
traefik.http.routers.taranis-gui-80.entrypoints: "web"
traefik.http.routers.taranis-gui-80.rule: "PathPrefix(/
)"
traefik.http.routers.taranis-gui-80.middlewares: "redirect-to-443"
traefik.http.routers.taranis-gui-443.entrypoints: "websecure"
traefik.http.routers.taranis-gui-443.rule: "PathPrefix(/
)"
traefik.http.routers.taranis-gui-443.tls: "true"
traefik.http.routers.taranis-gui-443.tls.domains[0].main: "${TARANIS_NG_HOSTNAME}"
traefik.http.routers.taranis-gui-443.service: "taranis-gui"
logging: driver: "json-file" options: max-size: "200k" max-file: "10"
traefik: depends_on:
secrets: postgres_password: file: ./secrets/postgres_password.txt jwt_secret_key: file: ./secrets/jwt_secret_key.txt api_key: file: ./secrets/api_key.txt
volumes: redis_conf: database_data: core_data: presenters_templates: collector_storage:`
I keep getting this error after running docker composer up. Default collector isn't setup