tutos:adsb:scripts
Différences
Ci-dessous, les différences entre deux révisions de la page.
Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
tutos:adsb:scripts [2020/11/05 14:36] – [Socat] f4hof | tutos:adsb:scripts [2021/11/15 22:05] (Version actuelle) – f4fwh | ||
---|---|---|---|
Ligne 1: | Ligne 1: | ||
- | ====== Scripts pour alimentation ADSB ====== | + | Installation Dump1090-fa \\ |
- | + | Suivant le forum : [[https://discussions.flightaware.com/t/howto-install-piaware-4-0-on-debian-10-amd64-ubuntu-20-amd64-kali-2020-amd64-on-pc/ | |
- | Prérequis: systemd, openvpn et socat | + | Code à utiliser pour une installation neuve : \\ |
- | + | < | |
- | ===== OpenVPN ===== | + | sudo bash -c " |
- | + | ||
- | <code | /etc/systemd/system/openvpn-fremcom.service> | + | |
- | [Unit] | + | |
- | Description=OpenVPN to FR-Emcom | + | |
- | After=network.target | + | |
- | + | ||
- | [Service] | + | |
- | Type=simple | + | |
- | ExecStart=/ | + | |
- | WorkingDirectory=/root | + | |
- | Restart=always | + | |
- | # | + | |
- | StartLimitBurst=0 | + | |
- | RestartSec=3 | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=multi-user.target | + | |
</ | </ | ||
- | + | Puis paramétrage suivant votre configuration | |
- | Exemple de fichier de config OpenVPN: | + | ---- |
- | + | Pour remonter les informations vers radar.fr-emcom.com : \\ | |
- | <code | client.cnf> | + | [[https:// |
- | remote vpn.example.org 1194 | + | Code à utiliser pour une installation neuve : \\ |
- | proto udp | + | <code> |
- | ns-cert-type server | + | sudo bash -c " |
- | pull-filter ignore " | + | |
- | pull-filter ignore " | + | |
- | route 192.168.100.0 255.255.255.0 | + | |
- | route 192.168.200.0 255.255.255.0 | + | |
- | + | ||
- | client | + | |
- | dev tun | + | |
- | resolv-retry infinite | + | |
- | keepalive 10 120 | + | |
- | nobind | + | |
- | comp-lzo | + | |
- | verb 3 | + | |
- | + | ||
- | user nobody | + | |
- | group nogroup | + | |
- | + | ||
- | < | + | |
- | | + | |
- | </ca> | + | |
- | + | ||
- | key-direction 1 | + | |
- | < | + | |
- | | + | |
- | </tls-auth> | + | |
- | + | ||
- | <cert> | + | |
- | ------ 8< | + | |
- | </cert> | + | |
- | + | ||
- | < | + | |
- | ------ 8< | + | |
- | </ | + | |
</ | </ | ||
+ | Fichier de configuration à éditer : \\ | ||
+ | < | ||
+ | Utiliser la configuration suivante : | ||
+ | <code - / | ||
+ | # Append the IP addresses of the feeders you want to combine in the next line: | ||
+ | SOURCES= 127.0.0.1 | ||
- | ===== Socat ===== | + | # which ports to collect beast data from (for piaware/ |
+ | PORTS= 30005 | ||
- | <code | / | + | TARGET=radar.fr-emcom.com:3126 |
- | [Unit] | + | |
- | Description=Socat ADSB to FR-Emcom | + | |
- | After=network.target | + | |
- | + | ||
- | [Service] | + | |
- | Type=simple | + | |
- | ExecStart=/ | + | |
- | WorkingDirectory=/ | + | |
- | Restart=always | + | |
- | # | + | |
- | StartLimitBurst=0 | + | |
- | RestartSec=3 | + | |
- | + | ||
- | [Install] | + | |
- | WantedBy=multi-user.target | + | |
</ | </ | ||
+ | Puis redemarrage de combine1090 : | ||
+ | < | ||
- | Une fois le fichier enregistré, | + | ---- |
+ | Pour valider que votre installation remonte bien des informations vers le serveur de fr-emcom | ||
+ | http:// | ||
- | <code bash> | ||
- | systemctl daemon-reload | ||
- | systemctl enable socat-adsb-fremcom | ||
- | systemctl start socat-adsb-fremcom | ||
- | </ | ||
tutos/adsb/scripts.1604586968.txt.gz · Dernière modification : 2020/11/05 14:36 de f4hof