Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
dynamically adjust network configuration
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
ayvango
Tux's lil' helper
Tux's lil' helper


Joined: 08 Feb 2012
Posts: 118

PostPosted: Sat Sep 14, 2013 2:22 pm    Post subject: dynamically adjust network configuration Reply with quote

I'm using gentoo on notebook and want it automatically select one of human-writable network profiles depending on network identity (calculated possibly by router MAC-address), apply it and restart needed network services such as sshd.

What is the proffered way for gentoo to do so? I would like use net service for full, because I really like it and hate inventing unjustified entities.
Back to top
View user's profile Send private message
thegeezer
n00b
n00b


Joined: 11 Jul 2010
Posts: 38

PostPosted: Tue Sep 24, 2013 9:50 pm    Post subject: runlevels Reply with quote

could you not use runlevels to manage this ?
then you can have a runlevel "home" that disables ssh and runs your own script to change network
and a runlevel "away" that starts ssh and dhcpcd
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