Skip to content

Instantly share code, notes, and snippets.

View bloeys's full-sized avatar

Omar Mahdi bloeys

View GitHub Profile
@bloeys
bloeys / dump.txt
Created August 21, 2021 06:15
Wireguard vm info
# ip addr show
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 9001 qdisc fq_codel state UP group default qlen 1000
link/ether 0a:44:56:51:52:58 brd ff:ff:ff:ff:ff:ff
inet 10.0.0.179/24 brd 10.0.0.255 scope global dynamic eth0
#!/bin/sh
apt-get install unbound unbound-host
curl -o /var/lib/unbound/root.hints https://www.internic.net/domain/named.cache
rm /etc/unbound/unbound.conf
mv unbound.conf /etc/unbound/
chown -R unbound:unbound /var/lib/unbound
systemctl enable unbound