41 lines
812 B
Markdown
41 lines
812 B
Markdown
|
---
|
||
|
title: Howto Spiped
|
||
|
categories: tunneling
|
||
|
...
|
||
|
|
||
|
* Documentation : <http://www.tarsnap.com/spiped.html>
|
||
|
|
||
|
Spiped est un utilitaire pour créer des tunnels chiffrés et authentifiés.
|
||
|
|
||
|
# Installation
|
||
|
|
||
|
~~~
|
||
|
# apt install spiped
|
||
|
~~~
|
||
|
|
||
|
# Utilisation
|
||
|
|
||
|
## En mode écoute/serveur
|
||
|
|
||
|
Pour exposer un service foo écoutant en local sur le port 1337 via une connexion chiffrée par la clé /etc/spiped/foo.key sur le port 31337
|
||
|
|
||
|
~~~
|
||
|
# mkdir /etc/spiped
|
||
|
# dd if=/dev/urandom of=/etc/spiped/foo.key bs=32 count=1
|
||
|
|
||
|
# cat /etc/systemd/system/spiped-foo.service
|
||
|
[Unit]
|
||
|
Description=Spiped receive for FOO
|
||
|
Wants=network-online.target
|
||
|
After=network-online.target
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/spiped -F -d -s 0.0.0.0:31337 -t [127.0.0.1]:1337 -k /etc/spiped/foo.key
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.targe
|
||
|
~~~
|
||
|
|
||
|
## En mode client
|
||
|
|
||
|
TODO
|