|
| 1 | +#!/bin/sh |
| 2 | +# |
| 3 | +# 00-header - create the header of the MOTD |
| 4 | +# Copyright (C) 2009-2010 Canonical Ltd. |
| 5 | +# |
| 6 | +# Authors: Dustin Kirkland <[email protected]> |
| 7 | +# |
| 8 | +# This program is free software; you can redistribute it and/or modify |
| 9 | +# it under the terms of the GNU General Public License as published by |
| 10 | +# the Free Software Foundation; either version 2 of the License, or |
| 11 | +# (at your option) any later version. |
| 12 | +# |
| 13 | +# This program is distributed in the hope that it will be useful, |
| 14 | +# but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 15 | +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 16 | +# GNU General Public License for more details. |
| 17 | +# |
| 18 | +# You should have received a copy of the GNU General Public License along |
| 19 | +# with this program; if not, write to the Free Software Foundation, Inc., |
| 20 | +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
| 21 | + |
| 22 | +[ -r /etc/lsb-release ] && . /etc/lsb-release |
| 23 | + |
| 24 | +if [ -z "$DISTRIB_DESCRIPTION" ] && [ -x /usr/bin/lsb_release ]; then |
| 25 | + # Fall back to using the very slow lsb_release utility |
| 26 | + DISTRIB_DESCRIPTION=$(lsb_release -s -d) |
| 27 | +fi |
| 28 | + |
| 29 | +#printf "Welcome to %s (%s %s %s)\n" "$DISTRIB_DESCRIPTION" "$(uname -o)" "$(uname -r)" "$(uname -m)" |
| 30 | + |
| 31 | +printf "SigFW\n" |
| 32 | +printf "Open Source SS7/Diameter firewall\n" |
| 33 | +printf "Original work was created by Martin Kacer, Philippe Langlois\n" |
| 34 | +printf "Copyright 2017, P1 Security S.A.S and individual contributors\n" |
| 35 | +printf "See the AUTHORS in the distribution for a full listing of individual contributors.\n" |
| 36 | +printf "\n" |
| 37 | +printf "SigFW is licensed under dual license policy. The default license is\n" |
| 38 | +printf "the Free Open Source GNU Affero GPL v3.0. Alternatively a commercial license\n" |
| 39 | +printf "can be obtained from P1 Security S.A.S.\n" |
| 40 | +printf "\n" |
| 41 | +printf "\n" |
| 42 | +printf "Interfaces:\n" |
| 43 | +printf " enp0s3 - management (SSH, Web)\n" |
| 44 | +printf " enp0s8 - signalling (SigFW could be reconfigured here)\n" |
| 45 | +printf " enp0s9 - passive signalling (port-mirrored traffic)\n" |
| 46 | +printf "\n" |
| 47 | +printf "To access Kibana:\n" |
| 48 | +printf " http://<host>:5601/\n" |
| 49 | +printf "\n" |
| 50 | +printf "To access API\n" |
| 51 | +printf " https://<host>:8443/ss7fw_api/1.0/get_status\n" |
| 52 | +printf "\n" |
| 53 | +printf "To check if services are running:\n" |
| 54 | +printf " sudo service tshark_to_ss7fw status\n" |
| 55 | +printf " sudo service tshark_to_ek status\n" |
| 56 | +printf " sudo service ss7fw status\n" |
| 57 | +printf " sudo service ss7server status\n" |
| 58 | +printf " sudo service ss7client status\n" |
| 59 | +printf "\n" |
| 60 | +printf "To replay the pcap on passive interface:\n" |
| 61 | +printf " sudo tcpreplay --intf1=enp0s9 sigtran.pcap\n" |
| 62 | +printf "\n" |
| 63 | +printf "Description:\n" |
| 64 | +printf " By default only SS7FW is enabled. The SS7FW is in passive mode.\n" |
| 65 | +printf " DiameterFW code is present but configured as service system service.\n" |
| 66 | +printf " Tshark is capturing traffic on enp0s9 and pushing into ElasticSearch.\n" |
| 67 | +printf " Second instance of tshark is pushing capture into named pipe of SS7FW.\n" |
| 68 | +printf " The SS7FW consist of ss7client, ss7firewall, ss7server. ss7client replay\n" |
| 69 | +printf " the captured traffic from enp0s9 towards ss7firewall and ss7server on\n" |
| 70 | +printf " localhost.\n" |
| 71 | +printf "\n" |
| 72 | +printf " SS7FW is located in /opt/SigFW/ss7fw/\n" |
| 73 | +printf " DiameterFW is located in /opt/SigFW/diameterfw/\n" |
| 74 | +printf "\n" |
| 75 | +printf " Before first run or if the IP has changed, modify /etc/kibana/kibana.yml" |
| 76 | +printf "\n" |
| 77 | +printf "\n" |
| 78 | +printf "To access logs:\n" |
| 79 | +printf " tail -f /opt/SigFW/ss7fw/ss7fw.ss7fw-core_jar_1.0.0-SNAPSHOT/ss7fw.log\n" |
0 commit comments