Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Automatic 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
Corona688
Veteran
Veteran


Joined: 10 Jan 2004
Posts: 1204

PostPosted: Wed Aug 22, 2007 5:16 pm    Post subject: Automatic Network Configuration Reply with quote

I don't mean DHCP, I mean the ability to gracefully pull needed configuration data for network services instead of duplicating it in multiple files. For instance, I would like to be able to tell squid to listen on the LAN device instead of telling it to listen on a specific IP, and tell firehol to redirect incoming HTTP requests for a specific interface, instead of a specific address, so that I can just edit /etc/conf.d/net instead of 9 seperate files.

firehol will be the easiest since its configuration file can execute full-blown BASH statements; I can abuse the ifconfig and sed commands to extract networking data and feed it where needed. I've also resorted to a 'preconf' service that generates configuration files from templates before. Both of these are ugly as sin.

So, my questions are as follows:
  • Is there a better way to get IP addresses, etc. into shell variables than ifconfig interface | sed s/eyeblinding/regex/omgwtfbbq ?
  • Is there a general-purpose way to configure network services for specific interfaces rather than addresses?

_________________
Petition for Better 64-bit ATI Drivers - Sign Here
http://www.petitiononline.com/atipet/petition.html
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