ubuntu下ad-hoc共享上网
date:星期六, 七月 11th, 2009 at 5:10 下午 Categories:linux
windows 下 的 ad-hoc只需要修改 为
计算机 点对点方式
今天在UBUNTU下的过程
过程 简要描述
来自 .bash_history
sudo ifconfig wlan0 down
sudo iwconfig wlan0 mode ad-hoc
sudo iwconfig wlan0 essid “yingouqlj”
sudo ifconfig wlan0 192.168.0.1 netmask 255.255.255.0
sudo iptables -F
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -t nat -A POSTROUTING -o etho -j MASQUERADE
sudo vim /etc/sysctl.conf
去注释 net.ipv4.ip_forward = 1

2009.07.20 9:50 上午
這個很有用,但卻看不懂!
[Reply]