Doppelganger

Doppelganger is configured as Mimic with the following exceptions:

  1. Change the hostname in /etc/hostname.
  2. Configure logging in a way appropriate for the host network.
  3. Adjust mynetworks in golem’s /etc/postfix/main.cf, because Doppelganger might exist on a different network than Mimic.
  4. Adjust /etc/postfix/saslpasswd and relayhost in golem’s /etc/postfix/main.cf to use a relay appropriate for Doppelganger’s network. Compile with postmap.
  5. 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