Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 07-09-2007, 08:42 AM   #1
LQ Newbie
Registered: Mar 2006
Posts: 8

Rep: Reputation: 0

Debian Etch.
A landlord wants me to setup wireless in a large building, I will be employing bigger antennae, and Repeaters.

I want to setup building before buying landline connection, method:

I bring internet to box_1 by GPRS cellphone,
modprobe cdc-acm
/usr/sbin/pppd connect '/usr/sbin/chat -v "" "AT&F" OK "AT+CGDCONT=1,\"IP\",\"LEMONINTERNET\"" OK "ATDT*99#"' noauth /dev/ttyACM0 921600 defaultroute noipdefault user ppp usepeerdns

Box_1, I want to "pipe" ppp0 to wlan0. wlan0 to Box_2, Ad-Hoc?. Box_2, notebook/laptop has wireless card, I will roam building.

I need to NAT, is this correct?
modprobe iptable_nat
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A FORWARD -i ppp0 -o wlan0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

Run pppd
tail -f /var/log/messages
local IP address
remote IP address
primary DNS address
secondary DNS address

ppp0 Link encap:Point-to-Point Protocol
inet addr: P-t-P: Mask:

pppd is always Mask:

I am reading wireless HOWTO etc., I WANT TO DO MANUALLY.
Can I do this?

route add default gw
route add dev ppp0

route add dev wlan0

Any input many thanks, Andrew.
Old 07-09-2007, 05:58 PM   #2
Registered: Oct 2004
Location: USA
Distribution: Vector Linux 5.1 Std., Vector Linux 5.8 Std., Win2k, XP, OS X (10.4 & 10.5)
Posts: 344

Rep: Reputation: 42
I have a much simpler suggestion..

You wire in the broadband access to a well ventilated room. In this room you install several L2 or L3 switches. Each port on the switch is connected to a power line network adapter. (one for each apartment location)

The opposite power line adapter is then connected to a wireless access point within the individual apartment.

This scheme will allow you to have a reasonable amount of connectivity with a minimum of interference from walls, etc. Furthermore it allows the tenant to improve reception by moving the power line adapter and the access point to convenient work locations.
Old 07-13-2007, 04:41 PM   #3
LQ Newbie
Registered: Mar 2006
Posts: 8

Original Poster
Rep: Reputation: 0
I'm afraid I'm not enjoying networking at the minute.
Because unfortunately I don't quite understand exactly what I am doing, perhaps the best I can do is systematically try options.
I hope somebody could offer some input and perhaps I will learn and understand.

Cellphone won't function as a modem without pppd options defaultroute noipdefault usepeerdns.
Usepeerdns creates an /etc/ppp/resolv.conf file containing two nameserver lines with the addresses supplied by the peer.

Do I need to add a line to /etc/ppp/resolv.conf ?

Perhaps I should be using dhcpd & dnsmasq or something ?

I am trying to gain some understanding.

Any input appreciated.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
eth1 and ppp0, need to send UDP packets through ppp0 smhs Linux - Networking 2 07-12-2005 08:54 AM
dhclient wlan0 - wlan0: not found nickleus Linux - Networking 1 05-10-2005 09:06 PM
ADSL-STATUS: linked to ppp0 but ppp0 seems to be down. mikkime23 Linux - Networking 1 01-01-2005 11:00 AM
Endless Loop: ppp0 Unregister Netdevice: waiting for ppp0 to be free. oberon-ken-obi Linux - Networking 1 07-20-2004 11:04 PM
Broadcom wireless with ndiswrapper: ifconfig wlan0 works; ifup wlan0 fails orangechicken Linux - Wireless Networking 2 04-17-2004 05:39 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:33 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration