Raspberry Pi Wireless Router

Source: Internet
Author: User

Raspberry Pi wireless routers there are a lot of ways RaspberryPi can do. I will share my experience with you. As a wireless router, we need to provide dhcp and Wireless AP capabilities through the isc-dhcp-server and hostapd software, forwarding between NICS is directly implemented through iptables defining nat rules. Install dhcp service and ap hotspot service [python] apt-get install isc-dhcp-server apt-get install hostapd Modify/etc/network/interfaces in/etc/dhcp/dhcpd. conf Add/etc/hostapd. conf enables the NIC forwarding capability of the kernel and sets/etc/sysctl. [python] net. comment of ipv4.ip _ forward = 1 is removed. Modify the iptables nat rule [python] iptables-t nat-a postrouting-o eth0-j MASQUERADE to add the rule to the automatic start mode [python] iptables-save>/root/nat. rule New/etc/network/if-pre-up.d/iptables [python] #! /Bin/bash/sbin/iptables-restore </root/nat. rule or write the rule statement directly into the file. If your hostapd cannot work normally, hostapd does not support your Nic chip. Download: https://github.com/cnsworder/RTL8188-hostapd/archive/master.zip (2.29 M) You can directly compile on raspberrypi (the compilation speed is really slow) [python] cd hostapd make; make install and re-Modify the hostapd configuration file. I saw the hot spot of Shumei School.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.