Page 1 of 1
Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 5:10 am
by ~FLOW~
Greetings my excellent friends,
I'm trying to create a quick Hotspot on my laptop and it's driving me insane.
In KDE you cand create it via gui Networks with the designeted button "Hotspot".
The problem is that I don't have internet in that hotspot. I cand connect to it, ping 1.1.1.1 or 8.8.8.8 and even 142.250.72.197 , but no links do not work. So I presume the problem is the DNS ?
BTW I booted up with Linux Mint and it works flawlessly.
Another thing is that I don't understand how hotspots work, who is the DHCP server ? I'm trying to create a temporarily and quick hotspot with a separate netwok. No permanent settings needed.
I tried soooo many methods, even with 3 AI clients but I get the sam results. Even got scripts with 300 lines ... with options menu, backing up, restoring files ..
The thing is that a newbie when it comes to iptables or ip forwarding so I'm afraid I'll mess up my os.
So I want to start from scretch with you :)
What do you suggest ?
Thank you
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 5:55 am
by Eadwine Rose
With all requests, as per forum rules (which, if you haven't, please read), please share your full Quick System Info, do not edit.
If need be, you can do this using the LiveUSB, thanks.
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 6:15 am
by ~FLOW~
sry, my bad
Code: Select all
Snapshot created on: 20241027_0900
System:
Kernel: 6.12.6-amd64 [6.12.6-1~mx23ahs] arch: x86_64 bits: 64 compiler: N/A
parameters: BOOT_IMAGE=/vmlinuz-6.12.6-amd64 root=UUID=<filter> ro quiet
init=/lib/systemd/systemd
Desktop: KDE Plasma v: 5.27.5 wm: kwin_x11 vt: 7 dm: SDDM Distro: MX-23.4_KDE_x64 Libretto
September 15 2024 base: Debian GNU/Linux 12 (bookworm)
Machine:
Type: Portable System: Dell product: Inspiron 3542 v: N/A serial: <superuser required> Chassis:
type: 8 serial: <superuser required>
Mobo: Dell model: 0926J6 v: A16 serial: <superuser required> UEFI: Dell v: A16 date: 09/02/2020
Battery:
ID-1: BAT0 charge: 20.0 Wh (100.0%) condition: 20.0/41.4 Wh (48.1%) volts: 16.5 min: 14.8
model: SANYO DELL 4WY7C45 type: Li-ion serial: <filter> status: full
Device-1: hidpp_battery_0 model: Logitech K520 serial: <filter> charge: 70% (should be ignored)
rechargeable: yes status: discharging
Device-2: hidpp_battery_1 model: Logitech G603 Wireless Gaming Mouse serial: <filter>
charge: 50% (should be ignored) rechargeable: yes status: N/A
Device-3: hidpp_battery_2 model: Logitech Wireless Mouse serial: <filter>
charge: 55% (should be ignored) rechargeable: yes status: discharging
CPU:
Info: model: Intel Core i5-4210U bits: 64 type: MT MCP arch: Haswell gen: core 4 level: v3
note: check built: 2013-15 process: Intel 22nm family: 6 model-id: 0x45 (69) stepping: 1
microcode: 0x26
Topology: cpus: 1x cores: 2 tpc: 2 threads: 4 smt: enabled cache: L1: 128 KiB
desc: d-2x32 KiB; i-2x32 KiB L2: 512 KiB desc: 2x256 KiB L3: 3 MiB desc: 1x3 MiB
Speed (MHz): avg: 798 min/max: 800/2700 scaling: driver: intel_cpufreq governor: schedutil
cores: 1: 798 2: 798 3: 798 4: 798 bogomips: 13567
Flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx
Vulnerabilities:
Type: gather_data_sampling status: Not affected
Type: itlb_multihit status: KVM: VMX disabled
Type: l1tf mitigation: PTE Inversion
Type: mds mitigation: Clear CPU buffers; SMT vulnerable
Type: meltdown mitigation: PTI
Type: mmio_stale_data status: Unknown: No mitigations
Type: reg_file_data_sampling status: Not affected
Type: retbleed status: Not affected
Type: spec_rstack_overflow status: Not affected
Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
Type: spectre_v2 mitigation: Retpolines; IBPB: conditional; IBRS_FW; STIBP: conditional; RSB
filling; PBRSB-eIBRS: Not affected; BHI: Not affected
Type: srbds mitigation: Microcode
Type: tsx_async_abort status: Not affected
Graphics:
Device-1: Intel Haswell-ULT Integrated Graphics vendor: Dell driver: i915 v: kernel arch: Gen-7.5
process: Intel 22nm built: 2013 ports: active: HDMI-A-1 off: eDP-1 empty: none bus-ID: 00:02.0
chip-ID: 8086:0a16 class-ID: 0300
Device-2: NVIDIA GF117M [GeForce 610M/710M/810M/820M / GT 620M/625M/630M/720M] vendor: Dell
driver: N/A alternate: nouveau non-free: series: 390.xx+ status: legacy-active (EOL~late 2022)
arch: Fermi code: GF1xx process: 40/28nm built: 2010-16 pcie: gen: 1 speed: 2.5 GT/s lanes: 4
link-max: lanes: 16 bus-ID: 08:00.0 chip-ID: 10de:1140 class-ID: 0302
Device-3: Suyin Integrated_Webcam_HD type: USB driver: uvcvideo bus-ID: 1-1.5:5
chip-ID: 064e:9205 class-ID: 0e02 serial: <filter>
Display: x11 server: X.Org v: 1.21.1.7 with: Xwayland v: 22.1.9 compositor: kwin_x11 driver: X:
loaded: modesetting unloaded: fbdev,vesa dri: crocus gpu: i915 display-ID: :0 screens: 1
Screen-1: 0 s-res: 1280x720 s-dpi: 96 s-size: 337x190mm (13.27x7.48") s-diag: 387mm (15.23")
Monitor-1: HDMI-A-1 mapped: HDMI-1 pos: primary model: Samsung serial: <filter> built: 2010
res: 1280x720 hz: 60 dpi: 203 gamma: 1.2 size: 160x90mm (6.3x3.54") diag: 1021mm (40.2")
ratio: 16:9 modes: max: 1920x1080 min: 720x400
Monitor-2: eDP-1 note: disabled model: LG Display 0x0456 built: 2014 res: 1280x720 dpi: 101
gamma: 1.2 size: 344x194mm (13.54x7.64") diag: 395mm (15.5") ratio: 16:9 modes: 1366x768
API: OpenGL v: 4.6 Mesa 24.2.2-1~mx23ahs renderer: Mesa Intel HD Graphics 4400 (HSW GT2)
direct-render: Yes
Audio:
Device-1: Intel Haswell-ULT HD Audio vendor: Dell driver: snd_hda_intel v: kernel bus-ID: 00:03.0
chip-ID: 8086:0a0c class-ID: 0403
Device-2: Intel 8 Series HD Audio vendor: Dell 8 driver: snd_hda_intel v: kernel
bus-ID: 00:1b.0 chip-ID: 8086:9c20 class-ID: 0403
API: ALSA v: k6.12.6-amd64 status: kernel-api tools: alsamixer,amixer
Server-1: PipeWire v: 1.0.0 status: active with: 1: pipewire-pulse status: active
2: wireplumber status: active 3: pipewire-alsa type: plugin 4: pw-jack type: plugin
tools: pactl,pw-cat,pw-cli,wpctl
Network:
Device-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter vendor: Dell driver: ath9k
v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 06:00.0 chip-ID: 168c:0036
class-ID: 0280
IF: wlan0 state: down mac: <filter>
Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 v: kernel pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 07:00.0 chip-ID: 10ec:8136 class-ID: 0200
IF: eth0 state: down mac: <filter>
Device-3: TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek RTL8153] type: USB
driver: r8152 bus-ID: 3-1.4:4 chip-ID: 2357:0601 class-ID: 0000 serial: <filter>
IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter>
Bluetooth:
Device-1: Qualcomm Atheros AR9462 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 1-1.6:8
chip-ID: 0cf3:0036 class-ID: e001
Report: hciconfig ID: hci0 rfk-id: 2 state: down bt-service: N/A rfk-block: hardware: no
software: no address: <filter>
Info: acl-mtu: 1022:8 sco-mtu: 183:5 link-policy: rswitch hold sniff
link-mode: peripheral accept
Drives:
Local Storage: total: 2.49 TiB used: 1.65 TiB (66.3%)
SMART Message: Unable to run smartctl. Root privileges required.
ID-1: /dev/sda maj-min: 8:0 vendor: Western Digital model: WD10JPVX-75JC3T0 size: 931.51 GiB
block-size: physical: 4096 B logical: 512 B speed: 6.0 Gb/s type: HDD rpm: 5400 serial: <filter>
rev: 1A01 scheme: GPT
ID-2: /dev/sdb maj-min: 8:16 vendor: Kingston model: SHSS37A240G size: 223.57 GiB block-size:
physical: 512 B logical: 512 B speed: 6.0 Gb/s type: SSD serial: <filter> rev: 001B scheme: GPT
ID-3: /dev/sdc maj-min: 8:32 type: USB vendor: Seagate model: Expansion size: 1.36 TiB
block-size: physical: 4096 B logical: 512 B type: N/A serial: <filter> rev: 0502 scheme: GPT
Partition:
ID-1: / raw-size: 222.3 GiB size: 217.75 GiB (97.95%) used: 69.28 GiB (31.8%) fs: ext4
dev: /dev/dm-0 maj-min: 253:0 mapped: luks-<filter>
ID-2: /boot raw-size: 1024 MiB size: 973.4 MiB (95.06%) used: 419.6 MiB (43.1%) fs: ext4
dev: /dev/sdb2 maj-min: 8:18
ID-3: /boot/efi raw-size: 256 MiB size: 252 MiB (98.46%) used: 274 KiB (0.1%) fs: vfat
dev: /dev/sdb1 maj-min: 8:17
Swap:
Kernel: swappiness: 15 (default 60) cache-pressure: 100 (default)
ID-1: swap-1 type: file size: 3 GiB used: 768 KiB (0.0%) priority: -2 file: /swap/swap
Sensors:
System Temperatures: cpu: 49.0 C mobo: 49.0 C
Fan Speeds (RPM): cpu: 0
Repos:
Packages: 2895 pm: dpkg pkgs: 2882 libs: 1650 tools: apt,apt-get,aptitude,nala pm: rpm pkgs: 0
pm: appimage pkgs: 0 pm: flatpak pkgs: 13
No active apt repos in: /etc/apt/sources.list
Active apt repos in: /etc/apt/sources.list.d/brave-browser-release.list
1: deb [signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg arch=amd64] https://brave-browser-apt-release.s3.brave.com/ stable main
Active apt repos in: /etc/apt/sources.list.d/debian-stable-updates.list
1: deb http://deb.debian.org/debian bookworm-updates main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/debian.list
1: deb http://deb.debian.org/debian bookworm main contrib non-free non-free-firmware
2: deb http://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
3: deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware
Active apt repos in: /etc/apt/sources.list.d/dropbox.list
1: deb [arch=i386,amd64 signed-by=/etc/apt/keyrings/dropbox.asc] http://linux.dropbox.com/debian bookworm main
Active apt repos in: /etc/apt/sources.list.d/mx.list
1: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ bookworm main non-free
2: deb http://mirror.easyname.at/mxlinux-packages/mx/repo/ bookworm ahs
Active apt repos in: /etc/apt/sources.list.d/nala-sources.list
1: deb https://mirrors.nav.ro/debian/ bookworm main
2: deb https://mirrors.nxthost.com/debian/ bookworm main
Active apt repos in: /etc/apt/sources.list.d/winehq-bookworm.sources
1: deb [arch=amd64 i386] https://dl.winehq.org/wine-builds/debian bookworm main
Info:
Processes: 242 Uptime: 1h 30m wakeups: 27 Memory: 7.67 GiB used: 3.15 GiB (41.0%) Init: systemd
v: 252 target: graphical (5) default: graphical tool: systemctl Compilers: gcc: 12.2.0 alt: 12
Client: shell wrapper v: 5.2.15-release inxi: 3.3.26
Boot Mode: UEFI
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 8:36 am
by j2mcgreg
@~FLOW~
Code: Select all
Device-1: Qualcomm Atheros QCA9565 / AR9565 Wireless Network Adapter vendor: Dell driver: ath9k
v: kernel modules: wl pcie: gen: 1 speed: 2.5 GT/s lanes: 1 bus-ID: 06:00.0 chip-ID: 168c:0036
class-ID: 0280
IF: wlan0 state: down mac: <filter>
Device-2: Realtek RTL810xE PCI Express Fast Ethernet vendor: Dell driver: r8169 v: kernel pcie:
gen: 1 speed: 2.5 GT/s lanes: 1 port: e000 bus-ID: 07:00.0 chip-ID: 10ec:8136 class-ID: 0200
IF: eth0 state: down mac: <filter>
Device-3: TP-Link UE300 10/100/1000 LAN (ethernet mode) [Realtek RTL8153] type: USB
driver: r8152 bus-ID: 3-1.4:4 chip-ID: 2357:0601 class-ID: 0000 serial: <filter>
IF: eth1 state: up speed: 1000 Mbps duplex: full mac: <filter>
You are using an Ethernet to USB adaptor rather than either of the onboard devices, why? Are they non-functional? In order to create a hot spot, you are going to need a working WiFi card.
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 8:44 am
by ~FLOW~
yes, the onboard card is only 100 Mb, the adaptor is gigabit.
With the same setup in LM woks fine - no config needed - so it must be something from this os
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 8:57 am
by j2mcgreg
~FLOW~ wrote: ↑Sat Jan 04, 2025 8:44 am
yes, the onboard card is only 100 Mb, the adaptor is gigabit.
With the same setup in LM woks fine - no config needed - so it must be something from this os
In that case, I'd suspect a conflict between eth0 and your USB card. Access your bios and see if it's possible to disable the onboard card.
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 9:19 am
by ~FLOW~
j2mcgreg wrote: ↑Sat Jan 04, 2025 8:57 am
~FLOW~ wrote: ↑Sat Jan 04, 2025 8:44 am
yes, the onboard card is only 100 Mb, the adaptor is gigabit.
With the same setup in LM woks fine - no config needed - so it must be something from this os
In that case, I'd suspect a conflict between eth0 and your USB card. Access your bios and see if it's possible to disable the onboard card.
I disable it, but it's the same, "no internet" just ping to IPs
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 9:21 am
by dreamer
Regardless of desktop environment I always use this:
https://github.com/lakinduakash/linux-wifi-hotspot
It's easy to install and easy to configure. Maybe firewall can be a problem, but I don't think so. It's just as easy as creating a hotspot in Windows. It says you can also share Wifi to Wifi using the same adapter, something that most desktop environments can't do.
You write you had good luck with Linux Mint. My experience with the built-in hotspot functionality in Cinnamon hasn't been great.
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 9:45 am
by ~FLOW~
already tried that, let me show you ...
Screenshot_20250104_163957.png
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 12:35 pm
by j2mcgreg
Have you confirmed that your WiFi card is actually working with MX?
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 12:37 pm
by ~FLOW~
yes, I can connect to my router, phone's hotspot, printer direct wifi.
Re: Trying to create a Hostpo - no DNS working
Posted: Sat Jan 04, 2025 12:41 pm
by ~FLOW~
and with the scripts I alway ran into dnsmasq problems
for ex the last log from one of the scripts :
Code: Select all
Creating temporary dnsmasq configuration...
Modified file: /tmp/dnsmasq.hotspot.conf, Backup: Temporary file (no backup needed)
Port 53 is in use. Stopping conflicting services...
Starting dnsmasq with temporary configuration...
dnsmasq: failed to create listening socket for 127.0.0.1: Address already in use
Failed to start dnsmasq.
Stopping hotspot...
Re: Trying to create a Hostpo - no DNS working
Posted: Mon Jan 06, 2025 12:19 am
by dreamer
You could try the following troubleshooting steps, one at a time:
1. Try setting up your hotspot in a fresh user account
2. Install a second desktop environment and see if that helps
Re: Trying to create a Hostpo - no DNS working [Solved]
Posted: Mon Jan 06, 2025 2:21 am
by ~FLOW~
I tried to boot from MX iso and it works ... so I will reinstall the OS