Results 1 to 4 of 4

Thread: airbase-ng soft-ap does not work because of high amount of tcp retransmission

  1. #1
    Join Date
    2015-Jan
    Posts
    3

    airbase-ng soft-ap does not work because of high amount of tcp retransmission

    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
    Last edited by altex; 2015-01-27 at 18:47.

  2. #2
    Join Date
    2013-Jul
    Posts
    844
    The author of Pwnstar9.0 in his script suggests this site. Here is the updated link. See if any of the coding helps you?


    http://simple-and-hot.blogspot.com/2...-yourself.html

    MTeams

  3. #3
    Join Date
    2015-Jan
    Posts
    3
    Quote Originally Posted by mmusket33 View Post
    The author of Pwnstar9.0 in his script suggests this site. Here is the updated link. See if any of the coding helps you?


    http://simple-and-hot.blogspot.com/2...-yourself.html

    MTeams
    Thank you for the reply, but the solution in the http://simple-and-hot.blogspot.com/2...-yourself.html is not related to my issue in any way. I've wrote these scripts my-self only to help people to reproduce this issue, but the issue is not related to any scripts.

  4. #4
    Join Date
    2015-Jan
    Posts
    3
    that's a known issue: http://forum.aircrack-ng.org/index.php/topic,387.0.html
    not sure if it's a good or bad news

Similar Threads

  1. Replies: 0
    Last Post: 2015-05-07, 15:03
  2. Replies: 3
    Last Post: 2013-04-01, 20:19
  3. [Q] automatic logout after X amount of time
    By Noosrah in forum General Archive
    Replies: 1
    Last Post: 2013-03-30, 10:12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •