All Questions

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

CLI or ncurses tool for browsing local network?

I have a console-only SSH-based pivot box inside a remote location. I want a console or ncurses-based tool that shows me active real-time information on which hosts are up. IP, hostname, etc. ...
0
votes
1answer
33 views

Dig: connection timed out; no servers could be reached. But ping works?

When I try to run the dig command against either my servers IP or nameserver I get an error: root@kali2:/etc# dig q-type=soa @192.168.100.10 ; <<>> DiG 9.11.4-P2-3-Debian <<>&...
1
vote
1answer
36 views

Connect to fastest open WiFi (that can reach the Internet) and keep looking if cut off?

I know this is a Very Bad Idea™️ with regards to security, I'm ok with that. (Everything is over SSL, so meh.) I have a small wandering Raspberry Pi powered bot, that I'd like to keep in touch with. ...
0
votes
1answer
473 views

How to record only the header info when using `tcpdump`

When running the following command tcpdump -i deviceName 'host 1.2.3.4' -q -w /mypath/dump.pcap the dump file contains a huge amount of data because there's a lot of traffic. However, I only need ...
0
votes
1answer
49 views

How to determine what hardware is associated with what network interface

I have an inbuilt network card and a Wi-Fi dongle. I use wpa_supplicant, hostapd and the likes to operate them. The trouble is that sometimes the dongle is wlan0, and sometimes it is wlan1 (...
0
votes
1answer
254 views

Making DNS permanent in Docker's containers [closed]

I have container1, I have edited the /etc/resolv.conf and put nameserver 8.8.8.8 to ping google.com. It works fine. But I need to make this permanent, when I restart my docker's container using sudo ...
1
vote
1answer
2k views

youtube-dl download autotranslate subs

I would like to download auto-generated subtitles with youtube-dl as follows $ youtube-dl --write-auto-sub --skip-download https://www.youtube.com/watch?v=vbLEf4HR74E It downloads file The habits of ...
1
vote
0answers
35 views

maximum value of congestion window in ubuntu

I need to find the max congestion window value for TCP in ubuntu. I only find the init window size; I can’t find the max.
3
votes
1answer
1k views

Wget segfault---how do I know which site is causing this?

I'm trying to mirror a website locally. However, I've been running into a segmentation fault at some consistent point in the download, on a different domain than the site I'm targeting (probably due ...
-1
votes
1answer
450 views

Getting IP address of remote VPN server

Is there a way to obtain the IP address of the remote VPN gateway that a running OpenVPN client is tunneled into, via the command line? More detail: Suppose OpenVPN is connected to a remote server, ...
0
votes
1answer
112 views

ss command take 2 lines for each result

I used netstat -anlptu to check for open ports. This command is now somewhat deprecated so I start using ss -anptu but each entry takes 2 lines. The result is not practical. I use Debian.   ...
1
vote
0answers
682 views

regarding xrdb: Resource temporarily unavailable

after ssh to a machine, I got the following message, xrdb: Resource temporarily unavailable xrdb: Can't open display 'localhost:10.0' What does it mean?
0
votes
1answer
143 views

Linux Server Calculating NIC I/O AVG on eth0

I am trying to calculate NIC I/O AVG say for eth0 which is a 10GIG Interface during a specific time frame on my Linux server....I need NIC I/O AVG for One hour during a load test to check to see the ...
0
votes
1answer
525 views

CLI alternative to speedtest-cli?

I am trying to remotely test the internet connection on a headless server and am looking for a cli to do so. Speedtest-cli seems to give wildly inaccurate results and inconsistencies compared to the ...
3
votes
1answer
5k views

How to disconnect wifi link, that was connected with wpa_supplicant

I connect with the following command: sudo wpa_supplicant -B -D nl80211 -i wlan_card -c /etc/wpa_supplicant/connection.conf It connects fine, and keeps persistent connection. If AP goes down, the ...
1
vote
3answers
4k views

Command to know the Network Switch IP

I'm using the below Network Switch: HPE ProCurve J8697A Switch 5406zl Software Revision K.14.34 I'm advised to execute the below command to know my network switch IP: tcpdump -i net0 ether proto ...
0
votes
1answer
356 views

Sierra Wireless GSM modem EM7455 + Android Integration Error

EM7455 connect on Single Board Computer(NanoPC-T2) through USB. I have attached AndroidRIL_5.1.11 binary files in my android and kernel source after build it and run on my android device.Below error ...
1
vote
2answers
4k views

Updating Network Manager

While fiddling a bit with Network Manager on my Ubuntu, I checked it's version with NetworkManager -V and it gave me 1.2.6 From there I decided to look online what the most current versions where, ...
1
vote
5answers
6k views

How can I kill a process running on a specific IP and port? [closed]

I was wondering, is there any way to kill a process that is running on a specific IP and port on Ubuntu 14.04 on a local IP and port? Preferably, this would be in one command, but if not, a bash ...
2
votes
1answer
79 views

Best practices when manually connecting to various wifi networks

How do we manage wireless connections without a network manager? This excellent answer walked me through connecting to the protected wireless network at home. In short, nano /etc/network/interfaces ...
6
votes
2answers
12k views

How to find status of wlan0?

From what I had read sometime back, it seems iwconfig is deprecated and the current methods is - $ sudo ifconfig wlan0 up and $ sudo ifconfig wlan0 down But couldn't find anything which tells the ...
2
votes
1answer
397 views

linux/unix command for checking the outside/inside network connections

From my local machine, which command can tell me which machines I have connected via ssh, or ftp, etc? At the same time, which command can let me know which machines have tried to connect my machine ...
1
vote
1answer
378 views

How to check port opened on running a service?

Let's say I started a service by using sudo service service_name start, I am interested in knowing all the port opened by this service. I can know port - program mapping by sudo netstat -tulnp but I ...
4
votes
1answer
820 views

How do I set a static IP address for a disconnected interface?

I am setting up an Arch/Manjaro-based machine that only occasionally will be connected to network. I.e. most of the time its Ethernet card is disconnected. I run into this curious problem - when I ...
3
votes
2answers
356 views

user not allowed to connect to wifi

I have a Debian 8 jessie minimal install connected to a wired network. No X server is installed and no GUI. On this system I log in as unpriviledged user and I notice that the following commands are ...
-2
votes
1answer
373 views

One public IP address per Namespace [closed]

How can I associate one public IP address per Namespace in my Ubuntu 14.04 server? I need to launch one specific process per Namespace then per public IP address. I want to do that: configuration: ...
2
votes
1answer
242 views

Identify the slow hop when downloading video

I'm downloading a video as follows $ youtube-dl url_to_video The download of the file is very slow 33.1% of 301.31MiB at 19.75KiB/s ETA 02:54:03 It was usually faster. Could you identify with ...
1
vote
1answer
2k views

Runnning a python script on a socket with ncat?

I want to make a python script run on a socket of server in LAN. I wrote a number guessing script and i want to make it run on socket for other clients to play with it by connecting to port (say 1234)....
2
votes
1answer
895 views

Unknown TCP in the nethogs output

The nethogs command displayes programs attending network communication. There is a permanent line: PID USER PROGRAM DEV SENT RECEIVED ? root unknown TCP eth0 0.000 0.000 KB/sec Why nethogs ...
10
votes
1answer
469 views

Is there something like lsblk for network interfaces?

Is there a Linux command that visualizes configured network interfaces in a tree view, just like lsblk does for block devices? The output of such a program could for example look like this (bottom-up-...
3
votes
1answer
260 views

How to set wireless key with nmcli interactively and securely without entering it in the command

I can set my wifi key of the connection my_connection to my_password by running nmcli con modify my_connection wifi-sec.psk my_password How can I have a secured interactive password reading from ...
1
vote
0answers
470 views

How to keep VPN connection alive / restrict from time out when idle?

I am looking for various ways to keep VPN connection alive on a Unix based system when I am idle. One way I know is run a command like "top" >top which continuously runs. Is there any other way ...
0
votes
1answer
85 views

Network slowness [closed]

I am facing an issue in my project.We support an App which is hosted on a unix server. Partners try to access the same from many regions. Now some users in an region say "R" are complaining about ...
0
votes
1answer
402 views

Ping through a specific Ethernet port

I am using RHEL 6.4, I have teamed two Ethernet ports (eth2 and eth3). I am trying to test the connectivity, I mean I want to test whether the eth2 and eth3 are working or not? One way is to disable ...
0
votes
1answer
418 views

change IP address

I tried to change my private IP address with the following commands: sudo ifconfig wlp3s0 down sudo ifconfig wlp3s0 192.168.1.12 sudo ifconfig wlp3s0 up They just work fine becouse the IP changes ...
2
votes
0answers
522 views

how do I make a SIP phone ring with sipsak?

How can I use sipsak to simulate a call so that there's an actual ring, or possibly even a sound is played? thufir@mordor:~$ thufir@mordor:~$ sudo sipsak -v --usrloc-mode --from sip:demo_alice@...
15
votes
4answers
37k views

Get Wi-Fi interface device names

Similar to a previous question about finding network device names, I would like to get a (reliable) list of device names but just for Wi-Fi devices. So that it looks like the following depending on ...
3
votes
2answers
169 views

Basic network via command line

I am using Fedora 23. Using the file explorer I "found" this page It shows where I can access other networks, I can click on them, and log in... My questions is: Is there an equivalent place I ...
2
votes
2answers
4k views

Retrieve name of the active network interface only [duplicate]

How can I retrieve from the command line (or a shell script) only the name of the active network interface, in Linux? If there are several active interfaces, I want just one (selected arbitrarily).
4
votes
1answer
250 views

I am stuck connecting to the internet via a usb wifi stick

I am trying to set up a an internet connection through a usb wifi sticker in Linux. Here's the sequence I tried: iw dev This returns the name(?) of the Interface that I want to connect to: phy#0 ...
6
votes
3answers
95k views

Putting a network interface up/down from command line

In Xubuntu 14.04, I tried to use both ip and ifconfig to handle a network interface, but they gave the same result. $ sudo ifconfig wlan0 down $ sudo ip link set wlan0 down both correcly put down ...
5
votes
2answers
3k views

Why does ping run forever by default in Linux? [closed]

What was the rationale for the design decision to make ping's default behavior to ping forever? For example, the following basic usage will ping address 127.0.0.1 forever: $ ping 127.0.0.1 ...
1
vote
2answers
3k views

Aircrack-ng: No /pentest/passwords/wordlists/darkc0de directories

this is my fist question on this forum. I'm currently using Linux Mint 17.2 Cinnamon and trying to run Aircrack-ng to show the password of my own Wi-Fi connection, I got the Handshake too. The problem ...
1
vote
1answer
65 views

What command line tools can be used to manually perform each step of an entire network “conversation”?

I know, I know; the phrase "network conversation" is imprecise almost to the point of meaninglessness. Let's take this specific scenario: I plug in a computer to a DHCP enabled router, open a browser ...
3
votes
1answer
297 views

Enabling proxy_arp for interface eth2.1

Am trying to enable proxy arp for some of the interfaces, with the normal interface name eth0, eth1, etc [root@eth2.1]# sysctl net.ipv4.conf.eth0.proxy_arp 0 But for interface names such as "eth1....
-1
votes
1answer
1k views

Get CIDR of my IP on the WAN

I have a script that updates some remote systems with my laptop's IP and CIDR on the WAN, how the Internet sees me, in other words. I use the following to get my IP on the WAN in bash: dig +short ...
3
votes
1answer
1k views

Manual creation of NetworkManager connection file fails (Error: Unknown connection)

Objective: I am trying to set up a 3G connection using NetworkManager 0.9.4 via command line. I have previously succeeded (see this question) by setting up the connection through the nm-applet (GUI in ...
3
votes
1answer
4k views

nmcli connection activation failed

I was able to create a wifi hotspot on my debian 8 install using network tab under gnome settings. I was trying to do the same using nmcli but it always shows $nmcli con up id Hotspot Error: ...
4
votes
0answers
782 views

Program like vnStat that filters for only external (Internet) traffic

I've been using vnStat to monitor the ethernet interface on a Linux computer, but found that it includes all local traffic. I do many file transfers from within the subnet which far exceeds the ...
2
votes
1answer
10k views

-bash: auto: command not found

I'm going to config my network interfaces and run this command: auto eth0 but it returns -bash: auto: command not found. It seems I've missed something which I don't know. Any idea? What should I ...