LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 05-27-2016, 07:48 PM   #1
CrewXp
Member
 
Registered: Jan 2004
Posts: 83

Rep: Reputation: 15
Iptable Issue? Cant see devices on newly setup Access Point. Can ping, but not arp


I setup a wireless access point on my server and for some reason, everything works but automatic discovery features. I can't see any other devices, upnp devives aren't discovered, and I think it's a simple iptable or route issue I'm missing.

Example: -Device A plugged in ethernet discovers 20 local devices -Device A plugged in wireless discovers itself and the wifi only -Device A plugged in wireless CAN connect to others if manually specified IP -Device A can see NO other UpNp/DLNA/Share/Etc hooked wireless, but can ethernet

I solved this a long time ago, but can't remember what I did.

sudo iptables --list
Code:
Chain INPUT (policy ACCEPT)
target     prot opt source               destination

Chain FORWARD (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
route

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         192.168.100.1   0.0.0.0         UG    0      0        0 eth0
default         192.168.100.1   0.0.0.0         UG    202    0        0 eth0
192.168.100.0   *               255.255.255.0   U     202    0        0 eth0
192.168.189.0   *               255.255.255.0   U     303    0        0 wlan0
ifconfig -a

Code:
eth0      Link encap:Ethernet  HWaddr b8:27:eb:31:1e:4b
          inet addr:192.168.100.153  Bcast:192.168.100.255  Mask:255.255.255.0
          inet6 addr: fe80::fb1:56b0:c113:f046/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:281701 errors:0 dropped:0 overruns:0 frame:0
          TX packets:89770 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:75550664 (72.0 MiB)  TX bytes:19734709 (18.8 MiB)

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:65536  Metric:1
          RX packets:2491 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2491 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:234335 (228.8 KiB)  TX bytes:234335 (228.8 KiB)

wlan0     Link encap:Ethernet  HWaddr b8:27:eb:64:4b:1e
          inet addr:192.168.189.1  Bcast:192.168.189.255  Mask:255.255.255.0
          inet6 addr: fe80::f855:75b1:b821:5f5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26313 errors:0 dropped:24582 overruns:0 frame:0
          TX packets:2436 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:4191579 (3.9 MiB)  TX bytes:966693 (944.0 KiB)
network/interfaces

Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback

#auto eth0 # managed by ifplugd
iface eth0 inet dhcp
#hwaddress ether 1a:64:b6:bf:36:37

#allow-hotplug wlan0
#auto wlan0
#iface wlan0 inet dhcp
#pre-up wpa_supplicant -B w -D wext -i wlan0 -c /opt/max2play/wpa_supplicant.co$
#post-down killall -q wpa_supplicant






#Accesspoint start
up iptables-restore < /etc/hostapd/iptables.ap
#Accesspoint end
hosts
Code:
127.0.0.1       localhost
::1             localhost ip6-localhost ip6-loopback
ff02::1         ip6-allnodes
ff02::2         ip6-allrouters

127.0.1.1       UnitThree
192.168.189.1     UnitThree
 
Old 05-28-2016, 04:56 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,332

Rep: Reputation: Disabled
You have two different IP networks, and your server acts like a router. That's why "ping" works (the server routes the packets back and forth), while "arp" doesn't show any IP-to-MAC bindings (the wireless and cabled networks are two entirely different Layer 2 networks).

Autodiscovery features like UPnP works by means of broadcasts or link-local multicasts. That type of traffic always stays within the Layer 2 network in question, and does not (and should not) be forwarded by routers.

If you want your wireless infrastructure to act as an extension of your existing cabled network, you will have to create a bridge.
 
  


Reply


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
Wireless clients are not able to ping each other when connected to an Access Point nakul Linux - Wireless Networking 0 10-08-2012 03:18 AM
ping via WLAN and Access Point lpoorman Linux - Wireless Networking 11 05-19-2006 12:37 PM
Linksys WUSB11 v2.6 - Able to ping Access point but nothing beyond shepper Slackware 8 03-25-2005 03:25 AM
wirless access point ping test? richiehawtin Linux - Wireless Networking 1 08-27-2004 12:51 AM
not able to ping from my wireless card to my access point tonybhullar Linux - Wireless Networking 0 03-05-2003 03:56 PM

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

All times are GMT -5. The time now is 07:47 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