Categorieën
Linux

netplan config example

network:
ethernets:
eth0:
dhcp4: no
addresses: [103.167.143.203/29]
routes:
– to: 0.0.0.0/0
via: 103.167.143.201
nameservers:
addresses: [192.168.1.1]
optional: true
version: 2
wifis:
wlan0:
optional: true
access-points:

“XXX”:
password: “XXXXX”
dhcp4: no
addresses: [192.168.1.38/24]

Categorieën
Linux

Wireguard configuration example

Server

[Interface]
Address = 10.0.0.1/32
ListenPort = 123
PrivateKey = XXXX

[Peer]
PublicKey = XXX
AllowedIPs = 10.0.0.2/32

Client

[Interface]

Address = 10.0.0.2/32
PrivateKey = XXX

[Peer]

PublicKey = XXXXX
Endpoint = 103.167.143.203:123
AllowedIPs = 10.0.0.1/32
PersistentKeepalive = 21

Commands

wg-quick up wg0

Categorieën
MacSpoof

Ubuntu add mac spoof at boot

make file /etc/udev/rules.d/75-mac-spoof.rules

Store text:

ACTION=="add", SUBSYSTEM=="net", ATTR{address}=="dc:a6:32:a1:23:e4", RUN+="/usr/bin/ip link set dev %k address dc:a6:32:a1:23:e9"

Reboot