I will add more information.
My DHCP server config is :
Code:
default-lease-time 600;
max-lease-time 7200;
subnet 192.168.2.0 netmask 255.255.255.0
{
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.2.255;
option domain-name-servers 8.8.8.8;
option routers 192.168.2.1;
range 192.168.2.20 192.168.2.60;
}
subnet 192.168.1.0 netmask 255.255.255.0
{
}
I start it with :
Code:
dhcpd -cf /etc/dhcp/dhcpd.conf
But before, I set some rules to provide internet to the virtual AP (at0) from wired connexion (eth0) :
Code:
ifconfig at0 up
ifconfig at0 192.168.2.1 netmask 255.255.255.0
ifconfig at0 mtu 1500
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING --out-interface eth0 -j MASQUERADE
iptables --append FORWARD -j ACCEPT --in-interface at0
echo "1" > /proc/sys/net/ipv4/ip_forward
The DCHP server get no error :
Code:
Internet Systems Consortium DHCP Server 4.3.3
Copyright 2004-2015 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/
Config file: /etc/dhcp/dhcpd.conf
Database file: /var/lib/dhcp/dhcpd.leases
PID file: /var/run/dhcpd.pid
Wrote 3 leases to leases file.
Listening on LPF/at0/00:c0:ca:4f:15:44/192.168.2.0/24
Sending on LPF/at0/00:c0:ca:4f:15:44/192.168.2.0/24
Listening on LPF/eth0/b8:27:eb:10:48:bf/192.168.1.0/24
Sending on LPF/eth0/b8:27:eb:10:48:bf/192.168.1.0/24
Sending on Socket/fallback/fallback-net
When my device connects to AP, the configuration is :
Code:
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.1.254 0.0.0.0 UG 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 at0
Is it possible that the problem comes from ARM version of airbase-ng?