BerkeleyAutomation / FogROS2

An Adaptive and Extensible Platform for Cloud and Fog Robotics Using ROS 2
https://berkeleyautomation.github.io/FogROS2
Apache License 2.0
181 stars 29 forks source link

potential fix: vpn setup order when wg0 does not exist #22

Closed KeplerC closed 2 years ago

KeplerC commented 2 years ago

I repeated the steps that @vmayoral mentioned. I had the same problem whenever I start fogros container the first time.

Then my theory is that if the VPN's wg0 interface exists, but /etc/wireguard/wg0 file does not exist(because the container is new), then the interface is not deleted and restarted. Then the setup does not succeed.