Outils pour utilisateurs

Outils du site


tutos:adsb:scripts

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tutos:adsb:scripts [2020/11/05 14:35] f4hoftutos: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/69753]]\\ 
-Prérequissystemd, openvpn et socat +Code à utiliser pour une installation neuve : \\ 
- +<code> 
-===== OpenVPN ===== +sudo bash -c "$(wget -O - https://raw.githubusercontent.com/abcd567a/piaware-ubuntu20-amd64/master/install-dump1090-fa.sh)" 
- +
-<code | /etc/systemd/system/openvpn-fremcom.service> +
-[Unit] +
-Description=OpenVPN to FR-Emcom +
-After=network.target +
- +
-[Service+
-Type=simple +
-ExecStart=/usr/sbin/openvpn --config /etc/openvpn/client/fremcom.conf +
-WorkingDirectory=/root +
-Restart=always +
-#StartLimitIntervalSec=3 +
-StartLimitBurst=0 +
-RestartSec=3 +
- +
-[Install] +
-WantedBy=multi-user.target +
 </code> </code>
- +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://github.com/wiedehopf/combine1090]] 
-remote vpn.example.org 1194 +Code à utiliser pour une installation neuve : \\ 
-proto udp +<code
-ns-cert-type server +sudo bash -c "$(wget -https://raw.githubusercontent.com/wiedehopf/combine1090/master/redirect-only.sh)"
-pull-filter ignore "redirect-gateway def1" +
-pull-filter ignore "redirect-gateway def1 bypass-dhcp" +
-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> +
- ------ 8<------------ SNIP! +
-</ca> +
- +
-key-direction 1 +
-<tls-auth> +
- ------ 8<------------ SNIP! +
-</tls-auth> +
- +
-<cert+
- ------ 8<------------ SNIP! +
-</cert> +
- +
-<key> +
- ------ 8<------------ SNIP! +
-</key> +
 </code> </code>
 +Fichier de configuration à éditer : \\
 +<code>sudo nano /etc/default/combine1090</code>
 +Utiliser la configuration suivante :
 +<code - /etc/default/combine1090>
 +# 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/dump1090-fa this is 30005 for ADS-B and 30105 for MLAT) 
 +PORTS30005
  
-<code | /etc/systemd/system/socat-adsb-fremcom.service> +TARGET=radar.fr-emcom.com:3126
-[Unit] +
-Description=Socat ADSB to FR-Emcom +
-After=network.target +
- +
-[Service] +
-Type=simple +
-ExecStart=/usr/sbin/socat -u TCP:127.0.0.1:30005 TCP:<target_ip>:<target_port> +
-WorkingDirectory=/etc/openvpn +
-Restart=always +
-#StartLimitIntervalSec=3 +
-StartLimitBurst=0 +
-RestartSec=3 +
- +
-[Install] +
-WantedBy=multi-user.target+
 </code> </code>
 +Puis redemarrage de combine1090 :
 +<code>sudo systemctl restart combine1090</code>
  
-Une fois le fichier enregistré, lancer les commandes suivantes:+---- 
 +Pour valider que votre installation remonte bien des informations vers le serveur de fr-emcom : 
 +http://adsb.fr-emcom.com/feeder/feeder.php
  
-<code bash> 
-systemctl daemon-reload 
-systemctl enable socat-adsb-fremcom 
-systemctl start socat-adsb-fremcom 
-</code> 
  
tutos/adsb/scripts.1604586952.txt.gz · Dernière modification : 2020/11/05 14:35 de f4hof

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki