Cześć wszystkim.
Widziałem że hispano73 udało się uruchomić internet w MMI 3G+ za pomocą wifi w mmi + malina/2 x karta wifi + telefon z internetem jako hotspot.
Można też zrobić prościej czyli malina/1 x karta wifi, 1 x modem GSM.
Czyli odpada nam telefon jako hotspot.
Wszystko to fajnie ale wymyśliłem że można by było chyba jeszcze prościej.
Można by się pozbyć z tej konfiguracji którą uruchomił hispano73 maliny.
Czyli konfiguracja byłaby następująca: wifi w mmi + telefon z internetem.
Z tym że musiałby to być zrootowany telefon z androidem + trochę softu + odpowiednia konfiguracja.
Mój pomysł jest taki:
Telefon z androidem podłączamy jako klienta do MMI.
W telefonie uruchamiamy połączenie z internetem GSM.
W telefonie za pomocą polecenia iptables konfigurujemy routing pomiędzy modułem GSM a modułem WLAN. który jest połączony z MMI.
Na necie znalazłem instrukcję jednego gościa jak uruchomić na telefonie z androidem iptables bo fabrycznie ich tam nie ma.
Tu fragment maila:
Just to let you know that I just did this on Android Lollipop on a Samsung Galaxy S5 SM-G900M. I just forwarded a port from my phone’s wifi to my computer using USB tethering without using the Google Play apps that already exist for this purpose (they are incompatible with Android 5.0).
I will post the full step-by-step solution here with complete commands just in case a newbie stumbles upon this example:
1: Root your phone. 2: Install the iptables app from Google Play: https://play.google.com/store/apps/details?id=com.mgranja.iptables 3: Install the terminal emulator app: https://play.google.com/store/apps/details?id=jackpal.androidterm 4: Find out your computer’s IP address. On Windows, open cmd.exe and type “ipconfig”; on Linux, open the system terminal and type “sudo ipconfig” then enter your user’s password. 5: Open the terminal emulator, type “su” then Enter, approve the superuser permission request, then type this:
iptables -A PREROUTING -t nat -i wlan0 -p tcp –dport -j DNAT –to : iptables -A FORWARD -p tcp -d –dport -j ACCEPT
Ta instrukcja dotyczy trochę innej sytuacji niż nasza ale myślę że ktoś oblatany w temacie routingu byłby to w stanie odpowiednio przerobić.
Co o tym myślicie ?
Myślę że to byłoby najlepsze rozwiązanie problemu internetu w Audi, bo nie trzeba kupować maliny (chociaż dużo nie kosztuje) i trzymać jej gdzieś w aucie, a stary niepotrzebny telefon z androidem prawie każdy ma w szufladzie.
Może by się komuś z was udało uruchomić taką konfigurację ?