[Gllug] Recommend an ADSL modem?

Nix nix at esperi.org.uk
Fri Jan 30 12:31:37 UTC 2004


On Sun, 25 Jan 2004, dylan at dylan.me.uk stated:
> On Saturday 24 January 2004 20:04 pm, Nix wrote:
>> The Conexant firmware is much more `amusing' than that.
> 
> I was assuming that anyone thinking about these setups would be 
> conversant with the arcane booting procedures.

I had to work it out by ethereal snooping: the manual gives, well, no
info to speak of at all.

>> To get it working, you have to do this:
> 
> There's more than one way to shear a goat! I've found it only manages to 
> assign an IP when iptables is stopped, and restarted after the IP is 
> assigned. I do have a constant stream of:
> 
> Jan 25 18:05:39 192.168.250.251 dhclient: DHCPREQUEST on eth0 to 
> 10.0.0.2 port 67
> Jan 25 18:05:39 192.168.250.251 dhclient: DHCPACK from AAA.BBB.CCC.DDD
> Jan 25 18:05:39 192.168.250.251 dhclient: bound to AAA.BBB.CCC.DDD -- 
> renewal in 25 seconds.
> 
> AAA.BBB.CCC.DDD = my external IP
> 
> at intervals of between 30 seconds and 5 minutes.

If it's as high as 5 minutes, you're screwed :) the router goes gaga
if you don't renew in <1min.

>                                                   Always with a renewal 
> time between 20 and 35 seconds. He ho, I'll get round to filtering them 
> out of the logs at some point if I can't work out how to get rid of 
> them entirely.

These days I'd just use syslog-ng's match filtering to junk them, but
when I started using dhclient I was still stuck on sysklog-1.4.1.
So I hacked this up:

diff -durN 3.0.1rc11-5-orig/client/dhclient.c 3.0.1rc11-5/client/dhclient.c
--- 3.0.1rc11-5-orig/client/dhclient.c	2003-10-02 23:24:01.000000000 +0100
+++ 3.0.1rc11-5/client/dhclient.c	2003-10-06 23:34:25.000000000 +0100
@@ -723,8 +723,6 @@
 		return;
 	}
 
-	log_info ("DHCPACK from %s", piaddr (packet -> client_addr));
-
 	lease = packet_to_lease (packet, client);
 	if (!lease) {
 		log_info ("packet_to_lease failed.");
@@ -877,9 +875,6 @@
 	add_timeout (client -> active -> renewal,
 		     state_bound, client, 0, 0);
 
-	log_info ("bound to %s -- renewal in %ld seconds.",
-	      piaddr (client -> active -> address),
-	      (long)(client -> active -> renewal - cur_time));
 	client -> state = S_BOUND;
 	reinitialize_interfaces ();
 	go_daemon ();
@@ -1672,11 +1667,6 @@
 			client -> packet.secs = htons (65535);
 	}
 
-	log_info ("DHCPREQUEST on %s to %s port %d",
-	      client -> name ? client -> name : client -> interface -> name,
-	      inet_ntoa (destination.sin_addr),
-	      ntohs (destination.sin_port));
-
 	if (destination.sin_addr.s_addr != INADDR_BROADCAST &&
 	    fallback_interface)
 		result = send_packet (fallback_interface,

-- 
`note to the crown prosecution service: Machine guns dont have a
 'stun' setting.' --- mjw
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug




More information about the GLLUG mailing list