Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Making a Chroot Jail for Music Streaming Server(Subsonic)
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
dman777
Veteran
Veteran


Joined: 10 Jan 2007
Posts: 1004

PostPosted: Fri May 06, 2011 1:33 am    Post subject: Making a Chroot Jail for Music Streaming Server(Subsonic) Reply with quote

I run a music streaming server called Subsonic so I can stream music from my pc to my android phone. This Subsonic software on the system is Java and runs in Java. I'm new to chroot jail and wanted to make a chroot jail for it. I know I create the directory and then place the necessary software in the directory. At this point it would be placing the Java software and Subsonic software in it the chroot directory.
What else would I need to place it in it?
How would the Java/subsonic software use the necessary /proc and /dev files for network communications?
Would network packets still tranverse through netfilters Iptables that I have sat up on the other root filesystem?
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Sat May 07, 2011 5:57 am    Post subject: Reply with quote

a few pointers:

-make the base of your chroot with a stage3 tarball
-part of setting up the chroot is bind mounting /dev and /proc
-do iptables on your "host" system. As in, do it from outside the chroot
_________________
Lost configuring your system?
dump lspci -n here | see Pappy's guide | Link Stash
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