Zjednodusene ide o takyto postup:
:
echo A) Destroy ath0 and put your wireless card into access-point mode (not ad-hoc!)
ifconfig ath0 down
wlanconfig ath0 destroy
wlanconfig ath0 create wlandev wifi0 wlanmode ap
echo B) Start your wireless
ifconfig ath0 up
iwconfig ath0 essid wEeePC channel 11 key <hex key, or s:ascii>
echo C) Set the ip of your w-lan ap
ifconfig ath0 192.168.0.1 netmask 255.255.255.0 up
echo D) Get dnsmasq (or another dhcp server) and start it
# apt-get install dnsmasq
vim /etc/dnsmasq.conf # read some docs....
/etc/init.d/dnsmasq start
echo E) Get your networking right
echo 1 > /proc/sys/net/ipv4/ip_forward
echo F) Enable a NAT gateway (this might require a custom kernel)
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o eth0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ath0 -o eth0 -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ath0 -j ACCEPT
:
Lenze pri prvom riadku vypisalo, ze take zariadenie neexistuje. A wifi uz nefunguje.
Nastastie mam v nom este aj iny OS.
)
Akcia: Skusam dalej...
)