Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Allowing internet access while in AP mode (on mobile)
#3
(11-10-2018, 02:07 PM)Tim Curtis Wrote: You could try playing with this param in /etc/dnsmasq.conf

# Set default gateway
dhcp-option=3,0.0.0.0

I'm not sure though how to tell dnsmasq to not send the gw address to the client.


Yep. That did the trick - no ip after the option means no gateway set (0.0.0.0 is default gw)


Code:
#
# 2018-01-26 TC moOde 4.0
#

interface=wlan0      # Use interface wlan0
bind-interfaces      # Bind to the interface to make sure we aren't sending things elsewhere
server=127.0.0.1     # Forward DNS requests to self
domain-needed        # Don't forward short names
bogus-priv           # Never forward addresses in the non-routed address spaces.
dhcp-range=172.24.1.50,172.24.1.150,12h # IP address range and lease time
dhcp-option=3
dhcp-option=6

3 disables gateway, 6 disables dns (probably not needed).

This makes it the perfect mobile streamer/player (AP mode while still having internet access on mobile). :-)

Thanks.
Reply


Messages In This Thread
RE: Allowing internet access while in AP mode (on mobile) - by Viol8r - 11-10-2018, 02:46 PM

Forum Jump: