You are not logged in.
Pages: 1
I am new to linux and networking on linux. I was trying to set up an adhoc network between my laptop and another laptop (running windows7).
I handle the connections on the laptop with wicd.
So I went through
http://wiki.archlinux.org/index.php/Sim … l_firewall
http://wiki.archlinux.org/index.php/Iptables
http://wiki.archlinux.org/index.php/Internet_Share
http://wiki.archlinux.org/index.php/Sha … _interface
http://www.howtoforge.com/internet-conn … g-on-linux
To learn/find out how to achieve my purpose.
So I set up the iptables, set "net.ipv4.ip_forward=1" in "/etc/sysctl.conf" and set up a wireless connection in adhoc mode.
The client laptop can see the connection and can connect to it, but it has no network access.
Please advise. Thanks!
Offline
How is the client laptop getting an ip address? Are you running dhcp on the other one, or setting a static ip?
Offline
Well I assumed that windows would handle obtaining the ip address automatically with default settings. But since it did not work, I manually changed setting for the wireless card with:
Gateway: 192.168.0.254
IP: 192.168.0.2
Netmask: 255.255.255.0
DNS: 8.8.8.8 (google dns)
on the host I added the following to etc/dnsmasq.conf
domain-needed
bogus-priv
interface=wlan0
dhcp-range=192.168.0.1,192.168.0.100,12h
and I assigned the ip to my wireless card as follows:
ifconfig wlan0 192.168.0.254 netmask 255.255.255.0
Last edited by lamdacore (2010-05-29 00:27:07)
Offline
Did you try followinig the Internet Share archwiki article step by step (adapting 'client'-side to windows of course)?
I regularly use what was being explained there succcessfully to let my netbook be a gateway for another computer. (Witthout dnsmasq/other dhcp-server.)
Ogion
Last edited by Ogion (2010-05-29 06:54:22)
(my-dotfiles)
"People willing to trade their freedom for temporary security deserve neither and will lose both." - Benjamin Franklin
"Enlightenment is man's leaving his self-caused immaturity." - Immanuel Kant
Offline
Yeah, actually I had initially followed that wiki! When it didn't work out, I looked at the Sharing ppp connection with wlan interface Wiki and borrowed the bit about the dnsmasq.
Though the dnsmasq bit shouldn't change anything dramatically I believe. (or would it?)
Last edited by lamdacore (2010-05-29 07:18:26)
Offline
Pages: 1