You are not logged in.

#1 2010-05-28 22:17:52

lamdacore
Member
Registered: 2009-11-05
Posts: 128

Internet Sharing

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

#2 2010-05-28 23:04:37

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: Internet Sharing

How is the client laptop getting an ip address? Are you running dhcp on the other one, or setting a static ip?

Offline

#3 2010-05-29 00:25:55

lamdacore
Member
Registered: 2009-11-05
Posts: 128

Re: Internet Sharing

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

#4 2010-05-29 06:53:22

Ogion
Member
From: Germany
Registered: 2007-12-11
Posts: 367

Re: Internet Sharing

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

#5 2010-05-29 07:16:47

lamdacore
Member
Registered: 2009-11-05
Posts: 128

Re: Internet Sharing

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

Board footer

Powered by FluxBB