Title: airbase-ng soft-ap does not work because of high amount of tcp retransmission
--------
UPDATE 27-Jan-2015:
that's a known issue:
http://forum.aircrack-ng.org/index.php/topic,387.0.html
http://trac.aircrack-ng.org/ticket/1252
Hello
I'm using Kali Linux 64 bit 1.0.9a (latest stable) on VmWare Player 7.0.0 on Windows 7 Pro on a i7-3930 desktop PC with 16Gb of ram.
Also i use USB Wifi adapter TP-Link TL-WN722N on Atheros AR9271 chip.
So after i've started soft-ap with airbase-ng and connect my phone (htc one m7) - my internet connection on the phone is too slow for anything. Cant load google.com or something else in a browser.
But if i use hostapd application on wlan interface all work fine.
I opened wireshark and there are a lot of TCP Retransmission messages in there.
Can somebody help me to fix that issue?
Thanks for help in advance.
DEBUG INFO
-----------------
i use these scripts to start soft-ap
1) to start soft-ap
Code:
#!/bin/bash
set -x
IF_WLAN=wlan2
IF_MON=mon0
IF_ETH=eth0
IF_AT=at0
killall dhclient NetworkManager wpa_supplicant
sleep 1
ifconfig $IF_MON
if [ "$?" -ne "0" ]
then
airmon-ng start $IF_WLAN
fi
airbase-ng -c 6 --essid Printer $IF_MON
2) to start dhcp+iptables
Code:
#!/bin/bash
set -x
IF_WLAN=wlan2
IF_MON=mon0
IF_ETH=eth0
IF_AT=at0
ifconfig $IF_AT up 10.0.0.1 netmask 255.255.255.0
sleep 1
killall dhcpd
sleep 1
if [ "$(ps -e | grep dhcpd)" == "" ]
then
dhcpd -cf ./dhcp.conf $IF_AT &
sleep 1
fi
iptables --flush
iptables --table nat --flush
iptables --delete-chain
iptables --table nat --delete-chain
iptables --table nat --append POSTROUTING -o $IF_ETH -j MASQUERADE
iptables --append FORWARD -i $IF_AT -j ACCEPT
iptables --append FORWARD -o $IF_AT -j ACCEPT
iptables --append FORWARD -i $IF_ETH -j ACCEPT
iptables --append FORWARD -o $IF_ETH -j ACCEPT
sysctl -w net.ipv4.ip_forward=1
3) dhcp.conf
Code:
ddns-update-style none;
ignore client-updates;
authoritative;
option local-wpad code 252 = text;
subnet 10.0.0.0 netmask 255.255.255.0 {
option routers 10.0.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 10.0.0.255;
option domain-name-servers 8.8.8.8, 8.8.4.4;
option time-offset 0;
range 10.0.0.3 10.0.0.13;
default-lease-time 1209600;
max-lease-time 1814400;
}
Screenshots
------------------
1. a lot of TCP Retransmission packets - http://c2n.me/3bdPPMj.png
2. running first script - http://c2n.me/3bdQ2Jr.png
3. running second script - http://c2n.me/3bdQqqI.png
4. a lot of TX dropped packets on iface AT0 - http://c2n.me/3bdQwLZ.png
5. a lot of TCP Retransmission packets on iface ETH0 - http://c2n.me/3bdTxP3.png
6. no dropped packets on iface AT0 after i've raised up txqueuelen on that interface - http://c2n.me/3bdVTSx.png
but it didn't help - still tcp retransmission
7. detected usb wifi adapter after it has been connected - http://c2n.me/3bdWYnN.png
8. a lot of TCP Retransmission packates on iface MON0 - http://c2n.me/3bdXPXg.png and http://c2n.me/3bdY40f.png