On Wednesday 18 October 2006 18:15, Christopher Martin wrote: > If you are using dhclient, you should try: > > man dhclient > man dhclient.conf > > This will depend on what flavour of Linux you're on, different ones might > not use the ISC client. > > Here is a config example which shows how to run a script: > > timeout 60; > retry 60; > reboot 10; > select-timeout 5; > initial-interval 2; > reject 192.33.137.209; > > interface "ep0" { > send host-name "andare.fugue.com"; > send dhcp-client-identifier 1:0:a0:24:ab:fb:9c; > send dhcp-lease-time 3600; > supersede domain-name "fugue.com rc.vix.com home.vix.com"; > prepend domain-name-servers 127.0.0.1; > request subnet-mask, broadcast-address, time-offset, > routers, domain-name, domain-name-servers, host-name; require subnet-mask, > domain-name-servers; > script "/etc/dhclient-script"; > media "media 10baseT/UTP", "media 10base2/BNC"; > } > > alias { > interface "ep0"; > fixed-address 192.5.5.213; > option subnet-mask 255.255.255.255; > } > > Hope that helps! > > > -----Original Message----- > > From: John D. Hardin [mailto:[EMAIL PROTECTED] > > Sent: Thursday, 19 October 2006 9:00 AM > > To: Chris Purves > > Cc: users@spamassassin.apache.org > > Subject: Re: how to set trusted_networks for dynamic ip host > > > > On Wed, 18 Oct 2006, Chris Purves wrote: > > > How do I properly set trusted_networks when my mail server has a > > > dynamic IP address? > > > > Have your /etc/ppp/ip-up.local script (assuming your link is PPP or > > PPPoE) generate a small SA config file in /etc/mail/spamassassin with > > the appropriate trusted networks information and have it restart SA > > (assuming you're using spamc/spamd). It will run whenever your link > > comes up or your IP address changes. > > > > There are similar facilities available for DHCP clients (i.e. a script > > that is run when the link comes up or an IP address is reassigned) - I > > don't remember the details off the top of my head, but "man dhcpcd" > > may help. > > > > -- > > John Hardin KA7OHZ ICQ#15735746 http://www.impsec.org/~jhardin/ > > [EMAIL PROTECTED] FALaholic #11174 pgpk -a [EMAIL PROTECTED] > > key: 0xB8732E79 - 2D8C 34F4 6411 F507 136C AF76 D822 E6E6 B873 2E79 > > -------------------------------------------------------------- > > --------- > > ...the Fates notice those who buy chainsaws... > > -- www.darwinawards.com > > -------------------------------------------------------------- > > --------- > > 13 days until Halloween
Thanks John and Christopher, I think I will play around with a dhcp script when I have a bit more time. -- Take care, Chris