Community discussions

MikroTik App
 
gmelnikov
just joined
Topic Author
Posts: 1
Joined: Fri Jul 13, 2018 1:18 pm
Location: Tyumen, Russia

Change requests to reduce log size (dhcp-server, ovpn-client and pppoe-client)

Mon Jul 16, 2018 1:39 pm

1. Fix request for the dhcp-server:
Do not do deassign in the case when the "DHCP Discover" packet comes from the client who still is in the lease list and agrees to the current address.

When Android-smartphones lose the Wi-Fi signal and reconnect, they send the DHCP Discover packet. Mikrotik does an unnecessary deassign and assign for them and writes useless info to the log.
Jun/29/2018 08:58:36 dhcp,info guest deassigned 192.168.202.200 from 80:AD:16:12:34:56
Jun/29/2018 08:58:36 dhcp,info guest assigned 192.168.202.200 to 80:AD:16:12:34:56
Jun/29/2018 08:59:29 dhcp,info guest deassigned 192.168.202.200 from 80:AD:16:12:34:56
Jun/29/2018 08:59:29 dhcp,info guest assigned 192.168.202.200 to 80:AD:16:12:34:56
Jun/29/2018 08:59:51 dhcp,info guest deassigned 192.168.202.200 from 80:AD:16:12:34:56
Jun/29/2018 08:59:51 dhcp,info guest assigned 192.168.202.200 to 80:AD:16:12:34:56
Jun/29/2018 09:34:17 dhcp,info guest deassigned 192.168.202.200 from 80:AD:16:12:34:56
Jun/29/2018 09:34:17 dhcp,info guest assigned 192.168.202.200 to 80:AD:16:12:34:56
Jun/29/2018 09:36:04 dhcp,info guest deassigned 192.168.202.200 from 80:AD:16:12:34:56
Jun/29/2018 09:36:04 dhcp,info guest assigned 192.168.202.200 to 80:AD:16:12:34:56
Jun/29/2018 09:36:30 dhcp,info guest deassigned 192.168.202.200 from 80:AD:16:12:34:56
Jun/29/2018 09:36:30 dhcp,info guest assigned 192.168.202.200 to 80:AD:16:12:34:56
On debug topic:
Jul/16/2018 14:29:26 dhcp,debug,packet guest received discover with id 2267823705 from 0.0.0.0
Jul/16/2018 14:29:26 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:29:26 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:29:26 dhcp,debug,packet     Msg-Type = discover
Jul/16/2018 14:29:26 dhcp,debug,packet     Client-Id = 01-30-75-12-12-34-56
Jul/16/2018 14:29:26 dhcp,debug,packet     Max-DHCP-Message-Size = 1500
Jul/16/2018 14:29:26 dhcp,debug,packet     Class-Id = "android-dhcp-6.0.1"
Jul/16/2018 14:29:26 dhcp,debug,packet     Host-Name = "android-xxxxxxxxxxxxxxx"
Jul/16/2018 14:29:26 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Interface-MTU,Broadcast-Address,Address-Time,Renewal-Time,Rebinding-Time
Jul/16/2018 14:29:26 dhcp,debug,packet guest sending offer with id 2267823705 to 192.168.202.135
Jul/16/2018 14:29:26 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:29:26 dhcp,debug,packet     yiaddr = 192.168.202.135
Jul/16/2018 14:29:26 dhcp,debug,packet     siaddr = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:29:26 dhcp,debug,packet     Msg-Type = offer
Jul/16/2018 14:29:26 dhcp,debug,packet     Server-Id = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     Address-Time = 259200
Jul/16/2018 14:29:26 dhcp,debug,packet     Subnet-Mask = 255.255.255.0
Jul/16/2018 14:29:26 dhcp,debug,packet     Router = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     Domain-Server = 77.88.8.3,77.88.8.7
Jul/16/2018 14:29:26 dhcp,debug,packet guest received request with id 2267823705 from 0.0.0.0
Jul/16/2018 14:29:26 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:29:26 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:29:26 dhcp,debug,packet     Msg-Type = request
Jul/16/2018 14:29:26 dhcp,debug,packet     Client-Id = 01-30-75-12-12-34-56
Jul/16/2018 14:29:26 dhcp,debug,packet     Address-Request = 192.168.202.135
Jul/16/2018 14:29:26 dhcp,debug,packet     Server-Id = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     Max-DHCP-Message-Size = 1500
Jul/16/2018 14:29:26 dhcp,debug,packet     Class-Id = "android-dhcp-6.0.1"
Jul/16/2018 14:29:26 dhcp,debug,packet     Host-Name = "android-xxxxxxxxxxxxxxx"
Jul/16/2018 14:29:26 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Interface-MTU,Broadcast-Address,Address-Time,Renewal-Time,Rebinding-Time
Jul/16/2018 14:29:26 dhcp,debug,packet guest sending ack with id 2267823705 to 192.168.202.135
Jul/16/2018 14:29:26 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:29:26 dhcp,debug,packet     yiaddr = 192.168.202.135
Jul/16/2018 14:29:26 dhcp,debug,packet     siaddr = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:29:26 dhcp,debug,packet     Msg-Type = ack
Jul/16/2018 14:29:26 dhcp,debug,packet     Server-Id = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     Address-Time = 259200
Jul/16/2018 14:29:26 dhcp,debug,packet     Subnet-Mask = 255.255.255.0
Jul/16/2018 14:29:26 dhcp,debug,packet     Router = 192.168.202.1
Jul/16/2018 14:29:26 dhcp,debug,packet     Domain-Server = 77.88.8.3,77.88.8.7
Jul/16/2018 14:30:28 dhcp,debug,packet guest received discover with id 1002142849 from 0.0.0.0
Jul/16/2018 14:30:28 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:30:28 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:30:28 dhcp,debug,packet     Msg-Type = discover
Jul/16/2018 14:30:28 dhcp,debug,packet     Client-Id = 01-30-75-12-12-34-56
Jul/16/2018 14:30:28 dhcp,debug,packet     Max-DHCP-Message-Size = 1500
Jul/16/2018 14:30:28 dhcp,debug,packet     Class-Id = "android-dhcp-6.0.1"
Jul/16/2018 14:30:28 dhcp,debug,packet     Host-Name = "android-xxxxxxxxxxxxxxx"
Jul/16/2018 14:30:28 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Interface-MTU,Broadcast-Address,Address-Time,Renewal-Time,Rebinding-Time
Jul/16/2018 14:30:28 dhcp,debug,packet guest sending offer with id 1002142849 to 192.168.202.135
Jul/16/2018 14:30:28 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:30:28 dhcp,debug,packet     yiaddr = 192.168.202.135
Jul/16/2018 14:30:28 dhcp,debug,packet     siaddr = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:30:28 dhcp,debug,packet     Msg-Type = offer
Jul/16/2018 14:30:28 dhcp,debug,packet     Server-Id = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     Address-Time = 259200
Jul/16/2018 14:30:28 dhcp,debug,packet     Subnet-Mask = 255.255.255.0
Jul/16/2018 14:30:28 dhcp,debug,packet     Router = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     Domain-Server = 77.88.8.3,77.88.8.7
Jul/16/2018 14:30:28 dhcp,debug,packet guest received request with id 1002142849 from 0.0.0.0
Jul/16/2018 14:30:28 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:30:28 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:30:28 dhcp,debug,packet     Msg-Type = request
Jul/16/2018 14:30:28 dhcp,debug,packet     Client-Id = 01-30-75-12-12-34-56
Jul/16/2018 14:30:28 dhcp,debug,packet     Address-Request = 192.168.202.135
Jul/16/2018 14:30:28 dhcp,debug,packet     Server-Id = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     Max-DHCP-Message-Size = 1500
Jul/16/2018 14:30:28 dhcp,debug,packet     Class-Id = "android-dhcp-6.0.1"
Jul/16/2018 14:30:28 dhcp,debug,packet     Host-Name = "android-xxxxxxxxxxxxxxx"
Jul/16/2018 14:30:28 dhcp,debug,packet     Parameter-List = Subnet-Mask,Router,Domain-Server,Domain-Name,Interface-MTU,Broadcast-Address,Address-Time,Renewal-Time,Rebinding-Time
Jul/16/2018 14:30:28 dhcp,debug,packet guest sending ack with id 1002142849 to 192.168.202.135
Jul/16/2018 14:30:28 dhcp,debug,packet     ciaddr = 0.0.0.0
Jul/16/2018 14:30:28 dhcp,debug,packet     yiaddr = 192.168.202.135
Jul/16/2018 14:30:28 dhcp,debug,packet     siaddr = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     chaddr = 30:75:12:12:34:56
Jul/16/2018 14:30:28 dhcp,debug,packet     Msg-Type = ack
Jul/16/2018 14:30:28 dhcp,debug,packet     Server-Id = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     Address-Time = 259200
Jul/16/2018 14:30:28 dhcp,debug,packet     Subnet-Mask = 255.255.255.0
Jul/16/2018 14:30:28 dhcp,debug,packet     Router = 192.168.202.1
Jul/16/2018 14:30:28 dhcp,debug,packet     Domain-Server = 77.88.8.3,77.88.8.7


2. Feature request for the ovpn-client and pppoe-client (and maybe other ppp-clients):
Add an ability to specify the interval between automatic attempts to reconnection to the server.

Reconnect performs too often without the ability to change frequency of it.
ovpn-client:
Jun/14/2018 07:59:18 ovpn,info ovpn-out: initializing...
Jun/14/2018 07:59:18 ovpn,info ovpn-out: connecting...
Jun/14/2018 07:59:18 ovpn,info ovpn-out: terminating... - could not connect
Jun/14/2018 07:59:18 ovpn,info ovpn-out: disconnected
Jun/14/2018 07:59:28 ovpn,info ovpn-out: initializing...
Jun/14/2018 07:59:28 ovpn,info ovpn-out: connecting...
Jun/14/2018 07:59:30 ovpn,info ovpn-out: terminating... - could not connect
Jun/14/2018 07:59:30 ovpn,info ovpn-out: disconnected
Jun/14/2018 07:59:40 ovpn,info ovpn-out: initializing...
Jun/14/2018 07:59:40 ovpn,info ovpn-out: connecting...
Jun/14/2018 07:59:40 ovpn,info ovpn-out: terminating... - could not connect
Jun/14/2018 07:59:40 ovpn,info ovpn-out: disconnected
Jun/14/2018 07:59:50 ovpn,info ovpn-out: initializing...
Jun/14/2018 07:59:50 ovpn,info ovpn-out: connecting...
Jun/14/2018 07:59:50 ovpn,info ovpn-out: terminating... - could not connect
Jun/14/2018 07:59:50 ovpn,info ovpn-out: disconnected
Jun/14/2018 08:00:00 ovpn,info ovpn-out: initializing...
Jun/14/2018 08:00:00 ovpn,info ovpn-out: connecting...
Jun/14/2018 08:00:00 ovpn,info ovpn-out: terminating... - could not connect
Jun/14/2018 08:00:00 ovpn,info ovpn-out: disconnected
pppoe-client:
Jan/01/2002 06:14:52 pppoe,ppp,info ISP1: terminating... - disconnected
Jan/01/2002 06:14:52 pppoe,ppp,info ISP1: disconnected
Jan/01/2002 06:14:52 pppoe,ppp,info ISP1: initializing...
Jan/01/2002 06:14:52 pppoe,ppp,info ISP1: connecting...
Jan/01/2002 06:15:02 pppoe,ppp,info ISP1: terminating... - disconnected
Jan/01/2002 06:15:02 pppoe,ppp,info ISP1: disconnected
Jan/01/2002 06:15:03 pppoe,ppp,info ISP1: initializing...
Jan/01/2002 06:15:03 pppoe,ppp,info ISP1: connecting...
Jan/01/2002 06:15:13 pppoe,ppp,info ISP1: terminating... - disconnected
Jan/01/2002 06:15:13 pppoe,ppp,info ISP1: disconnected
Jan/01/2002 06:15:13 pppoe,ppp,info ISP1: initializing...
Jan/01/2002 06:15:13 pppoe,ppp,info ISP1: connecting...
Jan/01/2002 06:15:23 pppoe,ppp,info ISP1: terminating... - disconnected
Jan/01/2002 06:15:23 pppoe,ppp,info ISP1: disconnected
Jan/01/2002 06:15:25 pppoe,ppp,info ISP1: initializing...
Jan/01/2002 06:15:25 pppoe,ppp,info ISP1: connecting...

P.S. All of this tried on versions 6.42.3 and 6.42.6. The Lease time is set to 3 days.

Who is online

Users browsing this forum: boingolover, lubara and 132 guests