You are not logged in.
I have this script.
#!/bin/bash
sudo /etc/rc.d/networkmanager stop
sudo /etc/rc.d/network restart
sudo ifconfig wlan0 down
sudo ifconfig wlan0 up
sudo iwconfig wlan0 mode ad-hoc
sudo iwconfig wlan0 essid beast
sudo iwconfig wlan0 key open
sudo ifconfig wlan0 192.168.1.1
sudo iptables -A FORWARD -i wlan0 -o eth0 -s 10.0.0.0/24 -m state --state NEW -j ACCEPT
sudo iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
sudo iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
sudo su -c "echo 1 > /proc/sys/net/ipv4/ip_forward"
sudo iptables -t mangle -A PREROUTING -j TTL --ttl-inc 1
sudo /etc/rc.d/dnsmasq restartI want Ad-hoc to have no password. What am I doing wrong?
On client side:- He can see and connect to the network, but cannot surf the internet. (Remote PC is windows)
My /etc.dnsmasq.conf
log-dhcp
interface=wlan0
dhcp-range=192.168.1.2,192.168.1.100,12hBefore running this script. I had "sudo iwconfig wlan0 key 0123456789", but then I decided of making it open. Now, even when I run the script, I still have to enter the password to connect
Last edited by shadyabhi (2011-04-17 17:34:56)
My blog:-
http://blog.abhijeetr.com
Offline