networking – ubuntu 20.04 add static route without netplan

I want to add static routes, I am aware I can do this with netplan but its creating a new network connection every time I try it. I have a wired connection and it creates another along side it in network manager and activates it which means the active connection is not the one the vpn is using and that means no internet access. You can see why its a problem.

What I am trying to achieve.
connect to my vpn provider whilst also being able to local resources without disconnecting the vpn. My router does not allow me to connect to a local hosted locally by its fqdn and the vpn does not allow it by the ip. So I have an issue, I have to disconnect the vpn whenever I want to transfer files which is a lot during a dev session. and reconnect to view the changes made in a browser, often i forget to (dis)connect which is a problem and takes up time.

So I have added routes via the cli route command but they are removed whenever the network reconnects. How can I add the static routes without using netplan

wireless networking – Wifi network – Bad signal troubleshooting

I am facing huge wifi issues since some months and have tried different solutions that do not seem to work. I’ll give you a little history before giving some data.

My house was before connected to internet through ADSL technology. Being in Belgium, I was on the Proximus network with a BBox2. The speed was rather low compared to some other places that were better deserved. Despite that, all house was deserved with a strong signal even far in the street. Speed was bad, but signal was quite strong. However, some years ago, we finally got the VDSL technology with improved download and upload speeds.

Since some months, however, the signal is getting really bad in all the house. I did a test in all the different rooms to get the signal strength:

  • Office: -49 dBm (just next to the router)
  • Kitchen: -80 dBm (room next to the office)
  • Livingroom: -79 dBm (room also close to the office)
  • Diningroom: -86 dBm (a bit more far but the room is still quite close)
  • Upstair rooms: ranges from -70 to -85 dBm depending on the location.

All tests have been realized on a 2.4 Ghz network (the 5 has not a range that is sufficient for some rooms). I tried manually selecting the best channel using a scan utility on my MacBook Pro. However, there are not much networks around (my Mac finds only 3 including my 2.4 and 5). It was in auto and I tried the best from the scan utility which are the 6 and 11 channels, no change.

When I achieve a speediest from my livingroom, I get these numbers on both wifis:

  • 2.4: -79 dBm; 0.7 Mbps (down); 6 Mbps (up)
  • 5.0: -80 dBm; 29 Mbps (down); 7.8 Mbps (up)
    One could say I could only use the 5 Ghz wifi but I can easily lose the signal in many rooms and it’s quite annoying.

My 2.4 wifi is set on 802.11 gn mode. I can select the g mode but it does not improve the situation. The 5 is on ac mode.

I had a BBox3 router and I changed for a Bbox3x+ router as I thought the router was the problem. But the problem persists.

networking – strace, netstat or tcpdump to identify unknown network activity and program

I’ve been trying to uncover the origin of some network calls, specifically to ip addresss associated with bc.googleusercontent.com

I’m a bit curious why this network activity only happens when using Firefox and from what I’ve read googleusercontent.com is reported as both a service for individuals outside the google ecosphere for private businesses, etc., as well as being used by google itself.

Using tcpdump on my network adapter and filtering with grep for bc.googlecontent.com isolates the activity, but now I need to dig deeper and find out what service/program etc. is activating these calls.

Strace was recommended, however, it needs the PID which I can’t get on a per connection basis or if it happens it’s gone quickly so unable to see it. Is there some way to use strace so that it will do the necessary filtering upfront, thereby eliminating all the other activity or better, another linux program I can use to immediately get the name of the program making these connections.

Thank you.

networking – Router being double-NATed by ISP

I am trying to set up an Apache server at my house which can be accessed through port 80 by my home router. I was able to do this a few months ago, and then I took the website down. When I tried to set up port forwarding again, I noticed I could not access my server from my public IP (69.162.x.x).

Looking into my router’s settings, I found that it had a completely different IP listed as its public IP (100.81.x.x). From my LAN, port forwarding worked through this address (can’t be a private IP (?), my router assigns with 192.168.x.x), but did not work beyond my home network.

Upon some searching on Google, I found that the address my router “thought” it had was perhaps used in double NAT purposes at an ISP level. I recieved no response when trying to contact customer support.

Am I being double NATed by my ISP, or is it some issue I have overlooked?

networking – Failed to start sshd after vpn service

I setup sshd to listen on vpn address and on next restart, ssh failed to start due to the required ip address not available on boot. So i add wg-quick@wg1.service, network.target, network-online.target as sshd dependency but ssh still failed to start at boot. Restart sshd after boot up works just fine. How to make ssh start start at boot and listen to vpn address?

systemctl list-dependencies ssh:

ssh.service
● ├─-.mount
● ├─system.slice
● ├─wg-quick@wg1.service
● ├─network-online.target
● │ └─networking.service
● └─sysinit.target
●   ├─apparmor.service
●   ├─blk-availability.service
●   ├─dev-hugepages.mount
●   ├─dev-mqueue.mount
●   ├─finalrd.service
●   ├─keyboard-setup.service
●   ├─kmod-static-nodes.service
●   ├─lvm2-lvmpolld.socket
●   ├─lvm2-monitor.service
●   ├─open-iscsi.service
●   ├─plymouth-read-write.service
●   ├─plymouth-start.service
●   ├─proc-sys-fs-binfmt_misc.automount
●   ├─resolvconf.service
●   ├─setvtrgb.service
●   ├─sys-fs-fuse-connections.mount
●   ├─sys-kernel-config.mount
●   ├─sys-kernel-debug.mount
●   ├─sys-kernel-tracing.mount
●   ├─systemd-ask-password-console.path
●   ├─systemd-binfmt.service
●   ├─systemd-boot-system-token.service
●   ├─systemd-hwdb-update.service
●   ├─systemd-journal-flush.service
●   ├─systemd-journald.service
●   ├─systemd-machine-id-commit.service
●   ├─systemd-modules-load.service
●   ├─systemd-pstore.service
●   ├─systemd-random-seed.service
●   ├─systemd-sysctl.service
●   ├─systemd-sysusers.service

cat /etc/systemd/system/ssh.service.d/override.conf:

After=wg-quick@wg1.service

networking – Do I have to duplicate implementations on a client server udp application

I think the question is pretty straight forward but just to clarify, if the client and server are separate machines and need to be able to communicate with each other, does that mean that certain aspects such as synchronization, ack packets, re transmitting, timeouts, etc need to duplicated between the client and server?

For example, if i creating a polling program that switches between sending and receiving messages, would I need to have the same service on the client and the server?

I know somethings will be different. For example the way a client handles inputs from the server may be different then how the server processes input from the client.

networking – Ubuntu 20.04 rtl8822ce Wifi stops routing after about 3 seconds

A weird problem I have tried resolving all day and now I need ideas.
A new laptop HP *) with rtl8822ce wifi with correct drivers I believe **). Ubuntu is 20.04 with 16.04->18.04->20.04 history.

When I connect to our home wifi, I can ping about 3 seconds our router or google (10.0.0.1/8.8.8.8) after which all I get is “Destination Host Unreachable” until I disconnect and connect again. Every time I reconnect, 3 seconds of connectivity only.
The home wifi is made with 3 Tenda Novas as a Mesh network.
All other systems can connect this network all the time including 3 Ubuntus, 3 Apples, 3 Androids, one LG TV, a Windows and many more. No problems with internet access at any time.
The rtl8822ce connects to AP with 2,4GHz or 5GHz, behaviour is the same – 3 secs of connectivity only.

Second I test same with my phone’s mobile access point. The rtl8822ce/Ubuntu 20.04 have no problems connecting this AP and staying connected to it.

Same behaviour with fresh Ubuntu 20.04 live usb stick (to overrule the upgrade history). Mesh home wifi 3 secs online, ad hoc phone AP stay connected all along.

I Am completely clueless after spending a day troubleshooting driver issues. I believe the driver is installed okay ***) but something else is now stopping my packets flow to router/internet.

But what?

BR, Timo

*)

    siiri@siiri-hp:~$ inxi -Fx
System:    Host: siiri-hp Kernel: 5.4.0-80-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
           Desktop: Gnome 3.36.9 Distro: Ubuntu 20.04.2 LTS (Focal Fossa) 
Machine:   Type: Laptop System: HP product: HP Laptop 15s-eq1xxx v: N/A 
           serial: <superuser/root required> 
           Mobo: HP model: 8707 v: 37.19 serial: <superuser/root required> UEFI: AMI 
           v: F.41 date: 04/13/2021 
Battery:   ID-1: BAT0 charge: 42.5 Wh condition: 42.5/42.5 Wh (100%) 
           model: Hewlett-Packard Primary status: Full 
CPU:       Topology: 6-Core model: AMD Ryzen 5 4500U with Radeon Graphics bits: 64 
           type: MCP arch: Zen rev: 1 L2 cache: 3072 KiB 
           flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm 
           bogomips: 28446 
           Speed: 1603 MHz min/max: 1400/2375 MHz Core speeds (MHz): 1: 1656 2: 1291 
           3: 1212 4: 1397 5: 1397 6: 1397 
Graphics:  Device-1: AMD Renoir vendor: Hewlett-Packard driver: N/A bus ID: 03:00.0 
           Display: x11 server: X.Org 1.20.9 driver: ati,fbdev 
           unloaded: modesetting,radeon,vesa resolution: 1920x1080~77Hz 
           OpenGL: renderer: llvmpipe (LLVM 11.0.0 256 bits) v: 4.5 Mesa 20.2.6 
           direct render: Yes 
Audio:     Device-1: AMD vendor: Hewlett-Packard driver: snd_hda_intel v: kernel 
           bus ID: 03:00.1 
           Device-2: AMD Raven/Raven2/FireFlight/Renoir Audio Processor 
           vendor: Hewlett-Packard driver: snd_rn_pci_acp3x v: kernel bus ID: 03:00.5 
           Device-3: AMD Family 17h HD Audio vendor: Hewlett-Packard driver: snd_hda_intel 
           v: kernel bus ID: 03:00.6 
           Sound Server: ALSA v: k5.4.0-80-generic 
Network:   Device-1: Realtek RTL8822CE 802.11ac PCIe Wireless Network Adapter 
           vendor: Hewlett-Packard driver: rtw_pci v: N/A port: f000 bus ID: 01:00.0 
           IF: wlo1 state: up mac: 90:0f:0c:3d:09:9f 
Drives:    Local Storage: total: 238.47 GiB used: 106.36 GiB (44.6%) 
           ID-1: /dev/nvme0n1 vendor: SK Hynix model: BC511 HFM256GDJTNI-82A0A 
           size: 238.47 GiB 
Partition: ID-1: / size: 233.17 GiB used: 106.35 GiB (45.6%) fs: ext4 dev: /dev/nvme0n1p2 
           ID-2: swap-1 size: 977.0 MiB used: 0 KiB (0.0%) fs: swap dev: /dev/nvme0n1p3 
Sensors:   System Temperatures: cpu: 53.8 C mobo: N/A 
           Fan Speeds (RPM): N/A 
Info:      Processes: 311 Uptime: 21m Memory: 7.21 GiB used: 1.81 GiB (25.1%) 
           Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
           inxi: 3.0.38 

**)

    siiri@siiri-hp:~$ lsmod | grep rtw
rtwpci                 24576  0
rtw88                 618496  1 rtwpci
mac80211              847872  2 rtwpci,rtw88
cfg80211              704512  2 mac80211,rtw88

***)

siiri@siiri-hp:~$ iwconfig wlo1
wlo1      IEEE 802.11  ESSID:"Karhu"  
          Mode:Managed  Frequency:5.2 GHz  Access Point: 58:D9:D5:E3:B0:5C   
          Bit Rate=526.6 Mb/s   Tx-Power=20 dBm   
          Retry short limit:7   RTS thr:off   Fragment thr:off
          Power Management:on
          Link Quality=69/70  Signal level=-41 dBm  
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:1   Missed beacon:0

networking – How to find all subnets in network

In many cases like this there’s some mysterious guy who makes this some times ago.. Some time ago i configured couple of routers to work like switches or.. just disabled dhcp, changed ip address to something that cant (as i suppose) interfere with our current or feuture subnets. And forgot what it can (the subnet) be completely. Some day i want to login to it, but is there’s some method to find it?

I’m trying to set my computer’s ip to 192.168.0.10/16 + 10.0.0.10/8 then i’m realized that my computer’s ip should be in the same subnet with this router (for now it knows that its /8 or /16 subnet are “local” (accesible just from its network interface but the router dont, am i right?)

I’m thinking about script that in the loop trying different subnets, one by one, and use something like nmap.. Or maybe there’s better solution?

networking – wpa_gui not finding wifi adapter while iwlist does successfully

Using Ubuntu focal lts server edition. I manually installed Xorg.

I have a new install on my Dell XPS 7590. I want a light weight wifi manager so I installed wpa_supplicant and wpa_gui. I can run sudo iwlist wlp58s0 scan with no issues…it will show a list of wifi connection points successfully.

However, when I run sudo wpa_gui the GUI shows no network adapter. Any ideas on how to get wpa_gui running?

The wifi hardware is Wi-Fi 6 AX200 by Intel