Sooo jetzt geht alles (da fehlte noch das Routing):
"sudo echo 1 > /proc/sys/net/ipv4/ip_forward"
dann "sudo nano /etc/sysctl.con" und da bei net.ipv4.ip_forward=1 Kommentar entfernen
reboot
dann "iptables -t nat -A POSTROUTING -o tun0 -j MASQUERADE"
dann testen ob ein Client, über den PI ins Internet kommt
DAMIT BEIM NÄCHSTEN REBOOT NICHT ALLES WEG IST; KOMMT DAS NOCH:
dann "mkdir /home/pi/router"
"cd /home/pi/router"
"sudo iptables-save > ./iptables.tbl" - da werden die aktuelllen IPTABLES gespeichert
dann "sudo nano /etc/network/if-pre-up.d/iptables"
Inhalt:
#!/bin/sh
#Iptables wiederherstellen
iptables-restore < /home/pi/router/iptables.tbl
exit 0
dann "sudo chmown root:root /etc/network/if-pre-up.d/iptables"
"sudo chmod +x /etc/network/if-pre-up.d/iptables"
"sudo chmod 755 /etc/network/if-pre-up.d/iptables"
reboot
FERTIG!!!!!! :thumbs1::thumbs1::thumbs1: