Quantcast
Channel: Ubuntu Forums - Networking & Wireless
Viewing all 23300 articles
Browse latest View live

[all variants] troubleshooting network run by x2go

$
0
0
I have setup a network that is using x2goserver and x2goclient, with SSH tunneling. I've had to learn a lot of new things to understand the processes involve with networking. I've read a lot about network setups and there are many good tutorials online that have helped me. But there are a number of questions / bugs in my system that I need to work out, and I have been unable to find the answers.

Some are specific to x2go, and others are more general. For instance, my first question is:
It appears that when I shut down the server remotely, the session does not terminate properly. Is there something specific that I need to setup on the server so that the client will consider it a "proper" termination, as I get error messages from the client when I try to connect the client to the server. (Let me briefly describe what I do and what happens during this process: While my client is connected to the server - which is running xfce - I just logout by clicking on the shutdown button. The server desktop disappears from view, but the x2gp window-frame stays open. The window does not close even after the server has powered-off. I have to go into x2goclient window and terminate the session manually or close the x2goclient window -- which closed the x2goserver window-title/frame.)

Another question that I have is: I have not been able to get file sharing working, what can I try to troubleshoot this issue? I'm thinking that this problem has multiple issues, because I know that I need a port open to allow file sharing -- but allowing all incoming (only tried briefly) does not solve this problem. I'm not clear if file sharing would also use the SSH tunnel.

One last, very annoying and worrysome problem: When terminating a session, about 10% of the time, my client computer will seize. No keystrokes will work, so I have to do a hard-boot with the power button. I'm hoping that this might be related to my first question...

There are a few more questions, but if I get these two problems solved it would solve the majority of my networking issues.

- Tim

Weak/Unuseable wifi for Realtek RTL8723BE on Ubuntu 14.04.03

$
0
0
If you've seen me previously, I'm back (sorry). I had this issue with Linux Mint, Ubuntu 15.04, and now 14.04. I'm desperate to get it cleared up.

Problem: I've got the troublesome Realtek RTL8723BE default wifi driver and it's downright awful. Barely detects available wifi connections and can't hold a connection faster than 56k speeds for longer than 5 minutes. I've been doing tons of research online and trying anything I can find but I'm essentially just grabbing at bits of disconnected info without knowing whether or not it's the proper advice for my system. I'm adding a list of recent troubleshooting attempts, as well as the output of a text file detailing all of my wifi specs.

Here are my attempts:

Code:

Updated the system per http://ubuntuforums.org/showthread.php?t=370108:
sudo apt-get update
sudo apt-get dist-upgrade

Check "Software & Updates" under "Additional Drivers" to see if there is a radio box with which I can select proprietary drivers (there were none).


Messed with the wifi settings, set nameservers in your /etc/resolv.conf per http://ubuntuforums.org/showthread.php?t=2285819&highlight=rtl8723be%2Cwireless :
echo "options rtl8723be swenc=1 fwlps=0 ips=0" | sudo tee /etc/modprobe.d/rtl8723be.conf
echo -e "nameserver 8.8.8.8\nnameserver 8.8.4.4" | sudo tee -a /etc/resolv.conf
sudo service network-manager restart

Set the IPv6 settings to 'ignore'

Install another drive with:
sudo apt-get install r8168-dkms
(this last bit threw up a system error)

I ran the following in order to obtain system info:
Code:

wget -N -t 5 -T 10 https://github.com/UbuntuForums/wireless-info/raw/master/wireless-info && \
chmod +x wireless-info && \
./wireless-info

Here is the output (some personal and otherwise unhelpful info redacted):
Code:


########## wireless info START ##########

Report from: 09 Aug 2015 11:42 AKDT -0800

Booted last: 09 Aug 2015 11:24 AKDT -0800

Script from: 14 Jul 2015 17:04 UTC +0000

##### release ###########################

Distributor ID:        Ubuntu
Description:        Ubuntu 14.04.3 LTS
Release:        14.04
Codename:        trusty

##### kernel ############################

Linux 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

Ubuntu

##### lspci #############################

02:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8723BE PCIe Wireless Network Adapter [10ec:b723]
        Subsystem: Hewlett-Packard Company Device [103c:804c]
        Kernel driver in use: rtl8723be

03:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller [10ec:8136] (rev 07)
        Subsystem: Hewlett-Packard Company Device [103c:80cc]
        Kernel driver in use: r8169

##### lsusb #############################

Bus 004 Device 003: ID 064e:930b Suyin Corp.
Bus 004 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 003: ID 0bda:b006 Realtek Semiconductor Corp.
Bus 003 Device 002: ID 0438:7900 Advanced Micro Devices, Inc.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: no

##### lsmod #############################

hp_wmi                16384  0
sparse_keymap          16384  1 hp_wmi
rtl8723be              90112  0
btcoexist              53248  1 rtl8723be
rtl8723_common        24576  1 rtl8723be
rtl_pci                28672  1 rtl8723be
rtlwifi                73728  2 rtl_pci,rtl8723be
mac80211              708608  3 rtl_pci,rtlwifi,rtl8723be
cfg80211              524288  2 mac80211,rtlwifi
wmi                    20480  1 hp_wmi

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0      Link encap:Ethernet  HWaddr <MAC 'eth0' [IF]> 
          inet addr:192.168.1.111  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::<IP6 'eth0' [IF]>/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:12674 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9534 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13869445 (13.8 MB)  TX bytes:1161671 (1.1 MB)

wlan0    Link encap:Ethernet  HWaddr <MAC 'wlan0' [IF]> 
          UP BROADCAST 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)

##### iwconfig ##########################

eth0      no wireless extensions.

lo        no wireless extensions.

wlan0    IEEE 802.11bgn  ESSID:off/any 
          Mode:Managed  Access Point: Not-Associated  Tx-Power=20 dBm 
          Retry short limit:7  RTS thr=2347 B  Fragment thr:off
          Power Management:off
         

##### route #############################

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
0.0.0.0        192.168.1.1    0.0.0.0        UG    0      0        0 eth0
192.168.1.0    0.0.0.0        255.255.255.0  U    1      0        0 eth0

##### resolv.conf #######################

nameserver 127.0.1.1
search [REDACTED]

##### network managers ##################

Installed:

        NetworkManager

Running:

root      950    1  0 11:23 ?        00:00:00 NetworkManager

##### NetworkManager info ###############

NetworkManager Tool

State: connected (global)

- Device: eth0  [Wired connection 1] -------------------------------------------
  Type:              Wired
  Driver:            r8169
  State:            connected
  Default:          yes
  HW Address:        <MAC 'eth0' [IF]>

  Capabilities:
    Carrier Detect:  yes
    Speed:          100 Mb/s

  Wired Properties
    Carrier:        on

  IPv4 Settings:
    Address:        192.168.1.111
    Prefix:          24 (255.255.255.0)
    Gateway:        192.168.1.1

    DNS:            [REDACTED]
    DNS:            [REDACTED]
    DNS:            192.168.1.1

- Device: wlan0 ----------------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            rtl8723be
  State:            disconnected
  Default:          no
  HW Address:        <MAC 'wlan0' [IF]>

  Capabilities:

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/[REDACTED]]] (600 root)
[connection] id=[REDACTED] | type=802-11-wireless
[802-11-wireless] ssid=[REDACTED] | mac-address=<MAC 'wlan0' [IF]>
[ipv4] method=auto
[ipv6] method=auto

##### iw reg get ########################

Region: America/[REDACTED] (based on set time zone)

country 00:
        (2402 - 2472 @ 40), (3, 20)
        (2457 - 2482 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
        (2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
        (5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
        (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS

##### iwlist channels ###################

eth0      no frequency information.

lo        no frequency information.

wlan0    13 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Channel 12 : 2.467 GHz
          Channel 13 : 2.472 GHz

##### iwlist scan #######################

eth0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

wlan0    No scan results

##### module infos ######################

[rtl8723be]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtl8723be/rtl8723be.ko
firmware:      rtlwifi/rtl8723befw.bin
description:    Realtek 8723BE 802.11n PCI wireless
license:        GPL
author:        Realtek WlanFAE        <wlanfae@realtek.com>
author:        PageHe        <page_he@realsil.com.cn>
srcversion:    5D113E08097276ABF2EF3C6
depends:        rtlwifi,rtl8723-common,rtl_pci,btcoexist,mac80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512
parm:          swlps:bool
parm:          swenc:using hardware crypto (default 0 [hardware])
 (bool)
parm:          ips:using no link power save (default 1 is open)
 (bool)
parm:          fwlps:using linked fw control power save (default 1 is open)
 (bool)
parm:          msi:Set to 1 to use MSI interrupts mode (default 0)

parm:          debug:Set debug level (0-5) (default 0) (int)
parm:          disable_watchdog:Set to 1 to disable the watchdog (default 0)
 (bool)

[rtl8723_common]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtl8723com/rtl8723-common.ko
description:    Realtek RTL8723AE/RTL8723BE 802.11n PCI wireless common routines
license:        GPL
author:        Larry Finger        <Larry.Finger@lwfinger.net>
author:        Realtek WlanFAE        <wlanfae@realtek.com>
srcversion:    251C540A2D3AD38CCA85ED9
depends:       
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512

[rtl_pci]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtl_pci.ko
description:    PCI basic driver for rtlwifi
license:        GPL
author:        Larry Finger        <Larry.FInger@lwfinger.net>
author:        Realtek WlanFAE        <wlanfae@realtek.com>
author:        lizhaoming        <chaoming_li@realsil.com.cn>
srcversion:    A25DC6D8C53D55DA133BC49
depends:        mac80211,rtlwifi
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512

[rtlwifi]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtlwifi.ko
description:    Realtek 802.11n PCI wireless core
license:        GPL
author:        Larry Finger        <Larry.FInger@lwfinger.net>
author:        Realtek WlanFAE        <wlanfae@realtek.com>
author:        lizhaoming        <chaoming_li@realsil.com.cn>
srcversion:    35016235A31CEB1854418E1
depends:        mac80211,cfg80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512

[mac80211]
filename:      /lib/modules/3.19.0-25-generic/kernel/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
srcversion:    B23264F074A7D27F8B691A2
depends:        cfg80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512
parm:          minstrel_vht_only:Use only VHT rates when VHT is supported by sta. (bool)
parm:          max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:          max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:          beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm:          probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm:          ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[cfg80211]
filename:      /lib/modules/3.19.0-25-generic/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:        Johannes Berg
srcversion:    E61EB836E1B33C2A2918485
depends:       
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512
parm:          ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:          cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[rtl8723be]
debug: 0
disable_watchdog: N
fwlps: Y
ips: Y
swenc: N
swlps: N

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
minstrel_vht_only: Y
probe_wait_ms: 500

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

lp
rtc

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf]
remove iwlwifi \
(/sbin/lsmod | grep -o -e ^iwlmvm -e ^iwldvm -e ^iwlwifi | xargs /sbin/rmmod) \
&& /sbin/modprobe -r mac80211

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x10ec:0x8136 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'eth0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0xb723 (rtl8723be)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'wlan0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

##### dmesg #############################

[  21.015719] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready

########## wireless info END ############

Are there any gurus willing to take a look and see if they can suss out the problem? I'm about ready to pull my hair out. Are there any relevant, proprietary drivers which are better than the default that I can install which will not throw up a system error? Apologies if they're easy to find, I'm a rookie and perusing github is like looking at an alien dialect.

Realtek Ethernet driver

$
0
0
I haven't been able to find any working guides online so I decided to ask. I downloaded the driver from Realtek and I have it on my usb. How do I install it. (btw I cant use the internet on Ubuntu yet because I need the driver. Which is wat im trying to do)

Ubuntu Server 14.04.3 wireless fails

$
0
0
I want to do some testing of Ubuntu Server 14.04.3, so I tried to install it on my HP G62 laptop. However, it refuses to proceed past network setup, and claims it can not connect to my router.

I have a dozen devices in my home connected to my router, so I'm pretty sure I know what the SSID and WPA key are.

Xubuntu 14.04 installed on the same configuration with no problems.

Any suggestions are welcome.

Wifi and Ethernet non functional after bad Xubuntu update

$
0
0
I'm running Xubuntu 14.04, since an update 3 weeks ago I haven't been able to get online. No wifi and no ethernet. (FYI, I'm running dual boot Xubuntu 14.04 / Windows XP Professional SP3 on a Dell Inspiron 1525.)

I'm not seeing anyway to even make the text file executable. What the heck am I missing? So, maybe once I figure out how to run the script, I'll be able to figure everything else out.

I ran an update over 3 weeks ago, I'm not sure what happened, but it didn't download properly. I got a warning letting me know that some files were corrupted in the download. Since that point in time, my wireless has stopped working. Earlier this week I finally had the chance to test the ethernet connection, and discovered that wasn't working, either. To rule out a hardware issue I booted into Windows XP Pro. Ethernet and wireless both worked just fine while running Windows XP Pro, so not a hardware issue. I feel that if I could get a clean update of Xubuntu, I'd be just fine. I think the bad/corrupted files are the cause of my issue.

When I say ethernet isn't working, I mean that the link light doesn't even come on when plugging the cable into the computer directly from the modem. When running Windows, the link light does come on.

What can I do to get the ethernet back up and running so I can run updates?

Thank you so much for helping me. (I find screen shots very helpful.)

install rtl8812AU_8821AU_linux on ubuntu

Wireless N speed limited to 65mbps

$
0
0
I have an Intel Advanced-N 6235 chip. Intel's webpage for the chip says it can go 300mbps. My router's configuration page says it goes up to 130 mbps - exactly double the speed of what I'm getting. Meaning my wireless chip is running at half speed.

So how can I get my network card to run at full speed? Anyone know where I can find info on low level wireless settings?

I can't connect to my wifi

$
0
0
Hello everyone.

I recently installed Lubuntu in my computer, and when i to try to my wifi connection i can connect but the connection stays loading a lot of time and i cant connect, only load.

when i click on the icon of connections, i get this message: Requesting a wifi network adress for " WLAN_" ...

in windows 10 i can connect, but in lubuntu i cant, i dont know why, i need help.

My pci card is Realtek RTL8187B


PS Sorry for my bad english :(

[ubuntu] Issues with custom IDS

$
0
0
Hey,

I would like your help to an issue I have with a custom IDS system that I found in the link below.
My problem is that when I echo the Array with the current connected IPs I take this output;

is
is
is

And not the actual IPs.

I am thinking maybe I should use printf instead of echo but still no results.
The program is working quite good so I suppose that the arrays have the Real IPs and echoing them is the issue!

Thanks in advance

Edit:This bash files was tested in Debian Squeeze and Debian Sid from the Creator.I want to use it in Ubuntu...

code below:
Code:

#!/bin/bash

# Interupt and Exit Function
control_c()
{
  clear
  echo -e "Would you like to block connections with a client?\n"
  echo -e "Enter y or n: "
  read yn

    if [ "$yn" == "y" ]; then

      echo -e "\nEnter Ip Address to Block: \n"
      read ip

                if [ -n $ip ]; then

                        echo -e "\nNow retrieving mac address to block...\n"
                        ping -c 1 $ip > /dev/null
                        mac=`arp $ip | grep ether | awk '{ print $3 }'`

                        if [ -z $mac ]; then
                                clear
                                echo -e "\n***Client does not exist or is no longer\
                                        on this network***"
                                echo -e "\nSkipping action and resuming monitoring.\n\n"
                                sleep 2
                                bash leecher.sh
                                exit 0

                        else
                                iptables -A INPUT -m mac --mac-source $mac -j DROP
                                clear
                                echo -e "\nClient with mac address $mac is now\
                                          blocked.\n"
                                echo -e "We will continue monitoring for changes\
                                        in clients\n\n"
                                sleep 2
                                bash leecher.sh
                                exit 0
                        fi
                fi


    else
          clear
          echo -e "\n\nLeecher has exited\n\n"
          setterm -cursor on
          rm -f $pid
          exit 0
    fi
}

# Print the scan from the engine()
twice(){
  g=0
  len=${#second[@]}
  for (( g = 0; g < $len; g++ ));
  do
      echo -e "${second[$g]}\n"
  done
}

# If there's a change in the network, ask to block ips.
interupt(){
  clear
  echo -e "\nList of Clients has Changed!\n"
  twice
  echo -e '\a'
  echo -e "Would you like to block connections with a client?\n"
  echo -e "Enter y or n: "
  read yn

  if [ "$yn" == "y" ]; then

      echo -e "\nEnter Ip Address to Block: \n"
      read ip
                if [ -n $ip ]; then
                        ping -c 1 $ip > /dev/null
                        mac=`arp $ip | grep ether | awk '{ print $3 }'`

                        if [ -z $mac ]; then
                                clear
                                echo -e "\n***Client does not exist or is no longer on\
                                        this network***"
                                echo -e "\nSkipping action and resuming monitoring.\n\n"
                        else
                                iptables -A INPUT -m mac --mac-source $mac -j DROP
                                clear
                                echo -e "\nClient with mac address $mac is now blocked.\n"
                                echo -e "We will continue monitoring for changes\
                                        in clients\n\n"
                                echo -e "Current clients are: \n"
                                twice
                                echo -e "\nResuming monitoring..."
                        fi
                fi
    else
          clear
          echo -e "Current clients are: \n"
          twice
          echo -e "Resuming monitoring..."
    fi
}

# Function to keep monitoring for any changes
engine()
{
        # Scan networks again for comparison of changes.
        for subnet in $(/sbin/ifconfig | awk '/inet addr/ && !/127.0.0.1/ && !a[$2]++\
                        {print substr($2,6)}')
        do
                  second+=( "$(nmap -sP ${subnet%.*}.0/24 | awk 'index($0,t)\
                  { print $i }' t="$t" i="$i" )" )
                  sleep 1
        done
}

# Make sure user is logged in as root
if [[ $EUID -ne 0 ]]; then
  echo "This script must be run as root" 1>&2
  exit 1
fi

# Check if nmap is installed
ifnmap=`type -p nmap`
        if [ -z $ifnmap ]; then

                echo -e "\n\nNmap must be installed for this program to work\n"
                echo -e "Only Nmap 5.00 and 5.21 are supported at this time\n"
                echo -e "Please install and try again"
                exit 0
        fi

clear
echo -e "\nNow finding clients on your local network(s)"
echo -e "Press Control-C at any time to block additional clients or exit\n"


# Remove temp files on exit and allow Control-C to exit.
trap control_c SIGINT

# Turn off cursor
setterm -cursor off

# Make some arrays and variables
declare -a first
declare -a second
sid=5.21

# Check for which version of nmap
if [ 5.21 = $(nmap --version | awk '/Nmap/ { print $3 }') ]; then
    i=5  t=report
else
    i=2  t=Host
fi

# Get ip's from interfaces and run the first scan
for subnet in $(/sbin/ifconfig | awk '/inet addr/ && !/127.0.0.1/ && !a[$2]++ {print \
                substr($2,6)}')
do
          first+=( "$(nmap -sP ${subnet%.*}.0/24 | awk 'index($0,t) { print $i }' \
                  t="$t" i="$i" )" )
          sleep 1
done

                echo -e "Current clients are: \n"

                        #Display array elements and add new lines
                        e=0
                        len=${#first[@]}
                        for (( e = 0; e < $len; e++ ));
                        do
                                echo -e "${first[$e]}\n"
                        done

                echo -e "Leecher is now monitoring for new clients."
                echo -e "\nAny changes with clients will be reported by the system bell."
                echo -e "If bell is not enabled details will log to this console."

# Forever loop to keep monitoring constant
for ((  ;  ; ))
do
        engine

        if [[ ${first[@]} == ${second[@]} ]]; then

                second=( )
        else
                interupt
                sleep 1
                first=( )
                first=("${second[@]}")
                second=( )
        fi

done

Taken from(full documentation) here

[SOLVED] Wifi connection stops working while appearing to be still connected

$
0
0
The issue of my wifi connection dropping out while appearing to still be connected isn't a new issue to me, when I had Ubuntu 14.04 LTS installed the issue appeared and I solved it but I can no longer find the solution I used before. I installed Ubuntu 14.04 Gnome onto my Pc and the wifi issue had popped up again. Below is the the result of the wireless check code found in the sticky on "Before posting in Networking & Wireless."

I really need help with this.

Code:

########## wireless info START ##########

Report from: 10 Aug 2015 19:48 SAST +0200

Booted last: 10 Aug 2015 17:57 SAST +0200

Script from: 14 Jul 2015 17:04 UTC +0000

##### release ###########################

Distributor ID:    Ubuntu
Description:    Ubuntu 14.04.3 LTS
Release:    14.04
Codename:    trusty

##### kernel ############################

Linux 3.19.0-25-generic #26~14.04.1-Ubuntu SMP Fri Jul 24 21:16:20 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

Parameters: ro, quiet, splash, vt.handoff=7

##### desktop ###########################

GNOME

##### lspci #############################

00:19.0 Ethernet controller [0200]: Intel Corporation 82567LM-3 Gigabit Network Connection [8086:10de] (rev 02)
    Subsystem: Hewlett-Packard Company Device [103c:3034]
    Kernel driver in use: e1000e

##### lsusb #############################

Bus 002 Device 002: ID 0bda:8178 Realtek Semiconductor Corp. RTL8192CU 802.11n WLAN Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 002: ID 04d9:a06b Holtek Semiconductor, Inc.
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

##### PCMCIA card info ##################

##### rfkill ############################

0: phy0: Wireless LAN
    Soft blocked: no
    Hard blocked: no

##### lsmod #############################

rtl8192cu              69632  0
rtl_usb                20480  1 rtl8192cu
rtl8192c_common        53248  1 rtl8192cu
rtlwifi                73728  3 rtl_usb,rtl8192c_common,rtl8192cu
mac80211              708608  3 rtl_usb,rtlwifi,rtl8192cu
cfg80211              524288  2 mac80211,rtlwifi
hp_wmi                16384  0
sparse_keymap          16384  1 hp_wmi
wmi                    20480  1 hp_wmi

##### interfaces ########################

auto lo
iface lo inet loopback

##### ifconfig ##########################

eth0      Link encap:Ethernet  HWaddr <MAC 'eth0' [IF]> 
          UP BROADCAST 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)
          Interrupt:19 Memory:f0500000-f0520000

wlan0    Link encap:Ethernet  HWaddr <MAC 'wlan0' [IF]> 
          inet addr:10.0.0.6  Bcast:10.0.0.255  Mask:255.255.255.0
          inet6 addr: fe80::<IP6 'wlan0' [IF]>/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:153720 errors:0 dropped:0 overruns:0 frame:0
          TX packets:106561 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:193674332 (193.6 MB)  TX bytes:11995288 (11.9 MB)

##### iwconfig ##########################

eth0      no wireless extensions.

lo        no wireless extensions.

wlan0    IEEE 802.11bgn  ESSID:"Twifi" 
          Mode:Managed  Frequency:2.462 GHz  Access Point: <MAC 'Twifi' [AC1]> 
          Bit Rate=72.2 Mb/s  Tx-Power=20 dBm 
          Retry short limit:7  RTS thr=2347 B  Fragment thr:off
          Power Management:off
          Link Quality=54/70  Signal level=-56 dBm 
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0  Missed beacon:0

##### route #############################

Kernel IP routing table
Destination    Gateway        Genmask        Flags Metric Ref    Use Iface
0.0.0.0        10.0.0.2        0.0.0.0        UG    0      0        0 wlan0
10.0.0.0        0.0.0.0        255.255.255.0  U    9      0        0 wlan0

##### resolv.conf #######################

nameserver 127.0.1.1

##### network managers ##################

Installed:

    NetworkManager

Running:

root      703    1  0 17:57 ?        00:00:02 NetworkManager

##### NetworkManager info ###############

NetworkManager Tool

State: connected (global)

- Device: wlan0  [Twifi] -------------------------------------------------------
  Type:              802.11 WiFi
  Driver:            rtl8192cu
  State:            connected
  Default:          yes
  HW Address:        <MAC 'wlan0' [IF]>

  Capabilities:
    Speed:          72 Mb/s

  Wireless Properties
    WEP Encryption:  yes
    WPA Encryption:  yes
    WPA2 Encryption: yes

  Wireless Access Points (* = current AP)
    *Twifi:          Infra, <MAC 'Twifi' [AC1]>, Freq 2462 MHz, Rate 54 Mb/s, Strength 63 WPA WPA2

  IPv4 Settings:
    Address:        10.0.0.6
    Prefix:          24 (255.255.255.0)
    Gateway:        10.0.0.2

    DNS:            10.0.0.2

- Device: eth0 -----------------------------------------------------------------
  Type:              Wired
  Driver:            e1000e
  State:            unavailable
  Default:          no
  HW Address:        <MAC 'eth0' [IF]>

  Capabilities:
    Carrier Detect:  yes

  Wired Properties
    Carrier:        off

##### NetworkManager.state ##############

[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=true
WimaxEnabled=true

##### NetworkManager.conf ###############

[main]
plugins=ifupdown,keyfile,ofono
dns=dnsmasq

[ifupdown]
managed=false

##### NetworkManager profiles ###########

[[/etc/NetworkManager/system-connections/Twifi]] (600 root)
[connection] id=Twifi | type=802-11-wireless
[802-11-wireless] ssid=Twifi | mac-address=<MAC 'wlan0' [IF]>
[ipv4] method=auto
[ipv6] method=auto

##### iw reg get ########################

Region: Africa/Johannesburg (based on set time zone)

country 00:
    (2402 - 2472 @ 40), (3, 20)
    (2457 - 2482 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
    (2474 - 2494 @ 20), (3, 20), NO-OFDM, PASSIVE-SCAN, NO-IBSS
    (5170 - 5250 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS
    (5735 - 5835 @ 40), (3, 20), PASSIVE-SCAN, NO-IBSS

##### iwlist channels ###################

eth0      no frequency information.

lo        no frequency information.

wlan0    11 channels in total; available frequencies :
          Channel 01 : 2.412 GHz
          Channel 02 : 2.417 GHz
          Channel 03 : 2.422 GHz
          Channel 04 : 2.427 GHz
          Channel 05 : 2.432 GHz
          Channel 06 : 2.437 GHz
          Channel 07 : 2.442 GHz
          Channel 08 : 2.447 GHz
          Channel 09 : 2.452 GHz
          Channel 10 : 2.457 GHz
          Channel 11 : 2.462 GHz
          Current Frequency:2.462 GHz (Channel 11)

##### iwlist scan #######################

eth0      Interface doesn't support scanning.

lo        Interface doesn't support scanning.

Channel occupancy:

      1  APs on  Frequency:2.462 GHz (Channel 11)

wlan0    Scan completed :
          Cell 01 - Address: <MAC 'Twifi' [AC1]>
                    Channel:11
                    Frequency:2.462 GHz (Channel 11)
                    Quality=54/70  Signal level=-56 dBm 
                    Encryption key:on
                    ESSID:"Twifi"
                    Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 18 Mb/s
                              24 Mb/s; 36 Mb/s; 54 Mb/s
                    Bit Rates:6 Mb/s; 9 Mb/s; 12 Mb/s; 48 Mb/s
                    Mode:Master
                    Extra:tsf=00000004f59a828f
                    Extra: Last beacon: 4ms ago
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (2) : CCMP TKIP
                        Authentication Suites (1) : PSK

##### module infos ######################

[rtl8192cu]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko
firmware:      rtlwifi/rtl8192cufw_TMSC.bin
firmware:      rtlwifi/rtl8192cufw_B.bin
firmware:      rtlwifi/rtl8192cufw_A.bin
firmware:      rtlwifi/rtl8192cufw.bin
description:    Realtek 8192C/8188C 802.11n USB wireless
license:        GPL
author:        Larry Finger    <Larry.Finger@lwfinger.net>
author:        Ziv Huang    <ziv_huang@realtek.com>
author:        Georgia        <georgia@realtek.com>
srcversion:    3E8327A34276F37FFE5A6A8
depends:        rtlwifi,rtl8192c-common,rtl_usb,mac80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512
parm:          swenc:Set to 1 for software crypto (default 0)
 (bool)
parm:          debug:Set debug level (0-5) (default 0) (int)

[rtl_usb]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtl_usb.ko
description:    USB basic driver for rtlwifi
license:        GPL
author:        Larry Finger    <Larry.FInger@lwfinger.net>
author:        Realtek WlanFAE    <wlanfae@realtek.com>
author:        lizhaoming    <chaoming_li@realsil.com.cn>
srcversion:    814A6FB8DBFFB696F45B316
depends:        rtlwifi,mac80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512

[rtl8192c_common]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtl8192c/rtl8192c-common.ko
description:    Realtek 8192C/8188C 802.11n PCI wireless
license:        GPL
author:        Larry Finger    <Larry.Finger@lwfinger.net>
author:        Ziv Huang    <ziv_huang@realtek.com>
author:        Georgia        <georgia@realtek.com>
author:        Realtek WlanFAE    <wlanfae@realtek.com>
author:        lizhaoming    <chaoming_li@realsil.com.cn>
srcversion:    134BAE300AAF914967D6C6C
depends:        rtlwifi
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512

[rtlwifi]
filename:      /lib/modules/3.19.0-25-generic/kernel/drivers/net/wireless/rtlwifi/rtlwifi.ko
description:    Realtek 802.11n PCI wireless core
license:        GPL
author:        Larry Finger    <Larry.FInger@lwfinger.net>
author:        Realtek WlanFAE    <wlanfae@realtek.com>
author:        lizhaoming    <chaoming_li@realsil.com.cn>
srcversion:    35016235A31CEB1854418E1
depends:        mac80211,cfg80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512

[mac80211]
filename:      /lib/modules/3.19.0-25-generic/kernel/net/mac80211/mac80211.ko
license:        GPL
description:    IEEE 802.11 subsystem
srcversion:    B23264F074A7D27F8B691A2
depends:        cfg80211
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512
parm:          minstrel_vht_only:Use only VHT rates when VHT is supported by sta. (bool)
parm:          max_nullfunc_tries:Maximum nullfunc tx tries before disconnecting (reason 4). (int)
parm:          max_probe_tries:Maximum probe tries before disconnecting (reason 4). (int)
parm:          beacon_loss_count:Number of beacon intervals before we decide beacon was lost. (int)
parm:          probe_wait_ms:Maximum time(ms) to wait for probe response before disconnecting (reason 4). (int)
parm:          ieee80211_default_rc_algo:Default rate control algorithm for mac80211 to use (charp)

[cfg80211]
filename:      /lib/modules/3.19.0-25-generic/kernel/net/wireless/cfg80211.ko
description:    wireless configuration support
license:        GPL
author:        Johannes Berg
srcversion:    E61EB836E1B33C2A2918485
depends:       
intree:        Y
vermagic:      3.19.0-25-generic SMP mod_unload modversions
signer:        Magrathea: Glacier signing key
sig_key:        6A:AA:11:D1:8C:2D:3A:40:B1:B4:DB:E5:BF:8A:D6:56:DD:F5:18:38
sig_hashalgo:  sha512
parm:          ieee80211_regdom:IEEE 802.11 regulatory domain code (charp)
parm:          cfg80211_disable_40mhz_24ghz:Disable 40MHz support in the 2.4GHz band (bool)

##### module parameters #################

[rtl8192cu]
debug: 0
swenc: N

[mac80211]
beacon_loss_count: 7
ieee80211_default_rc_algo: minstrel_ht
max_nullfunc_tries: 2
max_probe_tries: 5
minstrel_vht_only: Y
probe_wait_ms: 500

[cfg80211]
cfg80211_disable_40mhz_24ghz: N
ieee80211_regdom: 00

##### /etc/modules ######################

lp
rtc

##### modprobe options ##################

[/etc/modprobe.d/blacklist-ath_pci.conf]
blacklist ath_pci

[/etc/modprobe.d/blacklist.conf]
blacklist evbug
blacklist usbmouse
blacklist usbkbd
blacklist eepro100
blacklist de4x5
blacklist eth1394
blacklist snd_intel8x0m
blacklist snd_aw2
blacklist i2c_i801
blacklist prism54
blacklist bcm43xx
blacklist garmin_gps
blacklist asus_acpi
blacklist snd_pcsp
blacklist pcspkr
blacklist amd76x_edac

[/etc/modprobe.d/blacklist-rare-network.conf]
alias net-pf-3 off
alias net-pf-6 off
alias net-pf-9 off
alias net-pf-11 off
alias net-pf-12 off
alias net-pf-19 off
alias net-pf-21 off
alias net-pf-36 off

[/etc/modprobe.d/iwlwifi.conf]
options iwlwifi 11n_disable=1 wd_disable=1

[/etc/modprobe.d/mlx4.conf]
softdep mlx4_core post: mlx4_en

##### rc.local ##########################

exit 0

##### pm-utils ##########################

##### udev rules ########################

[/etc/udev/rules.d/70-persistent-net.rules]
# PCI device 0x8086:0x10de (e1000e)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'eth0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# USB device 0x:0x (rtl8192cu)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="<MAC 'wlan0' [IF]>", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"

##### dmesg #############################

[ 6069.444501] rtl8192cu: MAC auto ON okay!
[ 6069.480397] rtl8192cu: Tx queue select: 0x05
[ 6069.878588] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6071.316638] wlan0: authenticate with <MAC 'Twifi' [AC1]>
[ 6071.328624] wlan0: send auth to <MAC 'Twifi' [AC1]> (try 1/3)
[ 6071.330658] wlan0: authenticated
[ 6071.332049] wlan0: associate with <MAC 'Twifi' [AC1]> (try 1/3)
[ 6071.363433] wlan0: RX AssocResp from <MAC 'Twifi' [AC1]> (capab=0x411 status=0 aid=1)
[ 6071.364417] wlan0: associated
[ 6071.364468] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 6071.397931] wlan0: deauthenticating from <MAC 'Twifi' [AC1]> by local choice (Reason: 2=PREV_AUTH_NOT_VALID)
[ 6071.410653] wlan0: authenticate with <MAC 'Twifi' [AC1]>
[ 6071.422253] wlan0: send auth to <MAC 'Twifi' [AC1]> (try 1/3)
[ 6071.424286] wlan0: authenticated
[ 6071.428045] wlan0: associate with <MAC 'Twifi' [AC1]> (try 1/3)
[ 6071.433903] wlan0: RX AssocResp from <MAC 'Twifi' [AC1]> (capab=0x411 status=0 aid=1)
[ 6071.434654] wlan0: associated
[ 6387.763791] wlan0: deauthenticating from <MAC 'Twifi' [AC1]> by local choice (Reason: 3=DEAUTH_LEAVING)
[ 6391.348531] rtl8192cu: MAC auto ON okay!
[ 6391.384299] rtl8192cu: Tx queue select: 0x05
[ 6391.779786] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6393.212605] wlan0: authenticate with <MAC 'Twifi' [AC1]>
[ 6393.224890] wlan0: send auth to <MAC 'Twifi' [AC1]> (try 1/3)
[ 6393.230310] wlan0: authenticated
[ 6393.232035] wlan0: associate with <MAC 'Twifi' [AC1]> (try 1/3)
[ 6393.243827] wlan0: RX AssocResp from <MAC 'Twifi' [AC1]> (capab=0x411 status=0 aid=1)
[ 6393.244705] wlan0: associated
[ 6393.244756] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 6393.270241] wlan0: deauthenticating from <MAC 'Twifi' [AC1]> by local choice (Reason: 2=PREV_AUTH_NOT_VALID)
[ 6393.282520] wlan0: authenticate with <MAC 'Twifi' [AC1]>
[ 6393.293800] wlan0: send auth to <MAC 'Twifi' [AC1]> (try 1/3)
[ 6393.306204] wlan0: authenticated
[ 6393.308051] wlan0: associate with <MAC 'Twifi' [AC1]> (try 1/3)
[ 6393.322078] wlan0: RX AssocResp from <MAC 'Twifi' [AC1]> (capab=0x411 status=0 aid=1)
[ 6393.322820] wlan0: associated
[ 6666.389622] wlan0: deauthenticating from <MAC 'Twifi' [AC1]> by local choice (Reason: 3=DEAUTH_LEAVING)
[ 6668.674744] rtl8192cu: MAC auto ON okay!
[ 6668.708376] rtl8192cu: Tx queue select: 0x05
[ 6669.099416] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 6670.564647] wlan0: authenticate with <MAC 'Twifi' [AC1]>
[ 6670.577236] wlan0: send auth to <MAC 'Twifi' [AC1]> (try 1/3)
[ 6670.580527] wlan0: authenticated
[ 6670.584040] wlan0: associate with <MAC 'Twifi' [AC1]> (try 1/3)
[ 6670.608785] wlan0: RX AssocResp from <MAC 'Twifi' [AC1]> (capab=0x411 status=0 aid=1)
[ 6670.609531] wlan0: associated
[ 6670.609584] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 6670.630153] wlan0: deauthenticating from <MAC 'Twifi' [AC1]> by local choice (Reason: 2=PREV_AUTH_NOT_VALID)
[ 6670.642682] wlan0: authenticate with <MAC 'Twifi' [AC1]>
[ 6670.653854] wlan0: send auth to <MAC 'Twifi' [AC1]> (try 1/3)
[ 6670.664157] wlan0: authenticated
[ 6670.668032] wlan0: associate with <MAC 'Twifi' [AC1]> (try 1/3)
[ 6670.672768] wlan0: RX AssocResp from <MAC 'Twifi' [AC1]> (capab=0x411 status=0 aid=1)
[ 6670.673644] wlan0: associated

########## wireless info END ############

[ubuntu] 15.04 - PPTP VPN stopped working after latest update (as of 2015.08.10)

$
0
0
I've have a wired connection with a PPTP VPN interface configured. It's been working great until this weekend's update (2015-08-08/09). Now, attempting to enable the VPN connection logs the following in syslog:

Code:

Aug 10 16:40:34 mycomputer NetworkManager[739]: <error> [1439239234.476337] [vpn-manager/nm-vpn-connection.c:1778] get_secrets_cb(): Failed to request VPN secrets #2: (6) No agents were available for this request.
Aug 10 16:40:34 mycomputer AptDaemon.NetMonitor: WARNING: Failed to determinate network state
Aug 10 16:40:34 mycomputer org.freedesktop.PackageKit[803]: 16:40:34 AptDaemon.NetMonitor [WARNING]: Failed to determinate network state

I've tried adding a new VPN connection with the same config, but I end up with the same log messages.

More information:
Code:

$ sudo more /etc/NetworkManager/VPN/nm-pptp-service.name
[VPN Connection]
name=pptp
service=org.freedesktop.NetworkManager.pptp
program=/usr/lib/NetworkManager/nm-pptp-service

[GNOME]
auth-dialog=/usr/lib/NetworkManager/nm-pptp-auth-dialog
properties=/usr/lib/x86_64-linux-gnu/NetworkManager/libnm-pptp-properties
supports-external-ui-mode=true
$ ls -al /usr/lib/NetworkManager/nm-pptp-service
-rwxr-xr-x 1 root root 32384 Jan 27  2015 /usr/lib/NetworkManager/nm-pptp-service
$ ls -al /usr/lib/NetworkManager/nm-pptp-auth-dialog
-rwxr-xr-x 1 root root 14888 Jan 27  2015 /usr/lib/NetworkManager/nm-pptp-auth-dialog
$ ls -al /usr/lib/x86_64-linux-gnu/NetworkManager/libnm-pptp-properties
ls: cannot access /usr/lib/x86_64-linux-gnu/NetworkManager/libnm-pptp-properties: No such file or directory

[ubuntu] Ubuntu 14.4 Desktop disappears off network after about 2 days

$
0
0
Hi Everyone,

I have a problem... I have Ubuntu 14.04 LTS desktop installed on an HP NL54 Microserver. I've also got Netatalk installed and using my ubuntu machine as a Time Machine for my Mac. Everything works well for a few days but then I can't see the ubuntu machine... no Time Machine and no access via desktop sharing. If I restart the server then everything comes back up and works great. I am running the machine without a screen and with a wired network connection.

Any help would be appreciated.

Many thanks

George

[lubuntu] Intel PRO Wireless Adapter 2200BG - which package for firmware?

$
0
0
I am attempting to install lubuntu 15.04 on a friend's (old Win XP) netbook (Dell Latitude D410) for them, in a location with no internet access.

Is there a .deb package that I can download and supply on a USB stick that would provide the necessary firmware?

Thanks in anticipation,
Alan

Dell mini 9 wifi issues with ubuntu mate

$
0
0
Well I've succeeded in installing ubuntu mate to my Dell mini 9 with 4gb lol. Talk about a close call.

Now my issue is the wifi, it's not showing a wifi connection or anything. I can used the wired connecting just fine. Just not the wifi. Any ideas as to where to start?

Also I'm thinking of getting one of usb drives the really small ones with 32gb for storage. Anyway to make it the primary storage for updates and things of that nature?


Thanks for the help so far guys

SSH from Windows with PuTTY connection refused after restart

$
0
0
I've been trying different things and can't find a solution, so I thought I'd just ask and see what the experts think.

I restarted Ubuntu and now I can't SSH on port 22 from my Windows machine on the same network with PuTTY. The following message appears:



Now this is fairly common as I've seen from the dozens of sites that mention it (even here on Ubuntu's forums, but I haven't found the solution in them yet).

What I've tried:

1). restart ssh service:

Code:

/etc/init.d/ssh restart
I tried the same thing with sshd but that doesn't exist on my system and can't be located with apt-get -- just mentioning that because I've seen it on a few of the forums I've read so far.

2). make sure port 22 is open in firewall.

Code:

iptables -A INPUT -p tcp --dport 22 -j ACCEPT
3). restarting, and that obviously hasn't worked.

Please let me know if you'd like me to post the output from various commands, will do so promptly.

Thank you for your time,
Brandon Doyle

Problem with WIFI dongle as AP mode

$
0
0
I am new using Ubuntu 14.04.
I got problem when plug WIFI dongle RALINK 7601 mode MASTER.
As client mode I did not got any problem.

I got error
(32) The connection’s MAC address did not match this device


Can anybody help me?
I search for solution since 3 days ago but not got any answer.

Thx for helping me.

Regards,
Andi

14.04 -- Wifi not working. Help?

$
0
0
Hi!

I recently took an extended trip and haven't used my computer since early July. I came back, tried updating my computer, but my computer refused to connect to the internet. I have tried several tricks and basic troubleshooting. Yes, I unplugged it and plugged it back in. It uses a wireless USB key to link up to my router, both of which function perfectly well. My other devices link up to the wifi with no trouble.

I even replaced the USB key, and it still won't work. It uses no proprietary drivers that I'm aware of (I checked), and it will link up to the router, but it won't acknowledge an internet connection.

I used the
Code:

ping -c 5 google.com
command to check things out, but what I got back was
Code:

ping: unknown host google.com
I'm assuming that means that there is no connection at all.

I have no idea how to fix this. Any thoughts from the experts?

Thank you.

Netgear WNR2000 Connection trouble in Ubuntu 14.04

$
0
0
Hey!

My computer is having a bad day. It's a Dell HP Compaq running 14.04 Ubuntu. I could never find a NIC that could fit on the motherboard, so I use a Netgear WPN111 USB Wi-Fi key. It hasn't been updated since early July due to an extended trip that I took. The router is a Netgear WNR2000. I know for a fact that it works on my other devices. I've tried all the tips and tricks I can think of from unplugging it and plugging it back in to restarting the network manager from the terminal. All my ideas have come up dry. :(

Here's the output that I got from running 'ifconfig', 'sudo lshw -C network', and 'route -n'.

Code:

ro****@ro****:~$ route -n 

 Kernel IP routing table 
 Destination    Gateway        Genmask        Flags Metric Ref    Use Iface 
 0.0.0.0        192.168.1.1    0.0.0.0        UG    0      0        0 wlan1 
 192.168.1.0    0.0.0.0        255.255.255.0  U    9      0        0 wlan1 
 ro****@ro****:~$ sudo lshw -C network 
  *-network               
        description: Ethernet interface 

        product: 82566DM-2 Gigabit Network Connection 
        vendor: Intel Corporation 
        physical id: 19 
        bus info: pci@0000:00:19.0 
        logical name: eth0 
        version: 02 
        serial: 00:1c:c4:a0:c5:85 
        capacity: 1Gbit/s 
        width: 32 bits 
        clock: 33MHz 
        capabilities: pm msi bus_master cap_list ethernet physical tp 10bt 10bt-fd 100bt 100bt-fd 1000bt-fd autonegotiation 
        configuration: autonegotiation=on broadcast=yes driver=e1000e driverversion=2.3.2-k firmware=1.3-1 latency=0 link=no multicast=yes port=twisted pair 
        resources: irq:42 memory:f0180000-f019ffff memory:f01a5000-f01a5fff ioport:1100(size=32) 
  *-network 
        description: Wireless interface 
        physical id: 1 
        bus info: usb@1:5 
        logical name: wlan1 
        serial: 00:22:3f:09:ba:75 
        capabilities: ethernet physical wireless 
        configuration: broadcast=yes driver=ar5523 driverversion=3.13.0-55-generic firmware=N/A ip=192.168.1.31 link=yes multicast=yes wireless=IEEE 802.11bg 
 ro****@ro****:~$ ifconfig 
 eth0      Link encap:Ethernet  HWaddr 00:1c:c4:a0:c5:85 
          UP BROADCAST 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) 
          Interrupt:19 Memory:f0180000-f01a0000 
 

 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:935 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:935 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:0 
          RX bytes:61785 (61.7 KB)  TX bytes:61785 (61.7 KB) 
 
 wlan1    Link encap:Ethernet  HWaddr 00:22:3f:09:ba:75 
          inet addr:192.168.1.31  Bcast:192.168.1.255  Mask:255.255.255.0 
          inet6 addr: fe80::222:3fff:fe09:ba75/64 Scope:Link 
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1 
          RX packets:276 errors:0 dropped:0 overruns:0 frame:0 
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0 
          collisions:0 txqueuelen:1000 
          RX bytes:83863 (83.8 KB)  TX bytes:1024 (1.0 KB)

Ideas? I could definitely use some.

Adding a new ip to network interfaces?

$
0
0
Okay I am trying to add a new ip to my dedicated box, but it is not actually working (I know this because it crashed my box's network). If anyone can help me with this that would be wonderful!

Here is the current networking as well as the part I want to add:

Ip:
Code:

    auto vmbr3
    iface vmbr3 inet static
            address 192.99.218.240
            netmask 255.255.255.0
            network 192.99.218.0
            broadcast 192.99.218.255
            gateway 192.99.218.254
            bridge_ports eth3
            bridge_stp off
            bridge_fd 0

Actual file:
Code:

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).


# The loopback network interface
auto lo
iface lo inet loopback


# for Routing
auto vmbr1
iface vmbr1 inet manual
        post-up /etc/pve/kvm-networking.sh
        bridge_ports dummy0
        bridge_stp off
        bridge_fd 0


# vmbr0: Bridging. Make sure to use only MAC adresses that were assigned to you.
auto vmbr0
iface vmbr0 inet static
        address 167.114.116.16
        netmask 255.255.255.0
        network 167.114.116.0
        broadcast 167.114.116.255
        gateway 167.114.116.254
        bridge_ports eth0
        bridge_stp off
        bridge_fd 0


iface vmbr0 inet6 static
        address 2607:5300:60:6B10::
        netmask 64
        post-up /sbin/ip -f inet6 route add 2607:5300:60:6Bff:ff:ff:ff:ff dev vmbr0
        post-up /sbin/ip -f inet6 route add default via 2607:5300:60:6Bff:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del default via 2607:5300:60:6Bff:ff:ff:ff:ff
        pre-down /sbin/ip -f inet6 route del 2607:5300:60:6Bff:ff:ff:ff:ff dev vmbr0


auto vmbr2
iface vmbr2 inet static
    address 10.21.21.254
    netmask 255.255.255.0
    bridge_ports none
    bridge_stp off
    bridge_fd 0
    post-up echo 1 > /proc/sys/net/ipv4/ip_forward
    post-up iptables -t nat -A POSTROUTING -s '10.21.21.0/24' -o vmbr0 -j MASQUERADE
    post-down iptables -t nat -D POSTROUTING -s '10.21.21.0/24' -o vmbr0 -j MASQUERADE

[ubuntu] Problem with Wifi on Ubuntu 14.04 LTS

$
0
0
I have installed Ubuntu 14.04 LTS on my new Acer Aspire E5-573 and ubuntu is not detecting my wifi, only wired internet is working.

I have a Qualcomm Atheros Device 0042 Wifi.

Code:

# lshw -C net

  *-network             
      description: Ethernet interface
      product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
      vendor: Realtek Semiconductor Co., Ltd.
      physical id: 0
      bus info: pci@0000:02:00.0
      logical name: eth0
      version: 15
      serial: 2c:60:0c:88:c4:0f
      size: 10Mbit/s
      capacity: 1Gbit/s
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress msix bus_master cap_list ethernet physical tp mii 10bt 10bt-fd 100bt 100bt-fd 1000bt 1000bt-fd autonegotiation
      configuration: autonegotiation=on broadcast=yes driver=r8169 driverversion=2.3LK-NAPI duplex=half latency=0 link=no multicast=yes port=MII speed=10Mbit/s
      resources: irq:60 ioport:3000(size=256) memory:b0604000-b0604fff memory:b0600000-b0603fff
  *-network UNCLAIMED
      description: Network controller
      product: Qualcomm Atheros
      vendor: Qualcomm Atheros
      physical id: 0
      bus info: pci@0000:03:00.0
      version: 30
      width: 64 bits
      clock: 33MHz
      capabilities: pm msi pciexpress bus_master cap_list
      configuration: latency=0
      resources: memory:b0400000-b05fffff



Code:

$ lspci

00:00.0 Host bridge: Intel Corporation Haswell-ULT DRAM Controller (rev 0b)
00:02.0 VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
00:03.0 Audio device: Intel Corporation Haswell-ULT HD Audio Controller (rev 0b)
00:14.0 USB controller: Intel Corporation Lynx Point-LP USB xHCI HC (rev 04)
00:16.0 Communication controller: Intel Corporation Lynx Point-LP HECI #0 (rev 04)
00:1b.0 Audio device: Intel Corporation Lynx Point-LP HD Audio Controller (rev 04)
00:1c.0 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 1 (rev e4)
00:1c.2 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 3 (rev e4)
00:1c.3 PCI bridge: Intel Corporation Lynx Point-LP PCI Express Root Port 4 (rev e4)
00:1d.0 USB controller: Intel Corporation Lynx Point-LP USB EHCI #1 (rev 04)
00:1f.0 ISA bridge: Intel Corporation Lynx Point-LP LPC Controller (rev 04)
00:1f.2 SATA controller: Intel Corporation Lynx Point-LP SATA Controller 1 [AHCI mode] (rev 04)
00:1f.3 SMBus: Intel Corporation Lynx Point-LP SMBus Controller (rev 04)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
03:00.0 Network controller: Qualcomm Atheros Device 0042 (rev 30)


Code:

$ iwconfig

lo        no wireless extensions.

eth0      no wireless extensions.




Code:

$ rfkill list all

0: hci0: Bluetooth
    Soft blocked: no
    Hard blocked: no
1: acer-wireless: Wireless LAN
    Soft blocked: no
    Hard blocked: no

Are there any drivers I can download to fix this issue?

Please help.
Viewing all 23300 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>