jamesmcm / vopono

Run applications through VPN tunnels with temporary network namespaces
GNU General Public License v3.0
888 stars 46 forks source link

Issue using vopono with non-steam games in steam because of sudo requirement #257

Open ParetoOptimalDev opened 8 months ago

ParetoOptimalDev commented 8 months ago

Related to #189.

For instance:

Target: vopono launch options: exec stremio

Results in:

/bin/sh\0-c\0/home/pod/.local/share/Steam/ubuntu12_32/reaper SteamLaunch AppId=2597603739 -- /home/pod/.local/share/Steam/ubuntu12_32/steam-launch-wrapper -- vopono exec stremio\0
chdir "./"
 2024-03-17T07:53:46.557Z INFO  vopono_core::util > Calling sudo for elevated privileges, current user will be used as default user
sudo: The "no new privileges" flag is set, which prevents sudo from running as root.
sudo: If sudo is running in a container, you may need to adjust the container configuration to disable the flag.
Uploaded AppInterfaceStats to Steam
jamesmcm commented 8 months ago

Does it work if you use the firejail approach here - https://github.com/jamesmcm/vopono/blob/master/USERGUIDE.md#creating-only-network-namespace ? - i.e. using vopono first separately to generate only the network namespace.

Also since it seems to be running in a container anyway, you might be able to specify the container to use the created network namespace directly, but I'm not familiar with the Steam launch wrapper details.