
I Have OpenWISP2 Controller installed on my Raspberry Controller, that will control the Mikrotik-OpenWRT device. the Controller, and the Mikrotik OpenWRT device are on my organization network (10.33.109.0/24), and I want the wireless Network is different with the organization network, but the wireless Network on the OpenWRT 1 and OpenWRT 2 is same, and will get the DHCP service from the Raspberry Controller, not the OpenWRT device, and of course, it will need NAT. My question:
- Is it possible for the wireless network to receive the Raspberry Controller and get NAT?
- How to configure this to OpenWISP controller?
I'm a little bit confused to configure this, and I heard I can use dnsmasq on Raspberry to build DHCP Server, but I dont know how to configure NAT from wireless Network to LAN (10.33.109.0/24) Network.
Thank you very much
--
You received this message because you are subscribed to the Google Groups "OpenWISP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/fc542a50-9b71-4e56-9e6c-cd1a242aa369%40googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to open...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to openwisp+u...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/016d3db3-0d08-4d69-b384-19561f3add1b%40googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAP6YPdoXQEOhZtbczpVqY7ebgHJ-Q_4B-ug82gBXCxP3k-oHdA%40mail.gmail.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/openwisp/CAERYH6Up0agWVA%3DzswGnJHrfUROYd%2BP%3D7K0dUbMdhPFDqt5BuA%40mail.gmail.com.
Thanks federico for the response. It seems that DHCP and NAT is serve by OpenWRT, right?
In my case, I want the packet to go to Raspberry Pi first, before reaching Gateway
and I only use 2 AP. I have a research about OpenWRT compare with Mikrotik, so this is the case for OpenWRT network, is it possible?
hu Aug 1 20:14:31 2019 daemon.info openwisp: Local configuration outdatedThu Aug 1 20:14:31 2019 daemon.info openwisp: Downloading configuration from controller...Thu Aug 1 20:14:31 2019 daemon.info openwisp: Configuration downloaded, now applying it...Thu Aug 1 20:14:32 2019 daemon.info openwisp: Service firewall has been reloaded via procd/ubusThu Aug 1 20:14:32 2019 daemon.info openwisp: Service network has been reloaded via procd/ubusThu Aug 1 20:14:32 2019 daemon.info openwisp: Service system has been reloaded via procd/ubusThu Aug 1 20:14:33 2019 daemon.info openwisp: Service wireless has been reloaded via procd/ubusThu Aug 1 20:14:35 2019 daemon.info dnsmasq[3121]: read /etc/hosts - 4 addressesThu Aug 1 20:14:35 2019 daemon.info dnsmasq[3121]: read /tmp/hosts/odhcpd - 0 addressesThu Aug 1 20:14:35 2019 daemon.info dnsmasq[3121]: read /tmp/hosts/dhcp.dnsmasq1 - 2 addressesThu Aug 1 20:14:35 2019 daemon.info dnsmasq-dhcp[3121]: read /etc/ethers - 0 addressesThu Aug 1 20:14:36 2019 daemon.notice netifd: Interface 'wlan0' is now downThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.511345] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.529707] device wlan0 left promiscuous modeThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.534434] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:36 2019 daemon.notice netifd: Interface 'wlan0' is disabledThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: reading /tmp/resolv.conf.autoThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain testThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain onionThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localhostThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain invalidThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain bindThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain lanThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using nameserver 10.13.10.13#53Thu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.600950] br-wlan0: port 1(wlan0) entered blocking stateThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.606676] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.612817] device wlan0 entered promiscuous modeThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.677526] br-wlan0: port 1(wlan0) entered blocking stateThu Aug 1 20:14:36 2019 kern.info kernel: [ 1774.683296] br-wlan0: port 1(wlan0) entered forwarding stateThu Aug 1 20:14:36 2019 daemon.notice netifd: Interface 'wlan0' is enabledThu Aug 1 20:14:36 2019 daemon.notice netifd: Interface 'wlan0' is setting up nowThu Aug 1 20:14:36 2019 daemon.notice netifd: Interface 'wlan0' is now upThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: reading /tmp/resolv.conf.autoThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain testThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain onionThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localhostThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain invalidThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain bindThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using local addresses only for domain lanThu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using nameserver 10.13.10.13#53Thu Aug 1 20:14:36 2019 daemon.info dnsmasq[3121]: using nameserver 10.13.10.13#53Thu Aug 1 20:14:37 2019 daemon.notice hostapd: wlan0: interface state ENABLED->DISABLEDThu Aug 1 20:14:37 2019 daemon.notice hostapd: wlan0: AP-DISABLEDThu Aug 1 20:14:37 2019 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATINGThu Aug 1 20:14:37 2019 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0Thu Aug 1 20:14:37 2019 kern.info kernel: [ 1775.142748] device wlan0 left promiscuous modeThu Aug 1 20:14:37 2019 kern.info kernel: [ 1775.147543] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:37 2019 daemon.notice netifd: bridge 'br-wlan0' link is downThu Aug 1 20:14:37 2019 daemon.notice netifd: Interface 'wlan0' has link connectivity lossThu Aug 1 20:14:37 2019 daemon.notice netifd: Network device 'wlan0' link is downThu Aug 1 20:14:37 2019 daemon.notice netifd: Interface 'wlan0' is now downThu Aug 1 20:14:37 2019 daemon.notice netifd: Interface 'wlan0' is disabledThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: reading /tmp/resolv.conf.autoThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain testThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain onionThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localhostThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain invalidThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain bindThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain lanThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using nameserver 10.13.10.13#53Thu Aug 1 20:14:37 2019 kern.info kernel: [ 1775.354111] IPv6: ADDRCONF(NETDEV_UP): br-wlan0: link is not readyThu Aug 1 20:14:37 2019 daemon.notice netifd: Interface 'wlan0' is enabledThu Aug 1 20:14:37 2019 daemon.notice netifd: Interface 'wlan0' is setting up nowThu Aug 1 20:14:37 2019 daemon.notice netifd: Interface 'wlan0' is now upThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: reading /tmp/resolv.conf.autoThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain testThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain onionThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localhostThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain localThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain invalidThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain bindThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using local addresses only for domain lanThu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using nameserver 10.13.10.13#53Thu Aug 1 20:14:37 2019 daemon.info dnsmasq[3121]: using nameserver 10.13.10.13#53Thu Aug 1 20:14:37 2019 user.notice firewall: Reloading firewall due to ifup of wlan0 (br-wlan0)Thu Aug 1 20:14:38 2019 daemon.info openwisp: Testing configuration...Thu Aug 1 20:14:38 2019 user.notice firewall: Reloading firewall due to ifup of wlan0 (br-wlan0)Thu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063010] ath: EEPROM regdomain: 0x8168Thu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063022] ath: EEPROM indicates we should expect a country codeThu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063027] ath: doing EEPROM country->regdmn map searchThu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063032] ath: country maps to regdmn code: 0x3Thu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063037] ath: Country alpha2 being used: IDThu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063040] ath: Regpair used: 0x3Thu Aug 1 20:14:39 2019 kern.debug kernel: [ 1777.063047] ath: regdomain 0x8168 dynamically updated by userThu Aug 1 20:14:39 2019 daemon.info openwisp: Configuration test succeededThu Aug 1 20:14:40 2019 user.notice mac80211: Failed command: iw phy phy0 set antenna all allThu Aug 1 20:14:40 2019 daemon.info openwisp: Configuration applied successfullyThu Aug 1 20:14:41 2019 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.confThu Aug 1 20:14:41 2019 kern.info kernel: [ 1779.108953] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not readyThu Aug 1 20:14:41 2019 kern.info kernel: [ 1779.142285] br-wlan0: port 1(wlan0) entered blocking stateThu Aug 1 20:14:41 2019 kern.info kernel: [ 1779.147967] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:41 2019 kern.info kernel: [ 1779.154134] device wlan0 entered promiscuous modeThu Aug 1 20:14:41 2019 daemon.notice hostapd: ctrl_iface exists and seems to be in use - cannot override itThu Aug 1 20:14:41 2019 daemon.notice hostapd: Delete '/var/run/hostapd/wlan0' manually if it is not used anymoreThu Aug 1 20:14:41 2019 daemon.err hostapd: Failed to setup control interface for wlan0Thu Aug 1 20:14:41 2019 daemon.err hostapd: wlan0: Unable to setup interface.Thu Aug 1 20:14:41 2019 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLEDThu Aug 1 20:14:41 2019 daemon.notice hostapd: wlan0: AP-DISABLEDThu Aug 1 20:14:41 2019 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATINGThu Aug 1 20:14:41 2019 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't startedThu Aug 1 20:14:41 2019 daemon.notice hostapd: wlan0: AP-DISABLEDThu Aug 1 20:14:41 2019 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATINGThu Aug 1 20:14:41 2019 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't startedThu Aug 1 20:14:41 2019 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0Thu Aug 1 20:14:41 2019 kern.info kernel: [ 1779.209644] device wlan0 left promiscuous modeThu Aug 1 20:14:41 2019 kern.info kernel: [ 1779.214378] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:41 2019 daemon.notice netifd: radio0 (4002): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 1306 path ()Thu Aug 1 20:14:41 2019 daemon.notice netifd: radio0 (4002): Device setup failed: HOSTAPD_START_FAILEDThu Aug 1 20:14:41 2019 daemon.info dnsmasq[3121]: read /etc/hosts - 4 addressesThu Aug 1 20:14:41 2019 daemon.info dnsmasq[3121]: read /tmp/hosts/odhcpd - 0 addressesThu Aug 1 20:14:41 2019 daemon.info dnsmasq[3121]: read /tmp/hosts/dhcp.dnsmasq1 - 2 addressesThu Aug 1 20:14:41 2019 daemon.info dnsmasq-dhcp[3121]: read /etc/ethers - 0 addressesThu Aug 1 20:14:51 2019 user.notice mac80211: Failed command: iw phy phy0 set antenna all allThu Aug 1 20:14:52 2019 daemon.err hostapd: Configuration file: /var/run/hostapd-phy0.confThu Aug 1 20:14:52 2019 kern.info kernel: [ 1790.275431] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not readyThu Aug 1 20:14:52 2019 kern.info kernel: [ 1790.286449] br-wlan0: port 1(wlan0) entered blocking stateThu Aug 1 20:14:52 2019 kern.info kernel: [ 1790.292218] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:52 2019 kern.info kernel: [ 1790.298326] device wlan0 entered promiscuous modeThu Aug 1 20:14:52 2019 daemon.notice hostapd: ctrl_iface exists and seems to be in use - cannot override itThu Aug 1 20:14:52 2019 daemon.notice hostapd: Delete '/var/run/hostapd/wlan0' manually if it is not used anymoreThu Aug 1 20:14:52 2019 daemon.err hostapd: Failed to setup control interface for wlan0Thu Aug 1 20:14:52 2019 daemon.err hostapd: wlan0: Unable to setup interface.Thu Aug 1 20:14:52 2019 daemon.notice hostapd: wlan0: interface state UNINITIALIZED->DISABLEDThu Aug 1 20:14:52 2019 daemon.notice hostapd: wlan0: AP-DISABLEDThu Aug 1 20:14:52 2019 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATINGThu Aug 1 20:14:52 2019 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't startedThu Aug 1 20:14:52 2019 daemon.notice hostapd: wlan0: AP-DISABLEDThu Aug 1 20:14:52 2019 daemon.notice hostapd: wlan0: CTRL-EVENT-TERMINATINGThu Aug 1 20:14:52 2019 daemon.err hostapd: hostapd_free_hapd_data: Interface wlan0 wasn't startedThu Aug 1 20:14:52 2019 daemon.notice hostapd: nl80211: deinit ifname=wlan0 disabled_11b_rates=0Thu Aug 1 20:14:52 2019 kern.info kernel: [ 1790.330428] device wlan0 left promiscuous modeThu Aug 1 20:14:52 2019 kern.info kernel: [ 1790.335334] br-wlan0: port 1(wlan0) entered disabled stateThu Aug 1 20:14:52 2019 daemon.notice netifd: radio0 (4308): WARNING (wireless_add_process): executable path /usr/sbin/wpad does not match process 1306 path ()Thu Aug 1 20:14:52 2019 daemon.notice netifd: radio0 (4308): Device setup failed: HOSTAPD_START_FAILED
package system
config system 'system' option hostname 'OpenWRT' option maintainer 'Ricky Anggro'
package network
config interface 'wlan0' option auto '1' option dns '10.13.10.13' option enabled '1' option ifname 'wlan0' option ipaddr '192.168.1.1' option mtu '1500' option netmask '255.255.255.0' option proto 'static'
package wireless
config wifi-device 'radio0' option channel '11' option country 'ID' option disabled '0' option htmode 'HT20' option hwmode '11g' option txpower '10' option type 'mac80211'
config wifi-iface 'wifi_wlan0' option device 'radio0' option disabled '0' option encryption 'psk2+tkip+ccmp' option hidden '0' option ifname 'wlan0' option isolate '0' option key '12345678' option macfilter 'disable' option mode 'ap' option network 'wlan0' option ssid 'Ricky-Wifi' option wds '0' option wmm '1'