LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-08-2014, 02:05 PM   #1
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Rep: Reputation: 12
Using hostapd and isc-dhcp-server to create a wireless access point


I was using this Cyberciti guide to try and set up an older computer as a wireless access point. The computer is sitting on a network without DHCP. Unfortunately, that guide assumes you have DHCP set up on your host network, so it does not go into setting up DHCP. I followed a guide on the Debian Wiki to get DHCP set up.

Right now just for testing purposes, I have an open wireless network named "Jim". My wireless devices can connect to the Jim network and they can ping each other and the gateway, but they cannot access the internet. I know this is because I'm not using a bridge interface like the hostapd guide instructs, but since this machine is acting as a DHCP server, is a bridge interface still the proper method? Can't I create a route or iptables rule that will send all traffic from wlan0 out eth0?

Here are some pastes to give some more insight on my situation:

ifconfig - A question about this: Does anyone know where this "mon.wlan0" interface could have come from? It kind of just showed up.

hostapd.conf - The "driver" option is commented out because hostapd will not run if I leave it in there.

/etc/network/interfaces

dhcpd.conf
 
Old 03-08-2014, 03:36 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,470

Rep: Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218Reputation: 6218
About all I know is that hostapd creates a monitor mode interface (mon.wlan0) for receiving and transmitting management frames.

DHCP has nothing to do with a bridge. A bridge will allow the wired and wireless networks to be on the same subnet just like a regular hardware wireless router. It isn't required and you can use iptables and ipforwarding to route traffic.
 
Old 03-08-2014, 09:46 PM   #3
resuni
Member
 
Registered: Oct 2009
Location: Colorado, USA
Distribution: I use Arch btw
Posts: 146

Original Poster
Rep: Reputation: 12
Wow, didn't realize it was as easy as just enabling ip forwarding. Thread is now solved.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
hostapd access point is unable to complete the connection ravi.xolve Linux - Networking 7 04-10-2012 07:01 AM
LXer: Turn your Linux computer in a wireless access point using hostapd LXer Syndicated Linux News 0 08-27-2010 12:00 PM
How to setup hostapd access point in opensuse? alex2002 Linux - Networking 4 07-15-2009 04:50 PM
Help, ... hostapd Access point stop ... ERBRMN Linux - Networking 0 02-17-2006 01:10 AM
Need help setting up a wireless access point using hostap on a DHCP server msms Linux - Wireless Networking 1 09-02-2003 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration