Skip to content
Snippets Groups Projects
Commit ce63eea7 authored by root's avatar root
Browse files

move all used ports on haproxy and remove all unused ports

parent a8e585ba
No related branches found
No related tags found
No related merge requests found
Showing
with 21 additions and 46 deletions
...@@ -16,5 +16,4 @@ RUN echo "[cassandra]" > /etc/yum.repos.d/cassandra.repo && \ ...@@ -16,5 +16,4 @@ RUN echo "[cassandra]" > /etc/yum.repos.d/cassandra.repo && \
sed -i -e 's,/etc/cassandra,/usr/share/cassandra,g' /usr/share/cassandra/cassandra.in.sh && \ sed -i -e 's,/etc/cassandra,/usr/share/cassandra,g' /usr/share/cassandra/cassandra.in.sh && \
yum -y clean all yum -y clean all
COPY cassandrasupervisord.conf /etc/supervisord.conf COPY cassandrasupervisord.conf /etc/supervisord.conf
EXPOSE 7000 9042
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
...@@ -23,6 +23,5 @@ RUN echo "[thehive-project]" > /etc/yum.repos.d/thehive.repo && \ ...@@ -23,6 +23,5 @@ RUN echo "[thehive-project]" > /etc/yum.repos.d/thehive.repo && \
for I in analyzers/*/requirements.txt; do LC_ALL=en_US.UTF-8 pip3 install --no-cache-dir -U -r $I || true; done && \ for I in analyzers/*/requirements.txt; do LC_ALL=en_US.UTF-8 pip3 install --no-cache-dir -U -r $I || true; done && \
for I in responders/*/requirements.txt; do LC_ALL=en_US.UTF-8 pip3 install --no-cache-dir -U -r $I || true; done && \ for I in responders/*/requirements.txt; do LC_ALL=en_US.UTF-8 pip3 install --no-cache-dir -U -r $I || true; done && \
yum -y clean all yum -y clean all
EXPOSE 9001
COPY cortexsupervisord.conf /etc/supervisord.conf COPY cortexsupervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
...@@ -17,6 +17,5 @@ RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \ ...@@ -17,6 +17,5 @@ RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \
RUN echo 'elasticsearch ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers RUN echo 'elasticsearch ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
EXPOSE 9200 9300
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
...@@ -34,9 +34,6 @@ ENV PATH="/opt/jboss/keycloak/bin:${PATH}" ...@@ -34,9 +34,6 @@ ENV PATH="/opt/jboss/keycloak/bin:${PATH}"
WORKDIR /opt/jboss/keycloak WORKDIR /opt/jboss/keycloak
EXPOSE 8080
EXPOSE 8443
RUN echo 'jboss ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers RUN echo 'jboss ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
COPY keycloaksupervisord.conf /etc/supervisord.conf COPY keycloaksupervisord.conf /etc/supervisord.conf
......
...@@ -17,7 +17,6 @@ RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \ ...@@ -17,7 +17,6 @@ RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \
RUN echo 'kibana ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers RUN echo 'kibana ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
EXPOSE 5601
COPY kibanasupervisord.conf /etc/supervisord.conf COPY kibanasupervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
...@@ -80,9 +80,6 @@ RUN chown -R apache:apache /var/www/MISP ; \ ...@@ -80,9 +80,6 @@ RUN chown -R apache:apache /var/www/MISP ; \
COPY misp_rh-php72-php-fpm /etc/logrotate.d/rh-php72-php-fpm COPY misp_rh-php72-php-fpm /etc/logrotate.d/rh-php72-php-fpm
# 80/443 - MISP web server, 3306 - mysql, 6379 - redis, 6666 - MISP modules, 50000 - MISP ZeroMQ
EXPOSE 80 443 6443 6379 6666 50000
ENV PATH "$PATH:/opt/rh/rh-php72/root/bin/" ENV PATH "$PATH:/opt/rh/rh-php72/root/bin/"
COPY mispsupervisord.conf /etc/supervisord.conf COPY mispsupervisord.conf /etc/supervisord.conf
......
...@@ -6,7 +6,6 @@ RUN yum -y update && yum install -y epel-release centos-release-scl scl-utils && ...@@ -6,7 +6,6 @@ RUN yum -y update && yum install -y epel-release centos-release-scl scl-utils &&
/usr/bin/scl enable rh-mariadb103 -- /opt/rh/rh-mariadb103/root/usr/libexec/mysql-prepare-db-dir /var/opt/rh/rh-mariadb103/lib/mysql /usr/bin/scl enable rh-mariadb103 -- /opt/rh/rh-mariadb103/root/usr/libexec/mysql-prepare-db-dir /var/opt/rh/rh-mariadb103/lib/mysql
RUN yum clean all RUN yum clean all
EXPOSE 3306
COPY mysqlsupervisord.conf /etc/supervisord.conf COPY mysqlsupervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
......
...@@ -83,7 +83,6 @@ RUN curl -fSL ${MIRROR_BASE_URL}/${NIFI_BINARY_PATH} -o ${NIFI_BASE_DIR}/nifi-${ ...@@ -83,7 +83,6 @@ RUN curl -fSL ${MIRROR_BASE_URL}/${NIFI_BINARY_PATH} -o ${NIFI_BASE_DIR}/nifi-${
RUN echo "#!/bin/sh\n" > $NIFI_HOME/bin/nifi-env.sh RUN echo "#!/bin/sh\n" > $NIFI_HOME/bin/nifi-env.sh
# Web HTTP(s) & Socket Site-to-Site Ports # Web HTTP(s) & Socket Site-to-Site Ports
EXPOSE 8080 8443 10000 8000
WORKDIR ${NIFI_HOME} WORKDIR ${NIFI_HOME}
......
...@@ -17,7 +17,6 @@ RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \ ...@@ -17,7 +17,6 @@ RUN rpm --import https://artifacts.elastic.co/GPG-KEY-elasticsearch && \
RUN echo 'kibana ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers RUN echo 'kibana ALL=(ALL:ALL) NOPASSWD: ALL' >> /etc/sudoers
EXPOSE 5601
COPY kibanasupervisord.conf /etc/supervisord.conf COPY kibanasupervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
...@@ -15,6 +15,5 @@ RUN echo "[thehive-project]" > /etc/yum.repos.d/thehive.repo && \ ...@@ -15,6 +15,5 @@ RUN echo "[thehive-project]" > /etc/yum.repos.d/thehive.repo && \
mkdir -p /home/thehive && \ mkdir -p /home/thehive && \
chown -R thehive:thehive /home/thehive /etc/thehive && \ chown -R thehive:thehive /home/thehive /etc/thehive && \
yum -y clean all yum -y clean all
EXPOSE 9000
COPY thehivesupervisord.conf /etc/supervisord.conf COPY thehivesupervisord.conf /etc/supervisord.conf
ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"] ENTRYPOINT ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
...@@ -25,7 +25,7 @@ RUN curl -fSL ${MIRROR_BASE_URL}/${ZOOKEEPER_BINARY_PATH} -o ${ZOOKEEPER_BASE_DI ...@@ -25,7 +25,7 @@ RUN curl -fSL ${MIRROR_BASE_URL}/${ZOOKEEPER_BINARY_PATH} -o ${ZOOKEEPER_BASE_DI
&& cp ${ZOOKEEPER_BASE_DIR}/zookeeper/conf/zoo_sample.cfg ${ZOOKEEPER_BASE_DIR}/zookeeper/conf/zoo.cfg && cp ${ZOOKEEPER_BASE_DIR}/zookeeper/conf/zoo_sample.cfg ${ZOOKEEPER_BASE_DIR}/zookeeper/conf/zoo.cfg
# Web HTTP(s) & Socket Site-to-Site Ports # Web HTTP(s) & Socket Site-to-Site Ports
EXPOSE 2181 2888 3888 #EXPOSE 2181 2888 3888
WORKDIR ${ZOOKEEPER_BASE_DIR}/zookeeper WORKDIR ${ZOOKEEPER_BASE_DIR}/zookeeper
......
...@@ -9,16 +9,17 @@ ...@@ -9,16 +9,17 @@
- name: "{{ soctools_netname}}" - name: "{{ soctools_netname}}"
networks_cli_compatible: yes networks_cli_compatible: yes
published_ports: published_ports:
- "443:443"
- "8888:8888" - "8888:8888"
- "8443:8443"
- "9443:9443" - "9443:9443"
- "9200:9200" - "9200:9200"
- "7750:7750" - "7750:7750"
- "5000-5099:5000-5099"
- "6000-6099:6000-6099"
- "9000:9000" - "9000:9000"
- "9001:9001" - "9001:9001"
- "12443:12443"
- "5601:5601"
- "6443:6443"
- "5000-5099:5000-5099"
- "6000-6099:6000-6099"
interactive: "yes" interactive: "yes"
tags: tags:
- start-docker-containers - start-docker-containers
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
networks: networks:
- name: "{{ soctools_netname }}" - name: "{{ soctools_netname }}"
networks_cli_compatible: yes networks_cli_compatible: yes
published_ports:
- "12443:8443"
interactive: "yes" interactive: "yes"
with_items: "{{ groups['keycloakcontainers'] }}" with_items: "{{ groups['keycloakcontainers'] }}"
tags: tags:
......
...@@ -9,8 +9,6 @@ ...@@ -9,8 +9,6 @@
- name: "{{ soctools_netname}}" - name: "{{ soctools_netname}}"
interactive: "yes" interactive: "yes"
networks_cli_compatible: yes networks_cli_compatible: yes
published_ports:
- "6443:6443"
tags: tags:
- start-docker-containers - start-docker-containers
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
networks: networks:
- name: "{{ soctools_netname }}" - name: "{{ soctools_netname }}"
networks_cli_compatible: yes networks_cli_compatible: yes
published_ports:
- "5601:5601"
interactive: "yes" interactive: "yes"
with_items: "{{ groups['odfekibanacontainers'] }}" with_items: "{{ groups['odfekibanacontainers'] }}"
tags: tags:
......
...@@ -49,7 +49,7 @@ listen odfeserv ...@@ -49,7 +49,7 @@ listen odfeserv
{% endfor %} {% endfor %}
listen keycloakserv listen keycloakserv
bind *:10443 ssl crt /etc/ssl/haproxy alpn h2,http/1.1 bind *:12443 ssl crt /etc/ssl/haproxy alpn h2,http/1.1
mode http mode http
maxconn 5000 maxconn 5000
fullconn 5000 fullconn 5000
...@@ -86,36 +86,30 @@ listen cortexserv ...@@ -86,36 +86,30 @@ listen cortexserv
server {{cortexhost}} {{cortexhost}}:9001 check verify none server {{cortexhost}} {{cortexhost}}:9001 check verify none
{% endfor %} {% endfor %}
{% for port in range(50, 60) %} listen kibanaserv
listen nifiservtcp77{{port}} bind *:5601 ssl crt /etc/ssl/haproxy alpn h2,http/1.1
bind *:77{{port}} mode http
mode tcp
maxconn 5000 maxconn 5000
fullconn 5000 fullconn 5000
balance source balance source
option tcpka option tcpka
option tcp-check option forwardfor
option tcplog option httplog
tcp-check connect port 77{{port}} {% for kibanahost in groups['odfekibanacontainers'] %}
{% for nifihost in groups['nificontainers'] %} server {{kibanahost}} {{kibanahost}}:5601 ssl check verify none
server {{nifihost}} {{nifihost}}:77{{port}} check
{% endfor %}
{% endfor %} {% endfor %}
listen mispserv
listen nifiservtcp7771 bind *:6443 ssl crt /etc/ssl/haproxy alpn h2,http/1.1
bind *:7771 mode http
mode tcp
maxconn 5000 maxconn 5000
fullconn 5000 fullconn 5000
balance source balance source
option tcpka option tcpka
option tcp-check option forwardfor
option tcplog option httplog
tcp-check connect port 7771 {% for misphost in groups['mispcontainers'] %}
{% for nifihost in groups['nificontainers'] %} server {{misphost}} {{misphost}}:6443 ssl check verify none
server {{nifihost}} {{nifihost}}:7771 check
{% endfor %} {% endfor %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment