Nie jesteś zalogowany.
Jeśli nie posiadasz konta, zarejestruj je już teraz! Pozwoli Ci ono w pełni korzystać z naszego serwisu. Spamerom dziękujemy!

Ogłoszenie

Prosimy o pomoc dla małej Julki — przekaż 1% podatku na Fundacji Dzieciom zdazyć z Pomocą.
Więcej informacji na dug.net.pl/pomagamy/.

#1  2012-10-20 10:20:38

  rezneckuss - Nowy użytkownik

rezneckuss
Nowy użytkownik
Zarejestrowany: 2012-10-20

[SOLVED] hostapd problem

Witam
Mam router na Debianie który przez wifi daje neta na kolka komputerów w domu, no i niby wszystko pięknie i ładnie działa na komputerach ale gdy np podpinam się do sieci przez telefon to net prawie nie działa...
gdy pinguje z routera telefon to pingi wyglądają mniej więcej tak:

Kod:

64 bytes from 192.168.3.132: icmp_req=1481 ttl=64 time=2.54 ms
64 bytes from 192.168.3.132: icmp_req=1526 ttl=64 time=1020 ms
64 bytes from 192.168.3.132: icmp_req=1527 ttl=64 time=14.0 ms
64 bytes from 192.168.3.132: icmp_req=1530 ttl=64 time=4.03 ms
64 bytes from 192.168.3.132: icmp_req=1531 ttl=64 time=1.95 ms
From 192.168.3.1 icmp_seq=1578 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1579 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1580 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1584 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1586 Destination Host Unreachable
64 bytes from 192.168.3.132: icmp_req=1590 ttl=64 time=3.99 ms
From 192.168.3.1 icmp_seq=1635 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1636 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1637 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1638 Destination Host Unreachable
From 192.168.3.1 icmp_seq=1639 Destination Host Unreachable

szukałem rozwiązania i im bardziej szukam tym bardziej jestem w lesie. Wczoraj np gdzieś doczytałem że problem nie leży w sieci a w sterowniku wifi z androida, ale to bez sensu bo telefon z windowsem czy iPhone podpięty do tej sieci zachowuje się identycznie. Miał ktoś z was podobny problem? Może ktoś coś podpowiedzieć?

Kilka dodatkowych informacji:
uname -a

Kod:

Linux debian 3.2.0-3-686-pae #1 SMP Mon Jul 23 03:50:34 UTC 2012 i686 GNU/Linux

ifconfig

Kod:

eth0      Link encap:Ethernet  HWaddr 48:5b:39:3a:a2:bc  
          inet addr:XX.XX.XX.XX  Bcast:90.156.55.255  Mask:255.255.248.0
          inet6 addr: fe80::4a5b:39ff:fe3a:a2bc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3219646 errors:0 dropped:0 overruns:0 frame:0
          TX packets:873242 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:2338530554 (2.1 GiB)  TX bytes:97792512 (93.2 MiB)
          Interrupt:40 Base address:0xc000 

eth1      Link encap:Ethernet  HWaddr 00:0e:c6:f0:2f:fa  
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:c6ff:fef0:2ffa/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:9490 (9.2 KiB)

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:261744 errors:0 dropped:0 overruns:0 frame:0
          TX packets:261744 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:15252913 (14.5 MiB)  TX bytes:15252913 (14.5 MiB)

mon.wlan0 Link encap:UNSPEC  HWaddr 1C-4B-D6-BA-B8-D4-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:367 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:56845 (55.5 KiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 1c:4b:d6:ba:b8:d4  
          inet addr:192.168.3.1  Bcast:192.168.3.255  Mask:255.255.255.0
          inet6 addr: fe80::1e4b:d6ff:feba:b8d4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:510075 errors:0 dropped:0 overruns:0 frame:0
          TX packets:990267 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:41025443 (39.1 MiB)  TX bytes:1408271637 (1.3 GiB)

/etc/hostapd/hostapd.conf

Kod:

interface=wlan0
#bridge=br0
driver=nl80211
ssid=test1
channel=5
hw_mode=g
# 1=open auth, 2=shared key, 3=both
auth_algs=3

# Static WEP key configuration
#wep_default_key=0
#wep_key0=mykey

# # Static WPA2 key configuration
# #1=wpa1, 2=wpa2, 3=both
wpa=1
wpa_passphrase=blablabla
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
# #this can create problem with Windows clients, just leave it commented
# rsn_pairwise=CCMP

#MAC address filtering
macaddr_acl=0
#enables/disables broadcasting the ssid
ignore_broadcast_ssid=0
# Needed for Windows clients
eapol_key_index_workaround=0

# Create a socket to control hostapd through hostapd_cli 
ctrl_interface=/var/run/hostapd
# Only root can configure  hostapd
ctrl_interface_group=0

lsmod

Kod:

Module                  Size  Used by
ext3                  138190  1 
jbd                    47281  1 ext3
sha256_generic         16709  2 
cryptd                 14125  0 
aes_i586               16608  8 
aes_generic            32970  1 aes_i586
cbc                    12666  4 
8021q                  18747  0 
garp                   13025  1 8021q
stp                    12368  1 garp
ipt_MASQUERADE         12530  1 
xt_limit               12484  3 
xt_pkttype             12395  1 
xt_tcpudp              12506  26 
xt_state               12455  7 
ipt_LOG                12533  13 
iptable_mangle         12488  0 
iptable_nat            12800  1 
iptable_filter         12488  1 
nf_conntrack_irc       12395  0 
nf_nat_ftp             12420  0 
nf_conntrack_ftp       12533  1 nf_nat_ftp
nf_nat                 17924  3 nf_nat_ftp,iptable_nat,ipt_MASQUERADE
nf_conntrack_ipv4      13726  10 nf_nat,iptable_nat
nf_defrag_ipv4         12443  1 nf_conntrack_ipv4
nf_conntrack           43121  8 nf_conntrack_ipv4,nf_nat,nf_conntrack_ftp,nf_nat_ftp,nf_conntrack_irc,iptable_nat,xt_state,ipt_MASQUERADE
ip_tables              17079  3 iptable_filter,iptable_nat,iptable_mangle
x_tables               18121  10 ip_tables,iptable_filter,iptable_nat,iptable_mangle,ipt_LOG,xt_state,xt_tcpudp,xt_pkttype,xt_limit,ipt_MASQUERADE
fuse                   52153  1 
nfsd                  173714  2 
nfs                   265779  0 
nfs_acl                12463  2 nfs,nfsd
auth_rpcgss            32143  2 nfs,nfsd
fscache                31978  1 nfs
lockd                  57255  2 nfs,nfsd
sunrpc                143853  6 lockd,auth_rpcgss,nfs_acl,nfs,nfsd
loop                   17810  0 
dm_crypt               18039  1 
dm_mod                 57278  3 dm_crypt
nvidia              10183049  168 
snd_hda_codec_hdmi     26319  1 
snd_hda_codec_realtek   142221  1 
arc4                   12418  2 
asix                   17724  0 
usbnet                 17699  1 asix
ath9k                  67776  0 
ath9k_common           12648  1 ath9k
ath9k_hw              311354  2 ath9k_common,ath9k
ath                    17114  3 ath9k_hw,ath9k_common,ath9k
mac80211              171359  1 ath9k
cfg80211              117454  3 mac80211,ath,ath9k
eeepc_wmi              12508  0 
asus_wmi               18278  1 eeepc_wmi
sparse_keymap          12680  1 asus_wmi
rfkill                 18516  3 asus_wmi,cfg80211
i2c_nforce2            12520  0 
snd_hda_intel          21856  2 
pcspkr                 12515  0 
evdev                  17225  12 
i2c_core               19116  2 i2c_nforce2,nvidia
snd_hda_codec          63477  3 snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
snd_hwdep              12943  1 snd_hda_codec
snd_pcm                53390  4 snd_hda_codec,snd_hda_intel,snd_hda_codec_hdmi
snd_page_alloc         12867  2 snd_pcm,snd_hda_intel
psmouse                54927  0 
serio_raw              12803  0 
shpchp                 26717  0 
snd_seq                39487  0 
snd_seq_device         13016  1 snd_seq
snd_timer              22356  3 snd_seq,snd_pcm
snd                    42691  11 snd_timer,snd_seq_device,snd_seq,snd_pcm,snd_hwdep,snd_hda_codec,snd_hda_intel,snd_hda_codec_realtek,snd_hda_codec_hdmi
soundcore              12921  1 snd
coretemp               12770  0 
asus_atk0110           17113  0 
processor              27565  0 
button                 12817  0 
thermal_sys            17752  1 processor
wmi                    13051  1 asus_wmi
usb_storage            35142  0 
uas                    13096  0 
ext4                  302665  2 
crc16                  12327  1 ext4
jbd2                   52246  1 ext4
mbcache                12897  2 ext4,ext3
hid_logitech_dj        12991  0 
usbhid                 31523  1 hid_logitech_dj
hid                    60120  2 usbhid,hid_logitech_dj
sg                     21476  0 
sd_mod                 35425  5 
crc_t10dif             12332  1 sd_mod
ahci                   20821  4 
libahci                18308  1 ahci
libata                124981  2 libahci,ahci
xhci_hcd               63573  0 
scsi_mod              135124  5 libata,sd_mod,sg,uas,usb_storage
r8169                  41810  0 
mii                    12595  3 r8169,usbnet,asix
ohci_hcd               22059  0 
ehci_hcd               35509  0 
usbcore               104352  9 ehci_hcd,ohci_hcd,xhci_hcd,usbhid,uas,usb_storage,usbnet,asix
usb_common             12338  1 usbcore

lspci

Kod:

00:00.0 Host bridge: NVIDIA Corporation MCP79 Host Bridge (rev b1)
00:00.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.0 ISA bridge: NVIDIA Corporation MCP79 LPC Bridge (rev b2)
00:03.1 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.2 SMBus: NVIDIA Corporation MCP79 SMBus (rev b1)
00:03.3 RAM memory: NVIDIA Corporation MCP79 Memory Controller (rev b1)
00:03.5 Co-processor: NVIDIA Corporation MCP79 Co-processor (rev b1)
00:04.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:04.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:06.0 USB controller: NVIDIA Corporation MCP79 OHCI USB 1.1 Controller (rev b1)
00:06.1 USB controller: NVIDIA Corporation MCP79 EHCI USB 2.0 Controller (rev b1)
00:08.0 Audio device: NVIDIA Corporation MCP79 High Definition Audio (rev b1)
00:09.0 PCI bridge: NVIDIA Corporation MCP79 PCI Bridge (rev b1)
00:0b.0 SATA controller: NVIDIA Corporation MCP79 AHCI Controller (rev b1)
00:10.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:15.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:16.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
00:18.0 PCI bridge: NVIDIA Corporation MCP79 PCI Express Bridge (rev b1)
02:00.0 VGA compatible controller: NVIDIA Corporation ION VGA (rev b1)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
04:00.0 Network controller: Atheros Communications Inc. AR9285 Wireless Network Adapter (PCI-Express) (rev 01)
05:00.0 USB controller: NEC Corporation uPD720200 USB 3.0 Host Controller (rev 03)

z góry dzięki za wszelkie podpowiedzi

Ostatnio edytowany przez rezneckuss (2012-10-20 12:48:29)

Offline

 

#2  2012-10-20 12:47:09

  rezneckuss - Nowy użytkownik

rezneckuss
Nowy użytkownik
Zarejestrowany: 2012-10-20

Re: [SOLVED] hostapd problem

Problem rozwiązany ;-)
okazuje się że mój android słabo się dogaduje z wpa1, wyłączyłem dla testów szyfrowanie i wszystko zaczęło śmigać, no to pobawiłem się trochę z szyfrowaniem i po ustawieniu wpa2 teraz jest idealnie ;)

Offline

 

Stopka forum

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson
Możesz wyłączyć AdBlock — tu nie ma reklam ;-)