Italiano English
Modifica History Actions

Differenze per "Lombardia/fastd"

Differenze tra le versioni 2 e 4 (in 2 versioni)
Versione 2 del 2016-05-04 21:12:06
Dimensione: 393
Autore: 94-39-172-211
Commento:
Versione 4 del 2016-05-07 11:19:05
Dimensione: 1741
Autore: DiegoRoversi
Commento:
Le cancellazioni sono segnalate in questo modo. Le aggiunte sono segnalate in questo modo.
Linea 15: Linea 15:

=== Configurazione su debian ===

Per prima cosa installare fastd. Tenere conto che e' presente a partire da stretch (testing).

{{{
root# apt-get install fastd
}}}

Serve poi creare una cartella ninux sotto /etc/fastd/, e una sotto cartella peers:

{{{
root# mkdir -p /etc/fastd/ninux/peers
}}}

Creare poi una chiave pubblica/privata per il proprio nodo:

{{{
fastd --generate-key
}}}

E salvarsi in un posto sicuro le chiavi generate.

Creare il file di configurazione /etc/fastd/ninux/fastd.conf:

{{{
# Log warnings and errors to stderr
log level warn;

# Log everything to syslog
log to syslog level debug;

# Set the interface name
interface "mesh-vpn";

# Support salsa2012+umac and null methods, prefer salsa2012+umac
method "null+salsa2012+umac";
method "salsa2012+umac";
method "null";

# Bind to a fixed port, IPv4 only
bind 0.0.0.0:10000;

# Secret key generated by `fastd --generate-key`
secret "xxxx";


# Set the interface MTU for TAP mode with xsalsa20/aes128 over IPv4 with a base MTU of 1492 (PPPoE)
# (see MTU selection documentation)
mtu 1426;

# Include peers from the directory 'peers'
include peers from "peers";

}}}

Dove c'e' xxxx inserire la propria chiave privata, generata al passo precedente con "fastd --generate-key".


=== Configurazione su openwrt ===

Stiamo progettando di usare fastd per fare qualche prova di collegamento verso un server vps che fornisce un nodo batman.

promemoria veloce da irc:

< diego71> modprobe tun; ip tuntap add dev tap0 mode tap
< diego71> (se no fastd non parte su debian)

< diego71> ethtool -K eth0 tx off rx off
< diego71> impostazioni per tcp-offloading
< diego71> (disabilitare)

Configurazione su debian

Per prima cosa installare fastd. Tenere conto che e' presente a partire da stretch (testing).

root# apt-get install fastd

Serve poi creare una cartella ninux sotto /etc/fastd/, e una sotto cartella peers:

root# mkdir -p /etc/fastd/ninux/peers

Creare poi una chiave pubblica/privata per il proprio nodo:

fastd --generate-key

E salvarsi in un posto sicuro le chiavi generate.

Creare il file di configurazione /etc/fastd/ninux/fastd.conf:

# Log warnings and errors to stderr
log level warn;

# Log everything to syslog
log to syslog level debug;

# Set the interface name
interface "mesh-vpn";

# Support salsa2012+umac and null methods, prefer salsa2012+umac
method "null+salsa2012+umac";
method "salsa2012+umac";
method "null";

# Bind to a fixed port, IPv4 only
bind 0.0.0.0:10000;

# Secret key generated by `fastd --generate-key`
secret "xxxx";


# Set the interface MTU for TAP mode with xsalsa20/aes128 over IPv4 with a base MTU of 1492 (PPPoE)
# (see MTU selection documentation)
mtu 1426;

# Include peers from the directory 'peers'
include peers from "peers";

Dove c'e' xxxx inserire la propria chiave privata, generata al passo precedente con "fastd --generate-key".

Configurazione su openwrt