Manage Ubiquiti Dream Machine Site To Site VPN Tunnels via SSH
-
Login to the UDM via SSH
Default username: root
ssh root@[UDM-IP]
-
Change directory to ipsec.d/tunnels
cd /run/strongswan/ipsec.d/tunnels
-
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