LEDE: Unterschied zwischen den Versionen
Aus Vosp.info
F (Diskussion | Beiträge) (→riseup) |
F (Diskussion | Beiträge) (→Anleitungen) |
||
Zeile 105: | Zeile 105: | ||
</source> | </source> | ||
− | + | ==== openvpn starten mit Passwortabfrage ==== | |
+ | '''start befehl''' | ||
<source lang=bash> | <source lang=bash> | ||
openvpn --client --dev tun --auth-user-pass --remote vpn.riseup.net 1194 --keysize 256 --auth SHA256 --cipher AES-256-CBC --ca /etc/openvpn/RiseupCA.pem | openvpn --client --dev tun --auth-user-pass --remote vpn.riseup.net 1194 --keysize 256 --auth SHA256 --cipher AES-256-CBC --ca /etc/openvpn/RiseupCA.pem | ||
Zeile 111: | Zeile 112: | ||
− | + | ==== openvpn starten mit Passwortdatei ==== | |
/etc/openvpn/riseup_auth.txt | /etc/openvpn/riseup_auth.txt | ||
Zeile 119: | Zeile 120: | ||
</source> | </source> | ||
+ | '''start befehl''' | ||
<source lang=bash> | <source lang=bash> | ||
openvpn --client --dev tun --auth-user-pass /etc/openvpn/riseup_auth.txt --remote vpn.riseup.net 1194 --keysize 256 --auth SHA256 --cipher AES-256-CBC --ca /etc/openvpn/RiseupCA.pem | openvpn --client --dev tun --auth-user-pass /etc/openvpn/riseup_auth.txt --remote vpn.riseup.net 1194 --keysize 256 --auth SHA256 --cipher AES-256-CBC --ca /etc/openvpn/RiseupCA.pem | ||
</source> | </source> | ||
− | + | ==== openvpn starten mit configfile ==== | |
/etc/openvpn/riseup2.ovpn | /etc/openvpn/riseup2.ovpn | ||
Zeile 144: | Zeile 146: | ||
#route-noexec | #route-noexec | ||
#route-up /etc/openvpn/ruvpnrouteadd.sh | #route-up /etc/openvpn/ruvpnrouteadd.sh | ||
+ | </source> | ||
+ | |||
+ | |||
+ | '''start befehl''' | ||
+ | <source lang=bash> | ||
+ | openvpn /etc/openvpn/riseup2.ovpn | ||
+ | </source> | ||
+ | |||
+ | ==== openvpn starten mit /etc/init.d/openvpn ==== | ||
+ | |||
+ | |||
+ | '''/etc/config/openvpn''' | ||
+ | <source lang=bash> | ||
+ | config openvpn cryptn_vpn | ||
+ | # Set to 1 to enable this instance: | ||
+ | option enable 1 | ||
+ | |||
+ | # Include OpenVPN configuration | ||
+ | option config /etc/openvpn/riseup2.ovpn | ||
+ | </source> | ||
+ | |||
+ | |||
+ | '''start befehl''' | ||
+ | <source lang=bash> | ||
+ | /etc/init.d/openvpn start | ||
+ | /etc/init.d/openvpn restart | ||
+ | /etc/init.d/openvpn stop | ||
</source> | </source> | ||
Version vom 11. August 2017, 18:34 Uhr
Inhaltsverzeichnis
Befehle
# Netzwerkkonifguration anzeigen
uci show network
uci show wireless
uci show firewall
# routen ausgeben
ip route
# wlan scannen
iwinfo wlan0 scan
iwinfo
iw wlan0 info
iw wlan0 scan dump
iw wlan0 mpp dump
iw wlan0 mpath dump
iw wlan0 station dump
iw wlan0 survey dump
# Netzwerkprogramm iftop
opkg install iftop
iftop
Installation
Installatioin auf TL-WR1043ND v4.x
- https://lede-project.org/toh/hwdata/tp-link/tp-link_tl-wr1043nd_v4
- https://lede-project.org/toh/start Table of Hardware
- https://wiki.openwrt.org/toh/tp-link/tl-wr1043nd Installation anleitung
- download
Adblock
Manuell
https://blog.doenselmann.com/werbung-direkt-auf-openwrt-router-blocken/
Direkt vom Router
wget --no-check-certificate https://gist.githubusercontent.com/teffalump/7227752/raw/af7d3d365426731015e99698a93e1a072a7da4ba/adblock.sh
mit opkg
https://github.com/openwrt/packages/tree/master/net/adblock/files
speziell z.B Windows updates
https://github.com/crazy-max/WindowsSpyBlocker https://yro.slashdot.org/story/15/08/26/225239/how-to-keep-microsofts-nose-out-of-your-personal-data-in-windows-10
Block Files von irgenwelchen ...
http://someonewhocares.org/hosts/
VPN
Anleitungen
https://blog.doenselmann.com/openvpn-server-auf-openwrt-router-betreiben/ http://www.kammerath.net/openwrt-mit-openvpn-client.html
ssh root@192.168.1.1
opkg update
opkg install openvpn-openssl
riseup
- /etc/openvpn/RiseupCA.pem
-----BEGIN CERTIF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ZP6sQ1lu0rO9Bvkhx55sJLZOmjN3g4S1K97PbbI
5DzHKcR0JQSt8ZtCY/MuMbwvlNYo98bFWvlfKET0KPtogNNH0PNfJmStKR8jWGjE
HnUNXo7YDfK90iEKTjLz2K5CYzH5Dm6iYJNaaykCAwEAAaNGMEQwEgYDVR0TAQH/
BAgwBgEB/wIBADAPBgNVHQ8BAf8EBQMDBwQAMB0GA1UdDgQWBBTGek7ebtq2Ibm+
2K6je1IMobvEkzANBgkqhkiG9w0BAQsFAAOCAgEAO2B3jnL+8LeoRkc282qUpHyu
xYj0Qd68l0CJ0FjfA2OCR/6h1W4gZVH+fTd/mhgrNXj28GRT53JEh1jdRC7ENTXu
W9O8I9gCbWQ6V4nkZ9lpq8UEmKTFGnngVu8VCmSDF+y0kFuEtmt0jyd2UkJfC/vy
Gh78OCHEdGAeOTYHXamiuA9Z7wMuncPjP476gSW2kfWTdxV25ad4tT5dA5d42xDm
YE2UKzHeB9amOmvyh08LPD0idT5oROCIHsHBhQC9oltJXO5j6GyHRg88C1inyv6R
xk+w9ek4wSBpoJg5t3hdbZr3JTUsuu4WPtAET0fMQpJC+niaBbegwtvdLZFM+d8x
ead3ZpMO+XrpazDFGtdPTQdi5EIYmr2RL9eTeQbVPwMB9TgFpBXP+iYIuTpNo8jn
8zS4EcPRmz6PQJVK4zkHczfvquyU9RuOwEgb8qN4tSNxF0Z94uSVUoXCG9WZLf8q
MfsGesYiR/qLnLn3MfAyWm3OVOUvGzczDE2T8VvY7rXc2+8ra5aK0TNAgEz9ey6D
/dGzM1JCCe1A08s+2+eRX//pmqmOCoGrY7zwIVS2T249h6iIMM9yT0C3ZXRoTnVN
osyidOkVuQr0YK6shJ0WaK4F1MktdjOZKPoIc9QLw+TrSU2hfyla36T0bNWMC/TJ
YtxDI+d1jIFZ7zMmts4=
-----END CERTIFICATE-----
openvpn starten mit Passwortabfrage
start befehl
openvpn --client --dev tun --auth-user-pass --remote vpn.riseup.net 1194 --keysize 256 --auth SHA256 --cipher AES-256-CBC --ca /etc/openvpn/RiseupCA.pem
openvpn starten mit Passwortdatei
/etc/openvpn/riseup_auth.txt
user
secret
start befehl
openvpn --client --dev tun --auth-user-pass /etc/openvpn/riseup_auth.txt --remote vpn.riseup.net 1194 --keysize 256 --auth SHA256 --cipher AES-256-CBC --ca /etc/openvpn/RiseupCA.pem
openvpn starten mit configfile
/etc/openvpn/riseup2.ovpn
client
dev tun
auth-user-pass /etc/openvpn/riseup_auth.txt
remote vpn.riseup.net 1194
keysize 256
auth SHA256
cipher AES-256-CBC
ca /etc/openvpn/RiseupCA.pem
#
auth-nocache
#
remote-cert-tls server
script-security 2
persist-tun
persist-key
#route-noexec
#route-up /etc/openvpn/ruvpnrouteadd.sh
start befehl
openvpn /etc/openvpn/riseup2.ovpn
openvpn starten mit /etc/init.d/openvpn
/etc/config/openvpn
config openvpn cryptn_vpn
# Set to 1 to enable this instance:
option enable 1
# Include OpenVPN configuration
option config /etc/openvpn/riseup2.ovpn
start befehl
/etc/init.d/openvpn start
/etc/init.d/openvpn restart
/etc/init.d/openvpn stop
Hardware
Ubiquiti Unifi | AP AC Lite
- Firmware durch Lede erseztzen
- Anschluss des AP AC LITE an einen Router
nmap -sP 192.168.1.1/24 Nmap scan report for 192.168.1.104 Host is up (-0.095s latency). MAC Address: F0:9F:C2:7C:2F:C8 (Ubiquiti Networks)
ssh ubnt@192.168.1.104
pw: ubnt
- Download:
https://downloads.lede-project.org/releases/17.01.2/targets/ar71xx/generic/
- ubnt-unifiac-lite-squashfs-sysupgrade.bin
- Image kopieren
scp lede-17.01.2-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin ubnt@192.168.1.104:/tmp/ ssh ubnt@192.168.1.104:/tmp/
BZ.v3.4.14#
- Beide Befehle hintereinander ausführen!!!
mtd write /tmp/lede-17.01.2-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin kernel0 mtd -r write /tmp/lede-17.01.2-ar71xx-generic-ubnt-unifiac-lite-squashfs-sysupgrade.bin kernel1
Die Verbindung wird unterbrochen Login in Lede:
ssh root@192.168.1.1