Manage Ubiquiti Dream Machine Site To Site VPN Tunnels via SSH

  1. Login to the UDM via SSH
    Default username: root
    ssh root@[UDM-IP]

  2. Change directory to ipsec.d/tunnels
    cd /run/strongswan/ipsec.d/tunnels

  3. List directories and edit the .config file
    ls
    cat [ID].ipsec.s2s.config (To view the config)
    nano [ID].ipsec.s2s.config to edit the file in Nano
    vim [ID].ipsec.s2s.config to edit the file in vim

For troubleshooting created VPNs, refer to View UDM VPN Logs