cat /proc/sys/net/ipv4/ip_forward
, если там стоит 0, то измени на 1 # This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
# Let NetworkManager manage all devices on this system
network:
version: 2
renderer: NetworkManager
wifis:
Vasya:
match:
name: wlx*
match:
macaddress: "p4:f2:9a:14:15:dr"
set-name: Pupkin
dhcp4: yes
dhcp6: no
access-points:
Pupkin:
password: "vasyapupkin"
cd /etc/netplan; sudo rm *.yaml
echo -e '# Let NetworkManager manage all devices on this system\nnetwork:\n version: 2\n renderer: NetworkManager'| sudo tee /etc/netplan/01-network-manager-all.yaml > /dev/null; sudo netplan apply; reboot