LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Problem creating WiFi hotspot from fedora 17. (https://www.linuxquestions.org/questions/linux-newbie-8/problem-creating-wifi-hotspot-from-fedora-17-a-4175438236/)

jayeshsharma52 11-22-2012 02:10 AM

Problem creating WiFi hotspot from fedora 17.
 
Can anyone please help me to create adhoc network in fedora as in windows.
Thanx

markush 11-23-2012 11:30 AM

Hi,

the authentication is done with the hostapd daemon. If the client has a static IP-adress you will need no DHCP-server. As the DNS-server use the same server as the fedora-computer. Enable ip_forwarding with
Code:

echo "1" > /proc/sys/net/ipv4/ip_forward
bring the wlan up with the desired IP-adress (which then also is the gateway for the clients)
Code:

ifconfig wlan0 192.168.1.1 up
Configure NAT
Code:

ptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
(if the Computer has an internet-connection at eth0).
Then start hostapd (it's a daemon, take a look at the documentation for Fedora). Be sure to have the correct /etc/hostapd/hostapd.conf file, but there are several explanations in the internet.

Markus


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