dnsmasq auf Vodafone Box macht Probleme

Alle weiteren Dienste, die nicht in die drei oberen Foren gehören.
Antworten
Benutzeravatar
gnude
Beiträge: 1567
Registriert: 14.09.2009 22:05:28
Kontaktdaten:

dnsmasq auf Vodafone Box macht Probleme

Beitrag von gnude » 26.11.2022 20:25:58

Hallo,

auch wenn es sich jetzt um eine Frage aus dem Ubuntu Umfeld handelt die ich hier stelle hoffe ich doch das mir jemand helfen kann und vielleicht gute Tipps hat wie ich das Problem angehen kann. Ich bin total ratlos und weiss nicht mehr wo ich suchen soll.

Kurz eine Beschreibung der Ist-Situation:

Ich bin bei Vodafone Kabelkunde und habe eine Vodafone Station die mit Docsis angebunden ist.
Der Vertrag ist nen 1000er Cablemax Vertrag.

Die Vodafone Station hat eine Reihe von Portweiterleitungen auf den internen Server eingerichtet. Die DHCP Funktion habe ich deaktiviert.
Zusätzlich ist auf der Vodafone Station noch der Dyndns Dienst noip.biz eingerichtet um das Setup von Aussen erreichbar zu machen.
Ich habe ein Notebook mit Ubuntu 22.04 eingerichtet. Das Notebook hat eine feste IP Adresse. Auf dem Notebook habe ich Virtual-Box installiert und als VM ein Ubuntu 22.04 Server.
Der Server bietet folgende Dienste: Mailserver (Postfix, Dovecot, Fetchmail), Webserver, DLNA Server, eJabberd Server.
Zusätlich ist noch ein dnsmasq eingerichtet der als DNS und DHCP Server dient. Zuzätzlich habe ich auf dem Server ddclient eingerichet
und noch einen zweiten dyndsndienst. Das funktioniert aber alles.
Die Einstellungen von dsnmasq sind:

Code: Alles auswählen

server=192.168.178.1
dhcp-option=3,192.168.178.1
dhcp-option=6,192.168.178.39
dhcp-range=192.168.178.50,192.168.178.200,12h
address=/gnude.feste-ip.net/192.168.178.39
und ein ip a auf dem Server ergibt folgendes.

Code: Alles auswählen

root@server2204:~# ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:02:58:17 brd ff:ff:ff:ff:ff:ff
    inet 192.168.178.39/24 brd 192.168.178.255 scope global enp0s3
       valid_lft forever preferred_lft forever
    inet 192.168.178.40/24 brd 192.168.178.255 scope global secondary enp0s3
       valid_lft forever preferred_lft forever
    inet6 2a02:908:1d16:10e0:9d6:6eb5:fdfd:d8b9/128 scope global dynamic noprefixroute 
       valid_lft 356071sec preferred_lft 356071sec
    inet6 2a02:908:1d16:10e0:a00:27ff:fe02:5817/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 79268sec preferred_lft 36068sec
    inet6 fe80::a00:27ff:fe02:5817/64 scope link 
       valid_lft forever preferred_lft forever
root@server2204:~# 
Auf dem Smartphone habe ich DHCP aktiviert und dort ist im eMail Client der Mailserver über den Dyndns Dienst eingerichet,
so das ich wenn ich unterwegs bin von aussen meinen Server erreichen kann um die eMails dort abzurufen.
Im ersten Schritt hatte ich die Vodafone Box noch DHCP machen lassen, doch dann gab es Probleme mit dem NAT-Pinning wenn ich mich im lokalen Netz befunden habe und von dort über die DynDNS Adresse meine eMails abrufen wollte.
Daher der Schritt zu deinem eigenen DNS und DHCP Server.

Nun treten folgende Probleme auf:
Nach einiger Zeit kann ich keine IPv4 Adresse mehr beziehen über den DHCP Server. Dann bekommt das Smartphone nur noch eine IPv6 Adresse. Wenn ich dann im lokalen Netz bin und dort auf dem Notebook "web.threema.ch" aufrufe findet die Seite das Smartphone nicht mehr.
Ich muss beim Smartphone dann Wifi abschalten und über die mobilen Daten gehen.
Die Lösung ist: Vodafone Box kurz Stromlos machen. Anschliessend kann das Smartphone wieder über den DHCP eine IP Adresse beziehen und alles klappt.
Aber das hält nicht lange an und nach einiger Zeit.... klappt es nicht mehr. Zu diesem Zeitpunkt funktioniert nur IPv6, ich kann IPv6 Adressen anpingen aber Webseiten die nur per IPv4 erreichbar sind (www.web.de) gehen nicht mehr. Die IPv6 Adressen schon.
Die Zeitabstände zwischen den "Ausfällen" werden immer kürzer und ich muss in immer kürzeren Abständen die Vodafone-Station Stromlos machen.
Irgendwann brachte auch das nichts mehr und ich hab die Vodafone-Station komplett resettet und neu eingerichtet. Danach hatte ich einige Wochen Ruhe. Dann ging es wieder los mit den Problmen und nach jedem Stromlos machen wird der Zeitraum kürzer.

Auf dem Server habe ich mal einen Log Auszug von einem Zeitraum in dem IPv4 ausgefallen ist und nur noch IPv6 zur Verfügung steht.

Code: Alles auswählen

Nov 22 02:45:35 thinkpad rtkit-daemon[1081]: message repeated 2 times: [ Supervising 9 threads of 6 processes of 1 users.]
Nov 22 02:59:15 thinkpad wpa_supplicant[900]: wlp3s0: WPA: Group rekeying completed with 08:a7:c0:ec:64:c0 [GTK=CCMP]
Nov 22 02:59:18 thinkpad kernel: [10025.248703] wlp3s0: deauthenticated from 08:a7:c0:ec:64:c0 (Reason: 2=PREV_AUTH_NOT_VALID)
Nov 22 02:59:17 thinkpad wpa_supplicant[900]: message repeated 3 times: [ wlp3s0: WPA: Group rekeying completed with 08:a7:c0:ec:64:c0 [GTK=CCMP]]
Nov 22 02:59:19 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=08:a7:c0:ec:64:c0 reason=2
Nov 22 02:59:19 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Nov 22 02:59:19 thinkpad NetworkManager[862]: <info>  [1669082359.2406] device (wlp3s0): supplicant interface state: completed -> disconnected
Nov 22 02:59:19 thinkpad NetworkManager[862]: <info>  [1669082359.3109] device (wlp3s0): supplicant interface state: disconnected -> scanning
Nov 22 02:59:19 thinkpad gnome-shell[2441]: An active wireless connection, in infrastructure mode, involves no access point?
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: SME: Trying to authenticate with 08:a7:c0:ec:64:c0 (SSID='Charlotte' freq=2437 MHz)
Nov 22 02:59:22 thinkpad kernel: [10028.526254] wlp3s0: authenticate with 08:a7:c0:ec:64:c0
Nov 22 02:59:22 thinkpad kernel: [10028.529170] wlp3s0: send auth to 08:a7:c0:ec:64:c0 (try 1/3)
Nov 22 02:59:22 thinkpad kernel: [10028.531625] wlp3s0: authenticated
Nov 22 02:59:22 thinkpad kernel: [10028.536713] wlp3s0: associate with 08:a7:c0:ec:64:c0 (try 1/3)
Nov 22 02:59:22 thinkpad kernel: [10028.540960] wlp3s0: RX AssocResp from 08:a7:c0:ec:64:c0 (capab=0x1411 status=0 aid=21)
Nov 22 02:59:22 thinkpad kernel: [10028.546880] wlp3s0: associated
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.2697] device (wlp3s0): supplicant interface state: scanning -> authenticating
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: Trying to associate with 08:a7:c0:ec:64:c0 (SSID='Charlotte' freq=2437 MHz)
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.2725] device (wlp3s0): supplicant interface state: authenticating -> associating
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: Associated with 08:a7:c0:ec:64:c0
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.2928] device (wlp3s0): supplicant interface state: associating -> associated
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.2929] device (wlp3s0): ip:dhcp4: restarting
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: WPA: Key negotiation completed with 08:a7:c0:ec:64:c0 [PTK=CCMP GTK=CCMP]
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 08:a7:c0:ec:64:c0 completed [id=0 id_str=]
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.5940] dhcp4 (wlp3s0): canceled DHCP transaction
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.5941] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 02:59:22 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-45 noise=9999 txrate=1000
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.6239] dhcp4 (wlp3s0): state changed no lease
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.6699] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.7565] device (wlp3s0): ip:dhcp6: restarting
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.7976] dhcp6 (wlp3s0): canceled DHCP transaction
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.8204] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.8206] dhcp6 (wlp3s0): state changed no lease
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.8208] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.9311] device (wlp3s0): supplicant interface state: associated -> 4way_handshake
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.9311] device (wlp3s0): supplicant interface state: 4way_handshake -> completed
Nov 22 02:59:22 thinkpad NetworkManager[862]: <info>  [1669082362.9367] dhcp6 (wlp3s0): state changed new lease, address=2a02:908:1d16:10e0:703e:d423:83af:73fb
Nov 22 02:59:23 thinkpad dbus-daemon[861]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-dispatcher.service' requested by ':1.14' (uid=0 pid=
862 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Nov 22 02:59:23 thinkpad systemd[1]: Starting Network Manager Script Dispatcher Service...
Nov 22 02:59:23 thinkpad dbus-daemon[861]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Nov 22 02:59:23 thinkpad systemd[1]: Started Network Manager Script Dispatcher Service.
Nov 22 02:59:32 thinkpad systemd-resolved[839]: Using degraded feature set UDP instead of UDP+EDNS0 for DNS server 192.168.178.39.
Nov 22 02:59:33 thinkpad systemd[1]: NetworkManager-dispatcher.service: Deactivated successfully.
Nov 22 02:59:40 thinkpad systemd-resolved[839]: Using degraded feature set TCP instead of UDP for DNS server 192.168.178.39.
Nov 22 03:00:07 thinkpad avahi-daemon[858]: Withdrawing address record for 192.168.178.169 on wlp3s0.
Nov 22 03:00:08 thinkpad avahi-daemon[858]: Leaving mDNS multicast group on interface wlp3s0.IPv4 with address 192.168.178.169.
Nov 22 03:00:08 thinkpad systemd-resolved[839]: wlp3s0: Bus client set DNS server list to: 2a02:908:1d16:10e0:10:18ff:feec:64bc
Nov 22 03:00:26 thinkpad rtkit-daemon[1081]: Supervising 9 threads of 6 processes of 1 users.
Nov 22 03:01:43 thinkpad rtkit-daemon[1081]: message repeated 3 times: [ Supervising 9 threads of 6 processes of 1 users.]
Nov 22 03:10:02 thinkpad CRON[19903]: (root) CMD (test -e /run/systemd/system || SERVICE_MODE=1 /sbin/e2scrub_all -A -r)
Nov 22 03:17:01 thinkpad CRON[20047]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Nov 22 03:42:53 thinkpad smartd[894]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 112 to 113
Nov 22 03:59:15 thinkpad wpa_supplicant[900]: wlp3s0: WPA: Group rekeying completed with 08:a7:c0:ec:64:c0 [GTK=CCMP]
Nov 22 04:17:01 thinkpad CRON[21137]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Nov 22 04:17:44 thinkpad rtkit-daemon[1081]: Supervising 9 threads of 6 processes of 1 users.
Nov 22 04:17:44 thinkpad rtkit-daemon[1081]: Supervising 9 threads of 6 processes of 1 users.
Nov 22 04:59:15 thinkpad wpa_supplicant[900]: wlp3s0: WPA: Group rekeying completed with 08:a7:c0:ec:64:c0 [GTK=CCMP]
Nov 22 05:12:52 thinkpad smartd[894]: Device: /dev/sda [SAT], SMART Usage Attribute: 194 Temperature_Celsius changed from 113 to 112
Nov 22 05:17:01 thinkpad CRON[22189]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)
Nov 22 05:21:49 thinkpad systemd[1]: Starting Daily apt download activities...
Nov 22 05:23:20 thinkpad systemd[1]: apt-daily.service: Deactivated successfully.
Nov 22 05:23:20 thinkpad systemd[1]: Finished Daily apt download activities.
Nov 22 05:23:20 thinkpad systemd[1]: apt-daily.service: Consumed 1min 26.620s CPU time.
Nov 22 05:59:15 thinkpad wpa_supplicant[900]: wlp3s0: WPA: Group rekeying completed with 08:a7:c0:ec:64:c0 [GTK=CCMP]
Nov 22 05:59:19 thinkpad kernel: [20825.199038] wlp3s0: deauthenticated from 08:a7:c0:ec:64:c0 (Reason: 2=PREV_AUTH_NOT_VALID)
Nov 22 05:59:18 thinkpad wpa_supplicant[900]: message repeated 3 times: [ wlp3s0: WPA: Group rekeying completed with 08:a7:c0:ec:64:c0 [GTK=CCMP]]
Nov 22 05:59:19 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=08:a7:c0:ec:64:c0 reason=2
Nov 22 05:59:19 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-REGDOM-CHANGE init=CORE type=WORLD
Nov 22 05:59:19 thinkpad NetworkManager[862]: <info>  [1669093159.2274] device (wlp3s0): supplicant interface state: completed -> disconnected
Nov 22 05:59:19 thinkpad gnome-shell[2441]: An active wireless connection, in infrastructure mode, involves no access point?
Nov 22 05:59:19 thinkpad NetworkManager[862]: <info>  [1669093159.2633] device (wlp3s0): supplicant interface state: disconnected -> scanning
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: SME: Trying to authenticate with 08:a7:c0:ec:64:c0 (SSID='Charlotte' freq=2437 MHz)
Nov 22 05:59:22 thinkpad kernel: [20828.461714] wlp3s0: authenticate with 08:a7:c0:ec:64:c0
Nov 22 05:59:22 thinkpad kernel: [20828.464275] wlp3s0: send auth to 08:a7:c0:ec:64:c0 (try 1/3)
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.2922] device (wlp3s0): supplicant interface state: scanning -> authenticating
Nov 22 05:59:22 thinkpad kernel: [20828.479046] wlp3s0: authenticated
Nov 22 05:59:22 thinkpad kernel: [20828.482118] wlp3s0: associate with 08:a7:c0:ec:64:c0 (try 1/3)
Nov 22 05:59:22 thinkpad kernel: [20828.499530] wlp3s0: RX AssocResp from 08:a7:c0:ec:64:c0 (capab=0x1411 status=0 aid=24)
Nov 22 05:59:22 thinkpad kernel: [20828.513342] wlp3s0: associated
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3065] device (wlp3s0): supplicant interface state: authenticating -> associating
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: Trying to associate with 08:a7:c0:ec:64:c0 (SSID='Charlotte' freq=2437 MHz)
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3463] device (wlp3s0): supplicant interface state: associating -> associated
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: Associated with 08:a7:c0:ec:64:c0
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3464] device (wlp3s0): ip:dhcp4: restarting
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3684] dhcp4 (wlp3s0): canceled DHCP transaction
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3685] dhcp4 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3687] device (wlp3s0): ip:dhcp6: restarting
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3687] dhcp6 (wlp3s0): canceled DHCP transaction
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: WPA: Key negotiation completed with 08:a7:c0:ec:64:c0 [PTK=CCMP GTK=CCMP]
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3687] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-CONNECTED - Connection to 08:a7:c0:ec:64:c0 completed [id=0 id_str=]
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3687] dhcp6 (wlp3s0): state changed no lease
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3688] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 seconds)
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.3691] device (wlp3s0): supplicant interface state: associated -> 4way_handshake
Nov 22 05:59:22 thinkpad NetworkManager[862]: <info>  [1669093162.4182] device (wlp3s0): supplicant interface state: 4way_handshake -> completed
Nov 22 05:59:22 thinkpad wpa_supplicant[900]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-45 noise=9999 txrate=1000
Nov 22 05:59:23 thinkpad NetworkManager[862]: <info>  [1669093163.5406] dhcp6 (wlp3s0): state changed new lease, address=2a02:908:1d16:10e0:703e:d423:83af:73fb
Im Moment bin ich völlig ratlos wo der Fehler liegen könnte. Und auch das nach einem Neustart der Vodafone-Station das wieder klappt aber die Zeitabstände immer kürzer werden.
Vielleicht liegt es an einem zu vollen Arp-Cache auf der Vodafone-Box?

Ich freue mich auf Ideen und Vorschäge wo ich mit der Fehlersuche beginnen kann.

mat6937
Beiträge: 2927
Registriert: 09.12.2014 10:44:00

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von mat6937 » 26.11.2022 22:26:53

gnude hat geschrieben: ↑ zum Beitrag ↑
26.11.2022 20:25:58
auch wenn es sich jetzt um eine Frage aus dem Ubuntu Umfeld handelt die ich hier stelle hoffe ich doch das mir jemand helfen kann und vielleicht gute Tipps hat wie ich das Problem angehen kann. Ich bin total ratlos und weiss nicht mehr wo ich suchen soll.
Siehe auch: https://forum.ubuntuusers.de/topic/ipv4 ... nd-eigene/

Benutzeravatar
gnude
Beiträge: 1567
Registriert: 14.09.2009 22:05:28
Kontaktdaten:

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von gnude » 27.11.2022 19:51:20

Ja das Thema hab ich im Ubuntuuser Forum besprochen aber bisher ohne Erfolg und deshalb habe ich hier gefragt, vielleicht bekomme ich ja andere Anregungen...

Benutzeravatar
Tintom
Moderator
Beiträge: 3029
Registriert: 14.04.2006 20:55:15
Wohnort: Göttingen

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von Tintom » 27.11.2022 22:02:51

Vielleicht liegt es an einem zu vollen Arp-Cache auf der Vodafone-Box?
Diese Boxen sind grauenhaft. Das Webinterface bietet nur rudimentäre Möglichkeiten, wirklich etwas konfigurieren kann man da nicht. Die bekommen zunächst eine IPv4 zugewiesen und erst später (hier zumindest) kommt die IPv6. Mich wundert, dass du von außen überhaupt per IPv4 darauf zugreifen kannst, denn VF macht CGNAT und daher sollten deine Dienste per dyndns eigentlich gar nicht erst funktionieren. Ab dem Zeitpunkt, wo die Box die IPv6 bekommt, sollten deine Portweiterleitungen im Router auch nicht mehr auftauchen. Ist dem so?

mat6937
Beiträge: 2927
Registriert: 09.12.2014 10:44:00

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von mat6937 » 27.11.2022 22:48:45

Tintom hat geschrieben: ↑ zum Beitrag ↑
27.11.2022 22:02:51
[..., denn VF macht CGNAT ...
Ob VF CGNAT macht weiß ich nicht, aber ich weiß das VF DS, DS-lite und auch nur natives IPv4 macht. ... denn ich habe bei VF einen Festnetz-Internetanschluss mit nur nativem IPv4.

Benutzeravatar
Tintom
Moderator
Beiträge: 3029
Registriert: 14.04.2006 20:55:15
Wohnort: Göttingen

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von Tintom » 27.11.2022 23:21:04

mat6937 hat geschrieben: ↑ zum Beitrag ↑
27.11.2022 22:48:45
Tintom hat geschrieben: ↑ zum Beitrag ↑
27.11.2022 22:02:51
[..., denn VF macht CGNAT ...
Ob VF CGNAT macht weiß ich nicht, aber ich weiß das VF DS, DS-lite und auch nur natives IPv4 macht. ... denn ich habe bei VF einen Festnetz-Internetanschluss mit nur nativem IPv4.
Hast du auch Internet über Kabelanschluss? Oder gewöhnlich über das klassische (Telefon-)Festnetz?

mat6937
Beiträge: 2927
Registriert: 09.12.2014 10:44:00

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von mat6937 » 28.11.2022 00:32:51

Tintom hat geschrieben: ↑ zum Beitrag ↑
27.11.2022 23:21:04
Hast du auch Internet über Kabelanschluss?
Auch beim Internet-Kabelanschluss von VF gibt es DS, DS-lite oder nur natives IPv4.

Benutzeravatar
Tintom
Moderator
Beiträge: 3029
Registriert: 14.04.2006 20:55:15
Wohnort: Göttingen

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von Tintom » 28.11.2022 08:02:06

Das scheint abhängig vom verwendeten Modem zu sein, soweit ich weiß kann man das als Endkunde nicht beeinflussen. Mein altes Kabelmodem konnte auch nur IPv4 only, die jetzt vermarktete VF Station verwendet DS-lite und die DS-Tarife gibt es meines Wissens nach nur für Geschäftskunden.

Benutzeravatar
MSfree
Beiträge: 10686
Registriert: 25.09.2007 19:59:30

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von MSfree » 28.11.2022 08:07:38

mat6937 hat geschrieben: ↑ zum Beitrag ↑
28.11.2022 00:32:51
Auch beim Internet-Kabelanschluss von VF gibt es DS, DS-lite oder nur natives IPv4.
Richtig, das ist von Bundesland zu Bundesland unterschiedlich, je nachdem, welchen Kabel-TV-Betreiber Vodafon übernommen hat. Zusätzlich kommt es auf den Vertrag an, für Privatekunden gelten andere Konditionen als für Geschäftskunden.

Benutzeravatar
gnude
Beiträge: 1567
Registriert: 14.09.2009 22:05:28
Kontaktdaten:

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von gnude » 28.11.2022 10:11:45

Mein Anschluss ist ein Kabelmodem und war auch ein DS-Lite. Der DynDNS Dienst hat zunächst nicht funktioniert. Ich habe dann mit Vodafone telefoniert und es hat einige Zeit gedauert bis ich mein Anliegen erklären konnte. Aber dann wurde mir auch ne IPv4 zugeteilt und die Vodafone Box so geändert das ich auch einen DynDNS Dienst einbinden und Port Weiterleitungen machen kann.
Jetzt hat die Vodafone Station von aussen ne eigene IPv4 Adresse.

mat6937
Beiträge: 2927
Registriert: 09.12.2014 10:44:00

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von mat6937 » 28.11.2022 10:14:50

gnude hat geschrieben: ↑ zum Beitrag ↑
26.11.2022 20:25:58
Nun treten folgende Probleme auf:
Nach einiger Zeit kann ich keine IPv4 Adresse mehr beziehen über den DHCP Server. Dann bekommt das Smartphone nur noch eine IPv6 Adresse. Wenn ich dann im lokalen Netz bin und dort auf dem Notebook "web.threema.ch" aufrufe findet die Seite das Smartphone nicht mehr.
Versuch mal temporär (zum testen über z. B. einen Zeitraum von ca. 8 Wochen), im Ubuntu-Server _und_ in einem Ubuntu-Client das ipv6 zu deaktivieren. Das geht in grub mit dem Bootparameter "ipv6.disable=1". Denn im dnsmasq kannst Du das ipv6 nicht deaktivieren. Oder Du kompilierst den dnsmasq ohne IPv6-Unterstützung (no-IPv6).

Benutzeravatar
Tintom
Moderator
Beiträge: 3029
Registriert: 14.04.2006 20:55:15
Wohnort: Göttingen

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von Tintom » 28.11.2022 11:54:53

Nochmal zum Verständnis:
Es gibt die Vodafone-Box, einen Laptop und auf diesem Laptop eine VM mit Ubuntu-Server. Die VM mit Ubuntu-Server übernimmt für das Netzwerk Aufgaben wie DHCP und DNS und wird mit Virtualbox betrieben. Ist das soweit richtig? Wenn ja, wie hast du das Netzwerk in Virtualbox konfiguriert?

Benutzeravatar
gnude
Beiträge: 1567
Registriert: 14.09.2009 22:05:28
Kontaktdaten:

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von gnude » 04.12.2022 19:49:22

Tintom hat geschrieben: ↑ zum Beitrag ↑
28.11.2022 11:54:53
Nochmal zum Verständnis:
Es gibt die Vodafone-Box, einen Laptop und auf diesem Laptop eine VM mit Ubuntu-Server. Die VM mit Ubuntu-Server übernimmt für das Netzwerk Aufgaben wie DHCP und DNS und wird mit Virtualbox betrieben. Ist das soweit richtig? Wenn ja, wie hast du das Netzwerk in Virtualbox konfiguriert?
Ja genau das ist richtig.
Die virtuelle Maschine hat ebenso wie das Notebook eine feste IP Adresse. Und daher funktionieren sie auch. Die virtuelle Maschine ist im Moment immer von Aussen erreichbar. Auch kann ich stets nen Ping der VM auf die Vodafone Station (IP 192.168.178.1) sowie auf web.de (ist ja IPv4 only) machen.

Benutzeravatar
Tintom
Moderator
Beiträge: 3029
Registriert: 14.04.2006 20:55:15
Wohnort: Göttingen

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von Tintom » 04.12.2022 20:19:28

Wie hast du das Netzwerk bei Virtualbox für die VM definiert? Als default wird iirc dort NAT verwendet, für deinen Anwendungsfall wäre aber bridge das Mittel der Wahl.

Benutzeravatar
gnude
Beiträge: 1567
Registriert: 14.09.2009 22:05:28
Kontaktdaten:

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von gnude » 11.12.2022 13:12:02

Tintom hat geschrieben: ↑ zum Beitrag ↑
04.12.2022 20:19:28
Wie hast du das Netzwerk bei Virtualbox für die VM definiert? Als default wird iirc dort NAT verwendet, für deinen Anwendungsfall wäre aber bridge das Mittel der Wahl.
Es ist Bridge eingestellt

Benutzeravatar
gnude
Beiträge: 1567
Registriert: 14.09.2009 22:05:28
Kontaktdaten:

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von gnude » 11.12.2022 15:28:13

Hallo
jetzt bin ich grade mitten im Datenkopieren (mit dem MC) rausgeflogen.
Der PC hatte ne DHCP Adresse und patsch, alles getrennt. Ich habe dann per
Hand eine IP vergeben und DHCP abgestellt
dann geht es wieder.
Folgender Eintrag in der log:

Code: Alles auswählen

Dec 11 15:22:20 thinkpad kernel: [76585.376054]  exe="/usr/bin/dbus-daemon" sauid=102 hostname=? addr=? terminal=?'
Dec 11 15:22:20 thinkpad kernel: [76585.376062] audit: type=1420 audit(1670768540.213:209): subj_apparmor=unconfined
Dec 11 15:22:30 thinkpad wpa_supplicant[918]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-52 noise=9999 txrate=65000
Dec 11 15:22:57 thinkpad systemd[1]: systemd-hostnamed.service: Deactivated successfully.
Dec 11 15:23:02 thinkpad NetworkManager[876]: <info>  [1670768582.4784] audit: op="connection-update" uuid="5fd82666-402a-4737-90ef-46b21bfa6a
9d" name="Charlotte" args="connection.timestamp,802-11-wireless-security.auth-alg,ipv4.ignore-auto-dns,ipv4.method,ipv4.dns,ipv4.gateway,ipv4.
addresses" pid=52654 uid=1000 result="success"
Dec 11 15:23:07 thinkpad kernel: [76632.186781] wlp3s0: deauthenticating from 08:a7:c0:ec:64:c0 by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 11 15:23:07 thinkpad wpa_supplicant[918]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=08:a7:c0:ec:64:c0 reason=3 locally_generated=1
Dec 11 15:23:07 thinkpad avahi-daemon[872]: Interface wlp3s0.IPv6 no longer relevant for mDNS.
Dec 11 15:23:07 thinkpad avahi-daemon[872]: Leaving mDNS multicast group on interface wlp3s0.IPv6 with address 2a02:908:1d16:10e0:cf8e:e7ef:d4
58:1aa3.
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0398] manager: rfkill: Wi-Fi hardware radio set disabled
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0399] device (wlp3s0): state change: activated -> unavailable (reason 'none'
, sys-iface-state: 'managed')
Dec 11 15:23:07 thinkpad wpa_supplicant[918]: rfkill: WLAN soft blocked
Dec 11 15:23:07 thinkpad avahi-daemon[872]: Withdrawing address record for 2a02:908:1d16:10e0:7281:daaa:db4f:6e67 on wlp3s0.
Dec 11 15:23:07 thinkpad avahi-daemon[872]: Withdrawing address record for 2a02:908:1d16:10e0:dc85:46:ed63:e1ca on wlp3s0.
Dec 11 15:23:07 thinkpad avahi-daemon[872]: Withdrawing address record for 2a02:908:1d16:10e0:cf8e:e7ef:d458:1aa3 on wlp3s0.
Dec 11 15:23:07 thinkpad systemd[1]: Starting Load/Save RF Kill Switch Status...
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0592] dhcp4 (wlp3s0): canceled DHCP transaction
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0595] dhcp6 (wlp3s0): canceled DHCP transaction
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0595] dhcp6 (wlp3s0): activation: beginning transaction (timeout in 45 secon
ds)
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0595] dhcp6 (wlp3s0): state changed no lease
Dec 11 15:23:07 thinkpad wpa_supplicant[918]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0616] manager: NetworkManager state is now DISCONNECTED
Dec 11 15:23:07 thinkpad dbus-daemon[875]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freede
sktop.nm-dispatcher.service' requested by ':1.13' (uid=0 pid=876 comm="/usr/sbin/NetworkManager --no-daemon " label="unconfined")
Dec 11 15:23:07 thinkpad systemd-resolved[845]: wlp3s0: Bus client set default route setting: no
Dec 11 15:23:07 thinkpad systemd-resolved[845]: wlp3s0: Bus client reset DNS server list.
Dec 11 15:23:07 thinkpad gnome-shell[2092]: An active wireless connection, in infrastructure mode, involves no access point?
Dec 11 15:23:07 thinkpad NetworkManager[876]: <info>  [1670768587.0676] audit: op="radio-control" arg="wireless-enabled:off" pid=52654 uid=1000 result="success"
Dec 11 15:23:07 thinkpad wpa_supplicant[918]: wlp3s0: CTRL-EVENT-DSCP-POLICY clear_all

mat6937
Beiträge: 2927
Registriert: 09.12.2014 10:44:00

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von mat6937 » 11.12.2022 17:41:40

gnude hat geschrieben: ↑ zum Beitrag ↑
11.12.2022 15:28:13
jetzt bin ich grade mitten im Datenkopieren (mit dem MC) rausgeflogen.
Der PC hatte ne DHCP Adresse und patsch, alles getrennt.

Code: Alles auswählen

Dec 11 15:22:30 thinkpad wpa_supplicant[918]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-52 noise=9999 txrate=65000

Dec 11 15:22:57 thinkpad systemd[1]: systemd-hostnamed.service: Deactivated successfully.

Dec 11 15:23:02 thinkpad NetworkManager[876]: <info>  [1670768582.4784] audit: op="connection-update" uuid="5fd82666-402a-4737-90ef-46b21bfa6a
9d" name="Charlotte" args="connection.timestamp,802-11-wireless-security.auth-alg,ipv4.ignore-auto-dns,ipv4.method,ipv4.dns,ipv4.gateway,ipv4.
addresses" pid=52654 uid=1000 result="success"
Dec 11 15:23:07 thinkpad kernel: [76632.186781] wlp3s0: deauthenticating from 08:a7:c0:ec:64:c0 by local choice (Reason: 3=DEAUTH_LEAVING)
Dec 11 15:23:07 thinkpad wpa_supplicant[918]: wlp3s0: CTRL-EVENT-DISCONNECTED bssid=08:a7:c0:ec:64:c0 reason=3 locally_generated=1
Wie sind die Ausgaben von:

Code: Alles auswählen

ls -la /etc/machine-info
ls -la /etc/hostname
ls -la /etc/machine-id
hostnamectl status
systemctl status systemd-hostnamed.service
?

Benutzeravatar
Blackbox
Beiträge: 4289
Registriert: 17.09.2008 17:01:20
Lizenz eigener Beiträge: GNU Free Documentation License

Re: dnsmasq auf Vodafone Box macht Probleme

Beitrag von Blackbox » 15.12.2022 07:10:38

Moin,

als Einstieg würde interessieren, was der folgende Befehl:

Code: Alles auswählen

# dnsmasq --test
auf deiner Vodafone Box ausgibt?
Eigenbau PC: Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Desktop PC: Dell Inspiron 530 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Notebook: TUXEDO BU1406 - Debian Sid - Kernel: 6.5.13 - Xfce 4.18 mit sway
Alles Minimalinstallationen und ohne sudo/PA/PW.
Rootserver: Rocky Linux 9.3 - Kernel: 5.14

Freie Software unterstützen, Grundrechte stärken!

Antworten