honey_pot
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 | ||
| honey_pot [2025/04/03 12:24] – [3. Installation] root | honey_pot [2025/11/17 09:00] (Version actuelle) – modification externe 127.0.0.1 | ||
|---|---|---|---|
| Ligne 37: | Ligne 37: | ||
| === 3.4. Configuration === | === 3.4. Configuration === | ||
| <code bash> | <code bash> | ||
| - | cp etc/ | + | cp / |
| - | nano etc/ | + | nano / |
| </ | </ | ||
| **Options clés** : | **Options clés** : | ||
| * '' | * '' | ||
| - | * '' | + | * '' |
| * Activer '' | * Activer '' | ||
| Ligne 57: | Ligne 57: | ||
| <code bash> | <code bash> | ||
| sudo apt install iptables-persistent | sudo apt install iptables-persistent | ||
| - | sudo iptables -t nat -A PREROUTING -p tcp --dport 22 -j REDIRECT --to-port 2222 | ||
| sudo netfilter-persistent save | sudo netfilter-persistent save | ||
| + | sudo iptables -t nat -A PREROUTING -p tcp --dport 22 -j REDIRECT --to-port 2222 | ||
| </ | </ | ||
| Ligne 68: | Ligne 68: | ||
| <code bash> | <code bash> | ||
| - | ===== 5. Optionnel : Service Systemd | + | ===== 5. Optionnel : Exécuter Cowrie comme un service |
| - | <file / | + | |
| + | Créez un service systemd pour que Cowrie démarre automatiquement : | ||
| + | <code> | ||
| + | sudo nano / | ||
| + | </ | ||
| + | Ajoutez cette configuration : | ||
| + | <file> | ||
| [Unit] | [Unit] | ||
| Description=Cowrie SSH Honeypot | Description=Cowrie SSH Honeypot | ||
| After=network.target | After=network.target | ||
| - | |||
| [Service] | [Service] | ||
| User=cowrie | User=cowrie | ||
| + | TP14 Honeypot et SNORT page 5/6 | ||
| WorkingDirectory=/ | WorkingDirectory=/ | ||
| ExecStart=/ | ExecStart=/ | ||
| Restart=always | Restart=always | ||
| - | |||
| [Install] | [Install] | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| </ | </ | ||
| + | Puis activez et démarrez le service : | ||
| Activation : | Activation : | ||
| <code bash> | <code bash> | ||
honey_pot.1743683077.txt.gz · Dernière modification : (modification externe)
