Сетевое администрирование
7
Вклад в тег
/ip firewall filter
add action=add-src-to-address-list address-list="dns flood" address-list-timeout=1h chain=input dst-port=53 in-interface=ether1 protocol=udp
add action=drop chain=input dst-port=53 in-interface=ether1 protocol=udp src-address-list="dns flood"
sudo add-apt-repository ppa:yannubuntu/boot-repair
sudo apt update
sudo apt install -y boot-repair && boot-repair
sudo nano /boot/grub/grub.cfg
...
drivemap -s (hd0) ${root}
chainloader +1
ntldr /bootmgr
}
...
pi@raspberrypi:~ $ sudo hwclock
hwclock: Cannot access the Hardware Clock via any known method.
pi@raspberrypi:~ $ date
Wed 15 Feb 08:00:59 UTC 2017
pi@raspberrypi:~ $ sudo dpkg-reconfigure tzdata
Current default time zone: 'Europe/Moscow'
Local time is now: Wed Feb 15 11:15:58 MSK 2017.
Universal Time is now: Wed Feb 15 08:15:58 UTC 2017.
pi@raspberrypi:~ $ date
Wed 15 Feb 11:16:08 MSK 2017
pi@raspberrypi:~ $ sudo ntpdate -u ntp.ubuntu.com
15 Feb 11:16:39 ntpdate[7529]: adjust time server 91.189.94.4 offset -0.001106 sec
pi@raspberrypi:~ $ date
Wed 15 Feb 11:16:49 MSK 2017
pi@raspberrypi:~ $ sudo /etc/init.d/ntp restart
pi@raspberrypi:~ $ sudo ntpd -gq
/interface wireless info country-info russia4
ranges: 2402-2482/b,g,gn20,gn40(20dBm)
2417-2457/g-turbo(20dBm)
5170-5250/a,an20,an40,ac20,ac40,ac80,ac160,ac80+80(20dBm)/passive
5250-5330/a,an20,an40,ac20,ac40,ac80,ac160,ac80+80(20dBm)/passive
5650-6425/a,an20,an40,ac20,ac40,ac80,ac160,ac80+80(30dBm)/outdoor
5190-5310/a-turbo(20dBm)
5180-5300/a-turbo(20dBm)