I have an external NIC and 2 internal NICs, and am trying to set up dhcp on both of the internal interaces. So i created a bridge br0 for the internal LAN interface, and hostapd adds the wifi interface to it as well. I can connect via dhcp but cannot access the internet. I can access internet both over LAN and wifi with static IP though.
Static: IP: 10.20.10.2, Netmask 255.255.255.0 Gateway 10.20.10.1, DNS Servers: 213.73.91.3,85.214.20.141. DHCP with Adresses only and added DNS Servers works neither.
I have to add, that I experimented to set up a alias for 10.20.10.1 like mycloud to be able to connect via this hostname which won't work too. I'm using webmin.
I'm using network (not networkmanager)
Enabled Masquerading: iptables -t nat -A POSTROUTING -o EXTERNAL-NIC -j MASQUERADE
my dhcp.conf
Code: Select all
option subnet-mask 255.255.255.0;
option domain-name-servers 213.73.91.3, 85.214.20.141;
ddns-update-style interim;
# LAN
subnet 10.20.10.0 netmask 255.255.255.0 {
option time-offset -18000;
range 10.20.10.100 10.20.10.200;
}
I have to add, that everything (cloud service, libvirt, mysql, openvpn, hostapd ...) works fine, except the networking.
Thanks for helping!
Ray