Results 1 to 9 of 9

Thread: Soft AP (hostapd & dnsmasq)

  1. #1
    Join Date
    Jul 2012
    Beans
    29

    Soft AP (hostapd & dnsmasq)

    I have a soft access point set up via hostapd and dnsmasq in my Ubuntu 10.04 gnome environment. The problem is that after I log in, the access point wireless device tries to connect to the nearest open wireless network. When this happens, it seems to break my dnsmasq, because when I attempt to connect to my soft AP with a wireless device, it won't assign a proper IP--it just gives a random IP.

    Is there a way to stop the wireless device that runs the soft AP from trying to auto-connect to open wireless networks after I log in?

    Thanks

  2. #2
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    Can anyone help me on this one?

  3. #3
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    Bump.

  4. #4
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    Bump! Please!

  5. #5
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    Bump?

  6. #6
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    Tried adding a couple of lines to /etc/rc.local that turns off the internal wireless card, then calls the software AP.

    Code:
    sudo ifdown wlan0
    sudo ap_ctl --start
    sudo ap_ctl --ics
    Still doing testing, but first run, it seemed to work.

  7. #7
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    Could I use $ifconfig instead of $ifdown ? What is the difference there? Also, once I use $ifdown in the rc.local file, I can't figure out how to re-enable the interface. Could anyone share some advice or insight here? What is the best way to do this?

  8. #8
    Join Date
    Jul 2012
    Beans
    29

    Re: Soft AP (hostapd & dnsmasq)

    This is still not working properly. It doesn't keep the DHCP assignments going right when both wireless cards try to connect to the network upon startup. Can anyone advise?

  9. #9
    Join Date
    Mar 2009
    Location
    Albuquerque New Mexico
    Beans
    16
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: Soft AP (hostapd & dnsmasq)

    So Ctown, which implementation of hostapd are you using.
    After looking it up(wikipedia) it looks like there are flavors of it.
    http://en.wikipedia.org/wiki/Hostapd


    Also it seems that you are having a fight with network manager. It may be that you need to figure out what the network manager applet is doing because it will overwrite alot of files dynamically which in your senario are already being used by dnsmasq/hostapd. I would just send an email to the network manager mailing list asking what kind of interaction with dnsmasq/hostapd is happening and whether or not you should completely disable Network Manager or if it can co-exist with your set up.

    -cellarweasel

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •