Potsdam-VPN: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
Seth0r (Diskussion | Beiträge) |
Seth0r (Diskussion | Beiträge) |
||
Zeile 14: | Zeile 14: | ||
# make && make libs && make install && make libs_install | # make && make libs && make install && make libs_install | ||
# vim /etc/olsrd/olsrd.conf | # vim /etc/olsrd/olsrd.conf | ||
#RtTableTunnel 113 | RtTable 111 | ||
#RtTableTunnelPriority 100000 | RtTableDefault 112 | ||
SmartGateway no | |||
SmartGatewayUplink "none" | #RtTableTunnel 113 | ||
#RtTableTunnelPriority 100000 | |||
DebugLevel 0 | SmartGateway no | ||
SmartGatewayUplink "none" | |||
Interface "tap0" | |||
{ | DebugLevel 0 | ||
Interface "tap0" | |||
{ | |||
Mode "ether" | Mode "ether" | ||
Ip4Broadcast 255.255.255.255 | Ip4Broadcast 255.255.255.255 | ||
LinkQualityMult default 0.25 | LinkQualityMult default 0.25 | ||
HelloInterval 3.0 | HelloInterval 3.0 | ||
HelloValidityTime 125.0 | HelloValidityTime 125.0 | ||
Zeile 39: | Zeile 39: | ||
HnaInterval 10.0 | HnaInterval 10.0 | ||
HnaValidityTime 125.0 | HnaValidityTime 125.0 | ||
} | } | ||
Interface "n2n0" | Interface "n2n0" | ||
{ | { | ||
Mode "ether" | Mode "ether" | ||
Ip4Broadcast 255.255.255.255 | Ip4Broadcast 255.255.255.255 | ||
LinkQualityMult default 1.0 | LinkQualityMult default 1.0 | ||
HelloInterval 3.0 | HelloInterval 3.0 | ||
HelloValidityTime 125.0 | HelloValidityTime 125.0 | ||
Zeile 55: | Zeile 55: | ||
HnaInterval 10.0 | HnaInterval 10.0 | ||
HnaValidityTime 125.0 | HnaValidityTime 125.0 | ||
} | } | ||
Hna4 | Hna4 | ||
{ | { | ||
172.22.250.0 255.255.255.0 | 172.22.250.0 255.255.255.0 | ||
172.22. | 172.22.25<span style="color:red">X</span>.0 255.255.255.0 | ||
} | } | ||
LinkQualityFishEye 1 | LinkQualityFishEye 1 | ||
LinkQualityAlgorithm "etx_ffeth" | LinkQualityAlgorithm "etx_ffeth" | ||
IpVersion 4 | IpVersion 4 | ||
ClearScreen yes | ClearScreen yes | ||
AllowNoInt yes | AllowNoInt yes | ||
Willingness 3 | Willingness 3 | ||
UseHysteresis no | UseHysteresis no | ||
LinkQualityLevel 2 | LinkQualityLevel 2 | ||
Pollrate 0.1 | Pollrate 0.1 | ||
TcRedundancy 2 | TcRedundancy 2 | ||
MprCoverage 5 | MprCoverage 5 | ||
LoadPlugin "olsrd_jsoninfo.so.1.1" | LoadPlugin "olsrd_jsoninfo.so.1.1" | ||
{ | { | ||
PlParam "Port" "8080" | PlParam "Port" "8080" | ||
} | } | ||
LoadPlugin "olsrd_nameservice.so.0.4" | LoadPlugin "olsrd_nameservice.so.0.4" | ||
{ | { | ||
PlParam "name" " | PlParam "name" "pdmvpn<span style="color:red">X</span>" | ||
PlParam "suffix" ".olsr" | PlParam "suffix" ".olsr" | ||
PlParam "hosts-file" "/tmp/hosts.olsr" | PlParam "hosts-file" "/tmp/hosts.olsr" | ||
} | } | ||
LoadPlugin "olsrd_drophna.so.0.0.0" | LoadPlugin "olsrd_drophna.so.0.0.0" | ||
{ | { | ||
} | } | ||
Version vom 4. Juli 2017, 15:36 Uhr
Das Potsdam-VPN ist ein Intra-City-VPN, das dazu dient, um Inseln zusammenzuführen.
Client einrichten
Server aufsetzen
Keys generieren
OpenVPN einrichten
N2N für Server-zu-Server Kommunikation
OLSR kompilieren und installieren
- apt-get install git build-essential bison flex libgps-dev
- git clone -b drophna_plugin https://github.com/freifunk-berlin/olsrd.git
- cd olsrd/
- make && make libs && make install && make libs_install
- vim /etc/olsrd/olsrd.conf
RtTable 111 RtTableDefault 112 #RtTableTunnel 113 #RtTableTunnelPriority 100000 SmartGateway no SmartGatewayUplink "none" DebugLevel 0 Interface "tap0" { Mode "ether" Ip4Broadcast 255.255.255.255 LinkQualityMult default 0.25 HelloInterval 3.0 HelloValidityTime 125.0 TcInterval 2.0 TcValidityTime 500.0 MidInterval 25.0 MidValidityTime 500.0 HnaInterval 10.0 HnaValidityTime 125.0 } Interface "n2n0" { Mode "ether" Ip4Broadcast 255.255.255.255 LinkQualityMult default 1.0 HelloInterval 3.0 HelloValidityTime 125.0 TcInterval 2.0 TcValidityTime 500.0 MidInterval 25.0 MidValidityTime 500.0 HnaInterval 10.0 HnaValidityTime 125.0 } Hna4 { 172.22.250.0 255.255.255.0 172.22.25X.0 255.255.255.0 } LinkQualityFishEye 1 LinkQualityAlgorithm "etx_ffeth" IpVersion 4 ClearScreen yes AllowNoInt yes Willingness 3 UseHysteresis no LinkQualityLevel 2 Pollrate 0.1 TcRedundancy 2 MprCoverage 5 LoadPlugin "olsrd_jsoninfo.so.1.1" { PlParam "Port" "8080" } LoadPlugin "olsrd_nameservice.so.0.4" { PlParam "name" "pdmvpnX" PlParam "suffix" ".olsr" PlParam "hosts-file" "/tmp/hosts.olsr" } LoadPlugin "olsrd_drophna.so.0.0.0" { }