Strona 1 z 1

Deinstalacja Pi-Hole i utrata dostepu do Internetu.

: 19 marca 2019, 19:14
autor: Matrixx
Czesc wszystkim.
Zainstalowalem na Debianie Jessie blokera reklam - Pi-Hole, pobawilem sie, nastepnie odinstalowalem, i stracilem kontakt z Internetem. Zmarnowalem kilka godzin szukajac rozwiazania w Googlach, ale nadaremnie.
Aktualnie mam takie konfigi (ustawilem z konsoli):

Kod: Zaznacz cały

hostname
station1.example.com

ifconfig
eth0      Link encap:Ethernet  HWaddr 60:a4:4c:64:a8:bd  
          inet addr:192.168.100.100  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:50 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:23176 (22.6 KiB)  TX bytes:342 (342.0 B)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:8422 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8422 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:736956 (719.6 KiB)  TX bytes:736956 (719.6 KiB)


cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
dns-nameservers 8.8.8.8
dns-nameservers 8.8.4.4



cat /etc/hosts
127.0.0.1	localhost
127.0.1.1	debian
192.168.100.100   station1.example.com

# The following lines are desirable for IPv6 capable hosts
::1     localhost ip6-localhost ip6-loopback
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters



cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 127.0.0.1
search home


systemctl status networking.service
● networking.service - LSB: Raise network interfaces.
   Loaded: loaded (/etc/init.d/networking)
  Drop-In: /run/systemd/generator/networking.service.d
           └─50-insserv.conf-$network.conf
        /lib/systemd/system/networking.service.d
           └─network-pre.conf
   Active: active (running) since Tue 2019-03-19 17:34:43 GMT; 12min ago
  Process: 1886 ExecStop=/etc/init.d/networking stop (code=exited, status=0/SUCCESS)
  Process: 1902 ExecStart=/etc/init.d/networking start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/networking.service
           └─1969 dhclient -v -pf /run/dhclient.eth0.pid -lf /var/lib/dhcp/dh...
Nie moge pingowac do nikad tzn: zwrotnie, do karty, do bramy, na zewnatrz.
Nie mam proxy a firewall wylaczony.

Zalezy mi na naprawie polaczenia sieciowego, ktos pomoze?

Re: Deinstalacja Pi-Hole i utrata dostepu do Internetu.

: 20 marca 2019, 09:47
autor: LordRuthwen

Kod: Zaznacz cały

 ip r s
 iptables -L
 iptables -L -t raw
 iptables -L -t filter
 iptables -L -t mangle

Re: Deinstalacja Pi-Hole i utrata dostepu do Internetu.

: 20 marca 2019, 11:57
autor: Matrixx

Kod: Zaznacz cały

ip r s
default via 192.168.0.1 dev eth0 
192.168.0.0/24 dev eth0  proto kernel  scope link  src 192.168.100.100 

Kod: Zaznacz cały

 iptables -L
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination        

Kod: Zaznacz cały

 iptables -L -t raw
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination     

Kod: Zaznacz cały

 iptables -L -t filter
Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination        

Kod: Zaznacz cały

 iptables -L -t mangle
Chain PREROUTING (policy ACCEPT)
target     prot opt source               destination         

Chain INPUT (policy ACCEPT)
target     prot opt source               destination         

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination         

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination         

Chain POSTROUTING (policy ACCEPT)
target     prot opt source               destination        
Siedzialem dlugo w nocy i czesciowo uruchomilem dostep (wchodzi do Internetu i otwiera strony), nie dzialaja niektore skladowe transferu.
Dla przykladu; nie dzialaja przyciski na aliexpress.com albo albo nie moge doprowadzic netinstal do konca
bo w punkcie wskazania zrodlowego mirroru dla instalowanego oprogramowania pojawia sie komunikat na czerwono: "Bad archive mirror" - i tak dla wszystkich mirrorow z listy.
Inny problem jest kiedy wchodze w systemowe Settings a nastepnie Network to pojawia sie komunikat "The system network services are not compatible with this version"
W mojej opini nie jest to problem blokady dostepu do Sieci przez proxy czy iptables, a bardziej nieskonfigurowany Network Manager gnome oraz brak apletu sieci w gornym pasku.

Kod: Zaznacz cały

dpkg -l |grep network-manager
ii  network-manager                       0.9.10.0-7                                 amd64        network management framework (daemon and userspace tools)
ii  network-manager-dev:amd64             0.9.10.0-7                                 amd64        network management framework (development files)
ii  network-manager-gnome                 0.9.10.0-2                                 amd64        network management framework (GNOME frontend)

Kod: Zaznacz cały

systemctl status network-manager
● NetworkManager.service - Network Manager
   Loaded: loaded (/lib/systemd/system/NetworkManager.service; enabled)
   Active: active (running) since Wed 2019-03-20 11:07:06 GMT; 3min 30s ago
 Main PID: 651 (NetworkManager)
   CGroup: /system.slice/NetworkManager.service
           └─651 /usr/sbin/NetworkManager --no-daemon