Jump to content

[Q] How to extend the time DHCP allows clients


deviney
 Share

Recommended Posts

I keep getting connections to the pineapple but after a few minutes they have gone. I checked the log an got the message below:

00:59:10 Pineapple daemon.info hostapd: wlan0: STA cc:55:ad:e7:a1:86 IEEE 802.11: deauthenticated due to inactivity (timer DEAUTH/REMOVE)

So i thought the solution would be simply allow the client to lease the IP address for longer. So i went to the pineapples DHCP config file and seen that the client is allowed the address for 12h (config shown below) so is there a reason for them to be connected due to a timer?

config 'dhcp' 'lan'
option 'interface' 'lan'
option 'start' '100'
option 'limit' '150'
option 'leasetime' '12h'
option 'ignore' '0'
list 'dhcp_option' '3,172.16.42.42'
list 'dhcp_option' '3,172.16.42.1'
list 'dhcp_option' '6,172.16.42.1,8.8.8.8'
list 'dhcp_option' '6,172.16.42.1,208.67.222.222'

Link to comment
Share on other sites

The lease drops because the client is no longer connected. Shouldn't have anything to do with the server's lease time. A shorter time is preferred in a target rich environment. If the lease time is too long you'll have ip addresses being held by clients no longer on the network.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...