Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
running snx within a container [abandoned]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Wed Nov 06, 2019 7:52 pm    Post subject: running snx within a container [abandoned] Reply with quote

Greetings,

I want to try snx for my office vpn so I can ditch widnows.
I wanted to know if it is possible to run it in a 32bit container so I won't need to install 32libs on my desktop?

Thanks.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein


Last edited by DaggyStyle on Sat Nov 09, 2019 6:39 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Thu Nov 07, 2019 2:08 am    Post subject: Reply with quote

If you have IA32 emulation in the kernel, and your chosen container provides all the needed 32-bit libraries (as opposed to assuming it can map in the host's /lib32, for example), then yes, that should work. What type of container are you planning to use? What is snx?
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Fri Nov 08, 2019 6:20 am    Post subject: Reply with quote

Greetings,

snx is https://wiki.gentoo.org/wiki/SSL_Network_Extender
the idea is to not install x32 libs on my system.
my idea was to run it inside a container, assuming the vpn applies to the host too and run the vnc client on the host.
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Nov 09, 2019 1:29 am    Post subject: Reply with quote

You won't get out of having x32 libraries on disk, unless you find a 64-bit build of snx. You could get out of having them spilled out into the general filesystem, and instead keep them wrapped up in the container. Having read that page, I'd not rely on a mere container to confine snx. Confining a root-privileged process in a container is complex, and there have been escapes over the years. A VM would be safer, and probably easier to set up.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5909

PostPosted: Sat Nov 09, 2019 6:38 am    Post subject: Reply with quote

Hu wrote:
You won't get out of having x32 libraries on disk, unless you find a 64-bit build of snx. You could get out of having them spilled out into the general filesystem, and instead keep them wrapped up in the container. Having read that page, I'd not rely on a mere container to confine snx. Confining a root-privileged process in a container is complex, and there have been escapes over the years. A VM would be safer, and probably easier to set up.

I know, I thought of limiting the libs to the container alone.
the main idea is to ditch the windows vm. going linux vm is kinda pointless.
I'll install the 32bit libs and thats it. was worth trying.

Thanks
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
Back to top
View user's profile Send private message
ruyrybeyro
n00b
n00b


Joined: 29 Oct 2022
Posts: 3

PostPosted: Sat Oct 29, 2022 3:47 pm    Post subject: Reply with quote

DaggyStyle wrote:
Greetings,

snx is https://wiki.gentoo.org/wiki/SSL_Network_Extender
the idea is to not install x32 libs on my system.
my idea was to run it inside a container, assuming the vpn applies to the host too and run the vnc client on the host.


A container as docker not that feasible, as you want IP, routing and DNS addresses. I managed installing it inside a Debian chroot having as an host most of the Linux distributions out there, including Gentoo

https://github.com/ruyrybeyro/chrootvpn/
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum