Strona 1 z 1

Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 06 lip 2020, 19:10
autor: nprbar
Witam. Mam problem aby polaczyc sie z siecia domową zarówno przez kabel jak i WIFI. Jak utworze sobie hotspota z tego internetu (uzywajac drugiego laptopa) to siec wykrywa i dziala ok (analogicznie hotspot z sieci komorkowej). Na Ubuntu live przez USB internet na tym kompie jest. Czy ktoś z Was mial moze podobny przypadek? Dodam że problem pojawił się nagle. W poprzednim tygodniu wszystko działało bez zarzutu. Pozdrawiam

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 07 lip 2020, 19:15
autor: kobrawerde
Może aktualizacja kernala "namieszała" ?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 07 lip 2020, 21:01
autor: nprbar
Zaktualizowałem Ubuntu do 20.04 + software routera. Na innych urządzeniach śmiga. Jak sprawdzić czy to aktualizacja kernela? Thx za odpowiedź

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 07 lip 2020, 21:40
autor: kobrawerde
To sprawdź jaki kernel ma dany LiveCD / usb a jaki teraz masz w systemie.

Kod: Zaznacz cały

uname -a
A najlepiej podaj więcej danych twojego PC

Kod: Zaznacz cały

inxi -Fxz

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 21:21
autor: nprbar
Ubuntu live mial wersje 5.3, ja mialem 5.4 - poprzez ukuu cofnalem sie do tego kernela. Problem niestety dalej wystepuje (nawet na najnowszym dostepnie kernelu 5.7)

Kod: Zaznacz cały

System:    Kernel: 5.7.1-050701-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 Desktop: Gnome 3.36.3 
           Distro: Ubuntu 20.04 LTS (Focal Fossa) 
Machine:   Type: Laptop System: LENOVO product: 81SY v: Legion Y540-15IRH-PG0 serial: <filter> 
           Mobo: LENOVO model: LNVNB161216 v: NO DPK serial: <filter> UEFI: LENOVO v: BHCN35WW date: 11/23/2019 
Battery:   ID-1: BAT0 charge: 18.8 Wh condition: 49.4/52.5 Wh (94%) model: SMP L17M3PG1 status: Discharging 
CPU:       Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP arch: Kaby Lake rev: A L2 cache: 12.0 MiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 62399 
           Speed: 800 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 800 2: 800 3: 800 4: 800 5: 800 6: 800 7: 800 8: 800 
           9: 801 10: 800 11: 800 12: 800 
Graphics:  Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel bus ID: 00:02.0 
           Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo driver: nvidia v: 440.100 bus ID: 01:00.0 
           Display: x11 server: X.Org 1.20.8 driver: modesetting,nvidia unloaded: fbdev,nouveau,vesa 
           resolution: 1920x1080~60Hz 
           OpenGL: renderer: GeForce GTX 1650/PCIe/SSE2 v: 4.6.0 NVIDIA 440.100 direct render: Yes 
Audio:     Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
           Device-2: NVIDIA vendor: Lenovo driver: snd_hda_intel v: kernel bus ID: 01:00.1 
           Sound Server: ALSA v: k5.7.1-050701-generic 
Network:   Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi v: kernel port: 5000 bus ID: 00:14.3 
           IF: wlp0s20f3 state: up mac: <filter> 
           Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet vendor: Lenovo driver: r8169 v: kernel port: 3000 
           bus ID: 07:00.0 
           IF: enp7s0 state: down mac: <filter> 
           IF-ID-1: br-14d6cafdc574 state: down mac: <filter> 
           IF-ID-2: br-4e6d0e16aa1a state: down mac: <filter> 
           IF-ID-3: br-5439c0575358 state: down mac: <filter> 
           IF-ID-4: br-6005761a18bd state: down mac: <filter> 
           IF-ID-5: br-6b1e1fde3571 state: down mac: <filter> 
           IF-ID-6: br-6e693bea097f state: down mac: <filter> 
           IF-ID-7: br-6f0221b11f02 state: down mac: <filter> 
           IF-ID-8: br-6ff52b743f56 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-9: br-b74e87a57154 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-10: br-b799ead91d05 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-11: br-b837f8f8d376 state: up speed: 10000 Mbps duplex: unknown mac: <filter> 
           IF-ID-12: br-d6a9d6473418 state: down mac: <filter> 
           IF-ID-13: br-d6c9e87d0155 state: down mac: <filter> 
           IF-ID-14: docker0 state: down mac: <filter> 
           IF-ID-15: veth1043261 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-16: veth9592d89 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-17: vethbb15582 state: up speed: 10000 Mbps duplex: full mac: <filter> 
           IF-ID-18: vethfc16246 state: up speed: 10000 Mbps duplex: full mac: <filter> 
Drives:    Local Storage: total: 238.47 GiB used: 184.56 GiB (77.4%) 
           ID-1: /dev/nvme0n1 vendor: Micron model: MTFDHBA256TCK size: 238.47 GiB 
Partition: ID-1: / size: 231.54 GiB used: 184.13 GiB (79.5%) fs: ext4 dev: /dev/dm-1 
           ID-2: /boot size: 704.5 MiB used: 435.8 MiB (61.9%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-3: swap-1 size: 976.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/dm-2 
Sensors:   System Temperatures: cpu: 49.0 C mobo: N/A gpu: nvidia temp: 47 C 
           Fan Speeds (RPM): N/A 
Info:      Processes: 448 Uptime: 8m Memory: 31.24 GiB used: 2.65 GiB (8.5%) Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 
           Shell: zsh v: 5.8 inxi: 3.0.38 



Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 21:43
autor: nprbar
widze ze cos grzebalem w etc/sysctl.conf dzien przed jak internet przestal dzialac... (ustawialem maksymalne obserwowanie zmian na plikach we visual studio code) byc moze cos w tym pliku zepsulem..

mam takie pliki:

sysctl.conf sysctl.conf.dpkg-old sysctl.d/ systctl.conf systemd/

czy ktorys jest nadmiarowy?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 21:58
autor: kobrawerde
A firewall masz wyłączony ?

Kod: Zaznacz cały

sudo ufw status

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 22:06
autor: nprbar
sudo ufw status -> inactive

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 22:09
autor: kobrawerde
a możesz pingować jakiś adres np:

Kod: Zaznacz cały

ping 8.8.8.8
ping  www.google.com

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 22:15
autor: nprbar
Znalazlem pewne rozwiaznie ustawienie w resolv.conf nameserver 8.8.8.8 -> na chwile internet mam ale bardzo duzo pakietów trace ze 100 tylko 10 odebranych - nie da sie na tym pracować.

Edit: tak moge pingowac 8.8.8.8 - ale duzo pakietow trace

czy moge usunac sysctl.conf.dpkg-old oraz systctl.conf (chyba sam to utworzylem - literówka 't') , czy to moze byc problmem ?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 22:19
autor: kobrawerde
Może posprawdzać podstawowe dane
https://www.pcworld.com/article/2455972 ... linux.html
https://www.golinuxcloud.com/commands-c ... net-shell/
https://linuxconfig.org/how-to-test-int ... n-on-linux
Ps. u mnie na Mint 19.2 / Ubuntu 18.04 są tylko takie wpisy

Kod: Zaznacz cały

./usr/share/doc/procps/examples/sysctl.conf
./etc/ufw/sysctl.conf
./etc/sysctl.conf

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 22:24
autor: nprbar
w jaki sposob sprawdzic te wpsiy?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 08 lip 2020, 22:32
autor: kobrawerde
tylko sprawdzałem ile takich wpisów mam w systemie sysctl.conf

Kod: Zaznacz cały

find -name sysctl.conf*
wynik:

Kod: Zaznacz cały

./usr/share/doc/procps/examples/sysctl.conf
./usr/share/man/man5/sysctl.conf.5.gz
./etc/ufw/sysctl.conf
./etc/sysctl.conf
takiego nie mam wcale : systctl.conf + sysctl.conf.dpkg-old
A może sprawdzić i utworzyć innego usera i konto i zalogować się na w/w ....czy internet będzie OK ?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 09 lip 2020, 07:16
autor: nprbar
w sysctl.conf mam takie cos:

Kod: Zaznacz cały

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#

###################################################################
# Magic system request Key
# 0=disable, 1=enable all, >1 bitmask of sysrq functions
# See https://www.kernel.org/doc/html/latest/admin-guide/sysrq.html
# for what other values do
#kernel.sysrq=438


Moglbys podesłać swoje?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 09 lip 2020, 08:45
autor: kobrawerde
mój jest taki:

Kod: Zaznacz cały

#
# /etc/sysctl.conf - Configuration file for setting system variables
# See /etc/sysctl.d/ for additional system variables.
# See sysctl.conf (5) for information.
#

#kernel.domainname = example.com

# Uncomment the following to stop low-level messages on console
#kernel.printk = 3 4 1 3

##############################################################3
# Functions previously found in netbase
#

# Uncomment the next two lines to enable Spoof protection (reverse-path filter)
# Turn on Source Address Verification in all interfaces to
# prevent some spoofing attacks
#net.ipv4.conf.default.rp_filter=1
#net.ipv4.conf.all.rp_filter=1

# Uncomment the next line to enable TCP/IP SYN cookies
# See http://lwn.net/Articles/277146/
# Note: This may impact IPv6 TCP sessions too
#net.ipv4.tcp_syncookies=1

# Uncomment the next line to enable packet forwarding for IPv4
#net.ipv4.ip_forward=1

# Uncomment the next line to enable packet forwarding for IPv6
#  Enabling this option disables Stateless Address Autoconfiguration
#  based on Router Advertisements for this host
#net.ipv6.conf.all.forwarding=1


###################################################################
# Additional settings - these settings can improve the network
# security of the host and prevent against some network attacks
# including spoofing attacks and man in the middle attacks through
# redirection. Some network environments, however, require that these
# settings are disabled so review and enable them as needed.
#
# Do not accept ICMP redirects (prevent MITM attacks)
#net.ipv4.conf.all.accept_redirects = 0
#net.ipv6.conf.all.accept_redirects = 0
# _or_
# Accept ICMP redirects only for gateways listed in our default
# gateway list (enabled by default)
# net.ipv4.conf.all.secure_redirects = 1
#
# Do not send ICMP redirects (we are not a router)
#net.ipv4.conf.all.send_redirects = 0
#
# Do not accept IP source route packets (we are not a router)
#net.ipv4.conf.all.accept_source_route = 0
#net.ipv6.conf.all.accept_source_route = 0
#
# Log Martian Packets
#net.ipv4.conf.all.log_martians = 1
#

###################################################################
# Magic system request Key
# 0=disable, 1=enable all
# Debian kernels have this set to 0 (disable the key)
# See https://www.kernel.org/doc/Documentation/sysrq.txt
# for what other values do
#kernel.sysrq=1

###################################################################
# Protected links
#
# Protects against creating or following links under certain conditions
# Debian kernels have both set to 1 (restricted) 
# See https://www.kernel.org/doc/Documentation/sysctl/fs.txt
#fs.protected_hardlinks=0
#fs.protected_symlinks=0

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 12 lip 2020, 17:59
autor: nprbar
Nic nie pomogło. Chyba została mi tylko reinstalacja :/

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 12 lip 2020, 18:44
autor: kobrawerde
A może sprawdzić i utworzyć innego usera i konto i zalogować się na w/w ....czy internet będzie OK ?

Re: Ubuntu 18.04 brak dostępu do konkretnej sieci poprzez kabel i wifi

: 23 lip 2020, 03:34
autor: enedil
To może zacznijmy od podstaw, co wypisują
ip addr
ip link
?