I'm trying to set up a Raspberry Pi running Raspbian Jessie with the following configuration:
- DHCP Server (isc-dhcp-server)
- WLAN Access Point (hostapd)
- Application Server (HTTP server on port 80)
My problem is that devices connected to the WLAN AP cannot communicate with the webserver running on the Pi. Devices connected to the ethernet port have no trouble displaying the webpage.
When I connect my laptop to the AP and try to ping the Pi (10.10.1.1
) it tells me that it is down. I do however get an IP address (e.g. 10.10.1.17
). When using an ethernet cable to the Pi I receive an IP address and am able to ping the Pi on 10.10.1.1
so everything is worked when using a wired connection.
Here are my configuration files:
/etc/dhcp/dhcp.conf
ddns-update-style none;
authoritative;
log-facility local7;
subnet 10.10.1.0 netmask 255.255.255.0 {
range 10.10.1.10 10.10.1.100;
option routers 10.10.1.1;
default-lease-time 3600;
max-lease-time 3600;
option subnet-mask 255.255.255.0;
option broadcast-address 10.10.1.255;
option domain-name-servers 8.8.8.8;
option domain-name "support.muffag.ch";
}
/etc/default/isc-dhcp-server
INTERFACES="eth0 wlan0"
/etc/network/interfaces
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
allow-hotplug eth0
auto eth0
iface eth0 inet static
address 10.10.1.1
netmask 255.255.255.0
allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 10.10.1.2
netmask 255.255.255.0
/etc/hostapd/hostapd.conf
interface=wlan0
driver=rtl871xdrv
ssid=Test AP
hw_mode=g
channel=6
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=Raspberry
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
/etc/default/hostapd
DAEMON_CONF="/etc/hostapd/hostapd.conf"
.
I've seen that other people are talking about a network bridge but I'm unsure on how to use something like that. How can I make sure that devices connected to the access point can reach the webserver?