I'm doing a VPN router with Access Point capability, but the router doesn't broadcast network SSID and the network doesn't work at all now. I've realised that when I type service openvpn stop
, then I have internet back, so the VPN isn't configured properly, but I dont see where I go wrong...
Basic setup:
ifconfig -a
wlan1
is connected to my router for WiFi internet uplink by using the EDIMAX EW-7811Un adapter, wlan0
is the Access Point configured with hostapd by using EDIMAX EW-7811Un adapter.
Network setup
/etc/network/interfaces
/etc/wpa_supplicant/wpa_supplicant.conf
I have downloaded and installed a custom version of hostapd from here:
$ wget https://github.com/jenssegers/RTL8188-hostapd/archive/v1.1.tar.gz $ tar -zxvf v1.1.tar.gz $ cd RTL8188-hostapd-1.1/hostapd $ make $ sudo make install
This is my /etc/hostapd/hostapd.conf:
Then I've installed this:
$ sudo apt-get install dnsmasq
Now, I have done this, to tell the DHCP server that it controls an IP address range between:
$ sudo nano /etc/dnsmasq.d/dnsmasq.custom.conf
Now, I have entered to configure the DHCP server to use wlan1 as the device that manages DHCP requests and point the DNS to the Google public DNS servers. Here:
But in this step, every time I delete or comment out those fields that are assigned by my ISP automatically as seen on picture, they keep coming back after Pi reboot. I don't know why that happens, but saving doesn't work here for some reason.
Now, at this point I the two WiFi adapters are blinking, but I cant see the wlan0 WAP's network SSID broadcasting where in theory I should, as I think I've done everything..
My IP Tables, please see below:
As per eftshift0's suggestion I attach the sudo ip link and route
(sorry I couldnt attach more links).
When the system boots, already with all the interfaces running including VPN:
https://i.stack.imgur.com/A5pQI.jpg
https://i.stack.imgur.com/XLYyO.jpg
After I kill the VPN service with sudo service openvpn stop
:
https://i.stack.imgur.com/ElGRW.jpg
I am completely lost in what Im doing wrong. I think it's the IP's I have configured wrong, but I can't figure it out myself... Can anyone please help me?