【Ubuntu】单无线网卡创建无线热点共享网络连接

本文介绍了如何在Ubuntu系统中利用iw、hostapd、iptables等工具,通过配置相关文件如hostapd.conf和udhcpd.conf,创建无线热点以共享网络连接。同时提到了启动和关闭热点的脚本以及备用方法create_ap,但警告该脚本在单无线网卡环境下可能无法成功。详细步骤和参考资料链接已提供。
摘要由CSDN通过智能技术生成

主要工具:

  1. iw : A new nl80211 based CLI configuration utility for wireless
    devices.
  2. hostapd : A user space software access point capable of
    turning normal network interface cards into access points and
    authentication servers.
  3. iptables : Used to set up, maintain, and inspect the tables of IPv4 packet filter rules in the Linux kernel.
  4. udhcpd : A very small DHCP server program geared towards embedded systems.
  5. udpcpc : A very small DHCP client program geared towards embedded systems.
  6. macchanger : A GNU/Linux utility for viewing/manipulating the MAC address of network interfaces.

安装方法:

sudo apt-get install iw hostapd iptables udhcpd udhcpc macchanger

各工具配置文件:

/etc/hostapd.conf

interface=new1
driver=nl80211
ssid=xxxxxxxxx
channel=11                #I sugest you to use the same channel as your wireless network
hw_mode=g
wme_enabled=1
macaddr_ac
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值