Doppelganger
Doppelganger is configured as Mimic with the following exceptions:
- Change the hostname in
/etc/hostname
. - Configure logging in a way appropriate for the host network.
- Adjust
mynetworks
in golem’s/etc/postfix/main.cf
, because Doppelganger might exist on a different network than Mimic. - Adjust
/etc/postfix/saslpasswd
andrelayhost
in golem’s/etc/postfix/main.cf
to use a relay appropriate for Doppelganger’s network. Compile withpostmap
. - Install the wireguard-tools package, configure WireGuard by writing the configuration below to /etc/wireguard/wg0.conf, and run
systemctl enable wg-quick@wg0
.
[Interface]
Address = 192.168.2.4/32
ListenPort = 51820
# Generate with umask 077 && wg genkey | tee privkey | wg pubkey >pubkey
# Deploy public key to server.
PrivateKey = PRIVATEKEY
[Peer]
# Obtain public- and pre-shared-key from server.
PublicKey = PUBLICKEY
PresharedKey = PRESHAREDKEY
AllowedIPs = 192.168.2.0/24, 192.168.1.0/24
EndPoint = IP:51820
PersistentKeepalive = 30