Skip to main content
44 votes

Create wireless access point and share internet connection with nmcli

You can create a hotspot with the following: nmcli dev wifi hotspot ifname wlp4s0 ssid test password "test1234" (where wlp4s0 is the name of your Wifi interface). Reference: https://wiki....
ysdx's user avatar
  • 1,873
39 votes
Accepted

ping displays "Name or service not known"

Although I've never had problem with my other x86_64 PC all running Arch Linux, this frequently happens till date with Arch Linux ARM when running NetworkManager. The problem is like you are connected ...
15 Volts's user avatar
  • 2,089
11 votes

Create wireless access point and share internet connection with nmcli

On a Centos 7 it looks like this. Check if AP is possible at all: iw list | less and search for "AP" among supported interface modes. Browse your devices to find the name: nmcli d And setup and ...
Arkadiusz Dzik's user avatar
11 votes

No DNS resolution after upgrade from ubuntu 14.04 to 16.04

I solve the problem by using Amrish instructions at Ask Ubuntu Stack Exchange, i.e. by using the following code: sudo rm /etc/resolv.conf sudo ln -s ../run/resolvconf/resolv.conf /etc/resolv.conf ...
user3430764's user avatar
10 votes

Hotspot and Internet access together — why not?

it is very possible to use hotspot and browse the internet with the same wifi card at the same time (simultaneously).i have been using it for sometime now.ideapad 100s 141br with card intel dualband ...
ptetteh227's user avatar
8 votes
Accepted

How to run a script every 5 seconds only when connected to internet

Add Restart=always to the service unit, so systemd will keep bringing up the service if it crashes. On a side note you should use OnUnitInactiveSec instead of OnUnitActiveSec. OnUnitInactiveSec=10s ...
Bruno9779's user avatar
  • 1,384
7 votes

Create wireless access point and share internet connection with nmcli

I know this is an old question, but thought I would add my comments as this may help someone in the future. The whole process is just three commands as @Dzik has correctly mentioned. nmcli ...
NIK's user avatar
  • 529
7 votes

Arch Linux on Virtualbox Internet Connection Issue on VirtualBox

I just ran into the same problem. Solution turned out simple: systemctl start dhcpcd.service Everything (ping, pacman, etc.) started working after that. BTW: # systemctl enable dhcpcd@enp3s0....
Burrito's user avatar
  • 523
7 votes

No DNS resolution after upgrade from ubuntu 14.04 to 16.04

I had a similar issue and used the solution from here. Below is the method and another link to where they found the info - DNS behavior during OpenVPN connection improved immediately when I followed ...
FineJ's user avatar
  • 71
7 votes

Ubuntu - block internet access to all applications except chosen few

gufw and other default-shipped firewalls aren't designed to filter by application - gufw is an uncomplicated GUI frontend to ufw, and isn't designed to filter on the application level, it's simply an ...
Thomas Ward's user avatar
  • 2,718
7 votes

ping displays "Name or service not known"

I've just had problem with same effects. Check if time is set properly. DNSSEC seems to be enabled by default and blocking requests due to "expired" certificates. Some other problems related to this ...
jaku255's user avatar
  • 71
6 votes

Configure wireless interface for multiple locations

To address multiple wifi configs/ssids, you would better work at the wpa_supplicant level. Just leave your interface as: auto ra0 iface ra0 inet dhcp Install wpa_supplicant with: apt get install ...
Rui F Ribeiro's user avatar
5 votes
Accepted

Can't change the default gateway with static IP

Your broadcast address should be 192.168.1.255, not 192.168.1.1.
Johan Myréen's user avatar
5 votes

Why am I getting "Curl (6) Could not resolve host" after I did a "yum -y update"?

Try running the command dhclient. I tried it and it worked for me.
hehe's user avatar
  • 61
5 votes

How to run a script every 5 seconds only when connected to internet

Make sure to set the accuracy to seconds, like this: AccuracySec=1s As per the docs: AccuracySec= Specify the accuracy the timer shall elapse with. Defaults to 1s. Source: https://www.freedesktop....
Edwin's user avatar
  • 51
5 votes
Accepted

Devuan... Reduce time to wait while internet interfaces being configured during boot

Maybe the udev equivalent (eudev or mdev according to Devuan) isn't behaving 100% the same with regard to hotplug events. It's also possible if you're using a switch that the switch has a very long ...
A.B's user avatar
  • 36.8k
5 votes

ping displays "Name or service not known"

I had this issue on Raspberry Pi 4 running Arch Linux. The symptoms were that there was no DNS, producing the ping error message. I observed by calling date that the time was severely off, about two ...
Matthias Braun's user avatar
4 votes

Serve Internet to remote machine via SSH session?

You can use -R flag with SOCKS4/5 behavior, this is built-in and it does not require a long command as proposed by @smammy: [hasinet]$ ssh -R 1080 noinet You can use the proxy like e.g. [noinet]$ ...
AkiRoss's user avatar
  • 623
4 votes

No longer able to reach the Internet on Kali Linux

I faced similar problems, with the same configuration, Virtualbox with Kali Linux (2016.2). The Internet connection was working fine for a month and after it stopped.. By me dhclient showed that "...
user208741's user avatar
4 votes

Create wireless access point and share internet connection with nmcli

Just nmcli dev wifi hotspot will generate a password and start a hotspot with SSID Hotspot-<YOUR_HOSTNAME> on the default wifi interface. To show the Wi-Fi name and password (and a QR code): ...
exquo's user avatar
  • 106
4 votes
Accepted

How to check whether a binary potentially accesses internet without running it?

Programs can access the Internet in a variety of ways, e.g. using libraries such as libcurl. You can detect those using ldd and check which symbols are being used in the binary using objdump again, ...
Stephen Kitt's user avatar
4 votes
Accepted

Configure wireless interface for multiple locations

In order to configure /etc/network/interfaces to work with multiple locations, you have to understand the difference between logical and physical interfaces. Physical interfaces correspond to the ...
Federico's user avatar
  • 219
4 votes

Wifi not working in debian 8.9 having RTL8723de driver ([10ec:d723])

Unofficial Linux driver here: https://github.com/smlinux/rtl8723de Please note that, I am not the author or contributor to the above driver. I came to know about this project run by user "smlinux" ...
Confguy2016's user avatar
4 votes

Why can I ping IP addresses from 127.0.0.1 to 127.255.255.254?

The 127.0.0.0/8 hosts are "loopback" addresses, which enable you to contact the local host through a network socket (but this will not require any network interface card, as this bit of the Ethernet ...
VinWz's user avatar
  • 41
4 votes
Accepted

How to create an Internet-independent Debian installation ISO file

The first DVD of any non-network-install set will allow you to install Debian without accessing the Internet. If you don’t want a desktop environment, make sure none is selected in the package ...
Stephen Kitt's user avatar
4 votes

How do you route traffic from only one user through wireguard?

You can do that by using iptable's module owner to detect those packets using iptable's target MARK to set the packet mark to any not yet used value create an additional routing table which sends all ...
Hauke Laging's user avatar
  • 90.4k
4 votes

Sharing Internet connexion through Ethernet cable

On your laptop, these commands are needed to route traffic between interfaces and setup NAT: sudo sysctl net.ipv4.ip_forward=1 sudo iptables -t nat -A POSTROUTING -o [your wireless adapter] -j ...
Krackout's user avatar
  • 2,682
4 votes

Ubuntu 20.04.1 LTS Server doesn't connect to WiFi using `netplan`

Needed to install wpa_supplicant, which is not included in Ubuntu Server 20.04.1 by default: sudo apt install -y wpasupplicant After installation and reboot, it works.
Araneus0390's user avatar
3 votes

Program cannot resolve host name if it's started before first successful internet connection

You may use the script hooks that pppd provides, to call your script after ip is up. For instance (from pppd manpage) /etc/ppp/ip-up A program or script which is executed when the link is available ...
gerhard d.'s user avatar
  • 2,198
3 votes

Ubuntu ethernet connection works for few seconds then drops (with Win 7 dual boot)

Try setting your Wired MTU to something really high (like >8192) - I know there was a bug for some Atheros cards (especially AR8161). This is a temporary solution though, and doesn't fix the issue, ...
RafazZ's user avatar
  • 131

Only top scored, non community-wiki answers of a minimum length are eligible