Posted: Sun Dec 14, 2014 1:05 Post subject: Fix for TCP disconnects triggered by short DHCP WAN leases
I have "DD-WRT v24-sp2 (03/25/13) std - build 21061" running on "TPLINK TL-WDR4300 v1 " on DMZ behind an Uverse modem.
Uverse DMZ hands out DHCP leases for 10min. This causes my TCP sessions behind dd-wrt to get disconnected. I eventually traced it to /tmp/udhcpc helper flusing the conntrack tables upon receiving new lease.
True fix for this problem would involve not deconfiguring and flushing conntrack tables until a new DHCP lease with a DIFFERENT IP is received. Until then, conntrack should be untouched.
To work around this, I created a replacement /tmp/udhcpc. Upon receiving a lease with new IP address, it restarts the udhcpc deamon and disables itself until after the real helper runs. All activity is logged to /tmp/udhcpc.debug.
Posted: Sun Dec 14, 2014 11:05 Post subject: Re: Fix for TCP disconnects triggered by short DHCP WAN leas
saahbs wrote:
I have "DD-WRT v24-sp2 (03/25/13) std - build 21061" running on "TPLINK TL-WDR4300 v1 " on DMZ behind an Uverse modem.
Uverse DMZ hands out DHCP leases for 10min. This causes my TCP sessions behind dd-wrt to get disconnected. I eventually traced it to /tmp/udhcpc helper flusing the conntrack tables upon receiving new lease.
True fix for this problem would involve not deconfiguring and flushing conntrack tables until a new DHCP lease with a DIFFERENT IP is received. Until then, conntrack should be untouched.
To work around this, I created a replacement /tmp/udhcpc. Upon receiving a lease with new IP address, it restarts the udhcpc deamon and disables itself until after the real helper runs. All activity is logged to /tmp/udhcpc.debug.