Please follow the below template, it will help us to help you!
laptop has an ip assigned by dhcp router ddwrt
pihole can not see the laptop ip in admin console
dns set to cloudflare (checked also with others)
in the laptop does not work ping any host do not even ping pihole
everything works only via wifi
Debug Token:
m0qbbdj7wt
RamSet
September 19, 2018, 4:31pm
2
When you connect your laptop via LAN, you plug it in the ddwrt router ?
What is the assigned IP when you are connected via LAN (on your laptop) ?
yes, the laptop is connected to the ddwrt router
(network card is working because lan connection works on another modem)
the laptop gets 192.168.1.109
from laptop:
source /etc/network/interfaces.d/*
The loopback network interface
auto lo
iface lo inet loopback
and ifconfig:
enp0s25: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.109 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::2ee8:af23:499:1ebb prefixlen 64 scopeid 0x20
ether 00:1f:29:85:97:d8 txqueuelen 1000 (Ethernet)
RX packets 133 bytes 111263 (108.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 223 bytes 27624 (26.9 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22 memory 0xe4600000-e4620000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
loop txqueuelen 1 (Local Loopback)
RX packets 4400 bytes 272668 (266.2 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 4400 bytes 272668 (266.2 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
wlan0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 0a:36:c4:95:d8:cd txqueuelen 1000 (Ethernet)
RX packets 10845629 bytes 14911261354 (13.8 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7095411 bytes 887007783 (845.9 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
RamSet
September 19, 2018, 4:54pm
4
What's the output of nmcli -t -f IP4.DNS device show enp0s25
?
enp0s25: połączono to Połączenie ethernetowe 1
"Intel 82562GT 10/100"
ethernet (e1000e), 00:1F:29:85:97:D8, sprzęt, MTU 1500
domyślne IPv4
inet4 192.168.1.109/24
route4 169.254.0.0/16
inet6 fe80::2ee8:af23:499:1ebb/64
wlan0: rozłączono
"Broadcom Limited BCM4311 802.11b/g WLAN (BCM4311 802.11b/g )"
1 połączenie jest dostępne
wifi (b43), 5E:39:BA:BE:A1:84, łączenie automatyczne, sprzęt
lo: niezarządzane
loopback (unknown), 00:00:00:00:00:00, oprogramowanie, MTU 65536
DNS configuration:
servers: 192.168.1.252 (((((((((pihole)))))
domains: vectranet.pl
interface: enp0s25
RamSet
September 19, 2018, 5:06pm
6
Under the DNS Listening interface, what option do you have connected?
Try using this one and try again on the Laptop once this is enabled:
I had the first option turned on
the change to the last does not change anything
I noticed that I could do ping 1.1.1.1 but I can not do ping pihole 192.168.1.252
( ufw disabled )
RamSet
September 19, 2018, 5:17pm
8
I have a feeling that this is related to your DDWRT router and the way it handles packets via LAN.
See if this works for you:
Open router web interface, switch to panel "Administration" and "Commands" page (something like http://192.168.1.1/Diagnostics.asp ).
Enter commands:
Code:
swconfig dev eth1 set enable_vlan 1
swconfig dev eth1 set apply
Press button "Run commands" and if everything is fine press button "Save Startup" to make it permanent.
1 Like
swconfig list
swconfig dev [port |vlan ] (help|set |get |load |show)
Failed to connect to the switch. Use the "list" command to see which switches are available.
swconfig list - Found: switch0 - eth0
RamSet
September 19, 2018, 5:22pm
11
Use eth0
in the above commands.
You can use official documentation from here:
https://wiki.openwrt.org/doc/techref/swconfig
1 Like
it works ! I restarted the router and pihole sees the laptop, blocks the ads via lan
thank you
1 Like
system
Closed
October 10, 2018, 5:27pm
14
This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.