Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Please Help Wireless., Ad-Hoc?< Next Oldest | Next Newest >
andrewphoto Offline





Group: Members
Posts: 189
Joined: June 2005
Posted: July 09 2007,13:01 QUOTE

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 10.32.204.221
remote IP address 192.168.100.101
primary   DNS address 193.35.133.10
secondary DNS address 193.35.134.10

ifconfig
ppp0     Link encap:Point-to-Point Protocol
        inet addr:10.32.204.221  P-t-P:192.168.100.101  Mask:255.255.255.255
        UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1

pppd is always Mask:255.255.255.255


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

route add default gw 192.168.0.1
route add 192.168.0.1 dev ppp0

route add 192.168.0.1 dev wlan0


Any input many thanks, Andrew.
Best Regards.
Back to top
Profile PM 
andrewphoto Offline





Group: Members
Posts: 189
Joined: June 2005
Posted: July 13 2007,21:34 QUOTE

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.
Back to top
Profile PM 
1 replies since July 09 2007,13:01 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Please Help Wireless.

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code