LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2010, 11:53 AM   #1
roonjha
LQ Newbie
 
Registered: Jul 2006
Distribution: Fedora Core 5
Posts: 23

Rep: Reputation: 15
How do I share internet through a wireless access point?


I am a new Arch user. I started using Arch just a few days ago. Need your help to forward traffic to the Wireless access point I created on arch. i am using cable internet (ppp0) which I want to share via a usb wifi adapter running as a WAP. I followed the instructions in this link to enable the AP mode. Afterwards I followed the instructions provided in the Arch Wiki to forward the traffic but because of my inexperience I am still unable to connect to the internet. Here is the output of iptables -nvL :
Code:
Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
   77 31312 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           
    0     0 DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0           state INVALID 
 3338 1639K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
   16   960 ACCEPT     icmp --  *      *       0.0.0.0/0            0.0.0.0/0           icmp type 8 state NEW 
  394 51023 OPEN-UDP   udp  --  *      *       0.0.0.0/0            0.0.0.0/0           state NEW 
    6   300 OPEN-TCP   tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:0x17/0x02 state NEW 
  394 51023 REJECT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-port-unreachable 
    6   300 REJECT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with tcp-reset 
   32   896 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-proto-unreachable 

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 TCPMSS     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0           tcp flags:0x17/0x02 TCPMSS clamp to PMTU 
    0     0 ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           state RELATED,ESTABLISHED 
  112  6832 fw-interfaces  all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 fw-open    all  --  *      *       0.0.0.0/0            0.0.0.0/0           
    0     0 REJECT     all  --  *      *       0.0.0.0/0            0.0.0.0/0           reject-with icmp-host-unreachable 

Chain OUTPUT (policy ACCEPT 4010 packets, 595K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OPEN-TCP (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain OPEN-UDP (1 references)
 pkts bytes target     prot opt in     out     source               destination         

Chain fw-interfaces (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  112  6832 ACCEPT     all  --  eth0   *       0.0.0.0/0            0.0.0.0/0           

Chain fw-open (1 references)
 pkts bytes target     prot opt in     out     source               destination
and iptables -t nat -nvL :
Code:
Chain PREROUTING (policy ACCEPT 1436 packets, 113K bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy ACCEPT 545 packets, 35046 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain POSTROUTING (policy ACCEPT 552 packets, 35347 bytes)
 pkts bytes target     prot opt in     out     source               destination         
    0     0 MASQUERADE  all  --  *      ppp0    10.254.239.0/27      0.0.0.0/0           
    0     0 MASQUERADE  all  --  *      eth0    10.254.239.0/27      0.0.0.0/0           
    0     0 MASQUERADE  all  --  *      wlan0   10.254.239.0/27      0.0.0.0/0
output of ifconfig :

Code:
eth0      Link encap:Ethernet  HWaddr 00:25:11:22:07:EF  
          inet6 addr: fe80::225:11ff:fe22:7ef/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:65439 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4662 errors:0 dropped:0 overruns:0 carrier:2
          collisions:0 txqueuelen:1000 
          RX bytes:6148377 (5.8 Mb)  TX bytes:742809 (725.3 Kb)
          Interrupt:25 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:77 errors:0 dropped:0 overruns:0 frame:0
          TX packets:77 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:31312 (30.5 Kb)  TX bytes:31312 (30.5 Kb)

mon.wlan0 Link encap:UNSPEC  HWaddr D8-5D-4C-8C-12-5B-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

ppp0      Link encap:Point-to-Point Protocol  
          inet addr:180.92.149.249  P-t-P:1.1.1.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:2046 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2173 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:1036816 (1012.5 Kb)  TX bytes:359238 (350.8 Kb)

wlan0     Link encap:Ethernet  HWaddr D8:5D:4C:8C:12:5B  
          inet addr:10.254.239.1  Bcast:10.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::da5d:4cff:fe8c:125b/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 b)  TX bytes:1064 (1.0 Kb)
here is what I am trying to achieve :



Code:
                                                                               (user name and pass required for high speed internet ppp0)
                  (ISP)  <------------------------------------------------------------------------------------> My Desktop PC
                                                                  (eth0)                                                 |
                                                                                                                   USB Wifi (WAP)     
                                                                                                                            |
                                                                                                      ----------------------|----------------------------------
                                                                                                      |                                                        |
                                                                                            ( laptop with win 7)                               (laptop with win xp)
 
Old 08-09-2010, 10:37 PM   #2
Meson
Member
 
Registered: Oct 2007
Distribution: Arch x86_64
Posts: 606

Rep: Reputation: 67
This might be a good starting point: http://wiki.archlinux.org/index.php/...e_Access_Point
 
Old 08-11-2010, 12:55 PM   #3
roonjha
LQ Newbie
 
Registered: Jul 2006
Distribution: Fedora Core 5
Posts: 23

Original Poster
Rep: Reputation: 15
Thanks for your reply and the link. I missed it even though I searched the wiki. My problem is already solved thanks to this reply -----> https://bbs.archlinux.org/viewtopic....806197#p806197

again thanks for your reply and the for the link you provided.
 
  


Reply



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
using ndiswrapper can ping wireless access point but no internet dreadnyah Linux - Networking 2 04-07-2009 03:19 PM
Slackware Wireless PCI Card Access Point, shared internet via DHCP NIC orbit Slackware 4 10-13-2008 02:42 AM
Can't access mount point after mounting W2K3 Svr share humbletech99 Linux - Networking 1 12-15-2006 01:58 PM
Connection to access point OK, but cannot access the network/internet Nymphetamine Linux - Wireless Networking 29 01-13-2005 02:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:53 AM.

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