* Server steht in der M18 und ist ein normaler Linksys
+
* Server steht in der M18 und ist ein normaler Linksys mit oeffentlicher IP-Adresse
+
* Freifunk-IP ist die 10.63.254.214 auf dem VPN-Interface
+
* die Clients sind dann jeweils die 254.41 und 254.82
* Aufruf mit: <tt>vtund -s</tt>
* Aufruf mit: <tt>vtund -s</tt>
* Konfigdatei <tt>/etc/vtund.conf</tt>
* Konfigdatei <tt>/etc/vtund.conf</tt>
<pre>
<pre>
−
vpn {
+
default {
−
passwd bla;
+
proto udp;
type tun;
type tun;
−
proto udp;
compress no;
compress no;
encrypt no;
encrypt no;
Zeile 27:
Zeile 28:
multi yes;
multi yes;
stat no;
stat no;
+
}
+
client0 {
+
passwd bla;
+
device tun0;
+
up {
+
program "ip addr add 10.63.254.214 peer 10.63.254.41 dev %%; ip link set %% mtu 1450 up";
+
};
+
}
+
client1 {
+
passwd bla;
+
device tun1;
up {
up {
−
program "SERVER=1; CLIENT=$(nvram get wifi_ipaddr|cut -d'.' -f3); ip addr add dev %% 10.63.254.$SERVER peer 10.63.254.$CLIENT; ip link set %% mtu 1450 up";
+
program "ip addr add 10.63.254.214 peer 10.63.254.82 dev %%; ip link set %% mtu 1450 up";