All Questions

Filter by
Sorted by
Tagged with
1
vote
0answers
41 views

How to check if IP has MAC address and if MAC = NULL, reboot

I have a machine that is used for network storage, that's it. Not a daily use machine. It's using LAN for network connection. For some unknown reason my MAC address is dropping from a machine on my ...
26
votes
6answers
66k 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 ...
0
votes
1answer
480 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 ...
0
votes
1answer
49 views

Setting up PPPoE on Debian 10 guidance

I am trying to connect to the internet via PPPoE on my laptop running Debian 10 using the command line. Here is what I tried so far: edit /etc/ppp/provider and add the following content: plugin rp-...
55
votes
4answers
303k views

How do I know what service is running on a particular port in linux? [duplicate]

I am trying to run weblogic server on my linux machine and I am getting the following error : ERROR: transport error 202: bind failed: Address already in use ERROR: JDWP Transport dt_socket failed to ...
2
votes
2answers
383 views

What is a tee equivalent for network packets? [closed]

This is probably a very basic question. Wanted to know in Linux if there is a command that could work like the tee command but for forwarding TCP/UDP packets. Basically it should listen at one port ...
-1
votes
3answers
138 views

ifconfig netmask ip alternative

What is the ifconfig netmask command ip alternative for this command: ifconfig eth0 netmask 255.255.240.0 I found something like this, but honestly I'm not sure, since the address is missing: ip addr ...
1
vote
1answer
28 views

Linux command to move file from desktop to phone on home network

I need to transfer a particular file from my Linux PC to Android phone using a Bash script. I have already exposed my phone filesystem to the PC. With this I can easily communicate between the two ...
35
votes
5answers
270k views

How to bring up a wi-fi interface from a command line?

I can't figure out how to properly bring up the wi-fi card on my laptop. When I turn it on and issue $ sudo iwconfig wlan0 txpower auto $ sudo iwlist wlan0 scan wlan0 Interface doesn't support ...
13
votes
5answers
89k views

How to check from a command line that network is reachable?

I want to send a growl to myself after SuSE server finishes the boot process. I got this message socket_sendto(): unable to write to socket [101]: Network is unreachable in. How can I check from ...
0
votes
1answer
23 views

is there a way to map a port to an application or service?

when I run something like - # ss -atur I get lot of replies of opened ports such as - udp UNCONN 0 0 0.0.0.0:631 0.0.0.0:* ...
24
votes
10answers
94k views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST&...
3
votes
2answers
9k 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 ...
7
votes
1answer
10k 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: ...
0
votes
1answer
28 views

Network stats for a program

On Windows this is quite easy using Process Hacker. Suppose I want to know how many megabytes my torrent client has recieved and sent on Linux. How would I do this?
16
votes
6answers
104k views

'iwlist' -> interface doesn't support scanning (Ubuntu LTS 10.04)

I am using Ubuntu 10.04 (LTS) on a Samsung N150+ netbook. I cannot scan wifi networks using iwlist and I would like to do so. Here is the output from some tests: alex@alex-laptop:~/Desktop/...
1
vote
2answers
785 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 ...
0
votes
2answers
1k views

Command that will Enable VPN Only in my current Terminal

I am using Linux Mint 19.3 I want to run two instances of youtube-dl. All traffic of terminal 1 instance should go through regular network. All traffic of terminal 2 instance should go through VPN. ...
0
votes
1answer
36 views

CLI Utility to see the http requests that'll be made by a command

I have a script which invokes some library code that makes some HTTP and HTTPS requests, let's call it script.sh Is there a command which would look like some-wireshark-type-utility ./script.sh and ...
0
votes
1answer
42 views

How to prevent ss ouput with empty lines?

Moving from netstat to iproute2 ss I noticed that the output from ss tends to spill over into empty "new lines" when connecting via SSH from a cygwin terminal. e.g.: user@host:~ $ ss -4t State ...
89
votes
8answers
539k views

Connecting to wifi network through command line

I am trying to connect to my WEP network just using the command-line (Linux). I run: sudo iwconfig wlan0 mode Managed essid 'my_network' key 'xx:xx:... hex key, 26 digits' Then I try to obtain an ...
0
votes
0answers
197 views

ERR_CONNECTION_REFUSED: how to show the cause

I am running an application (over and over again in a for loop) which is very heavyweight. I attempt to start the application via a python script. Sometimes when I do that, I get a ...
0
votes
0answers
107 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. ...
7
votes
2answers
913 views

How to make sure OpenVPN is connected?

I need some sort of "safeguard" for my VPN connection. If the connection drops, the machine shouldn't even reach the internet. (I can reach the machine by other means.) Is it possible somehow? If I ...
1
vote
1answer
2k 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
102 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
4k 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 ...
1
vote
1answer
4k 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)....
0
votes
1answer
100 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
674 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
0answers
45 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.
-2
votes
1answer
545 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: ...
4
votes
1answer
2k 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
2answers
849 views

Bandwidth monitoring in Linux

I just need to get how much bandwidth is used in 3 or 4 days. Do you have any application in the terminal to do it? I'd prefer if it didn't use SNMP. I found iptraf, wireshark, cacti, but they were ...
6
votes
2answers
18k views

How to check programmatically if the Ethernet cable is plugged in?

As you know, in Windows when we plug in the network cable, the network symbol will change to another status. How can I know whether the cable is plugged in or not via the command prompt in Linux?
2
votes
1answer
4k 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 ...
5
votes
2answers
11k views

How to interpret traceroute information?

For example in this pic taken from Wikipedia [Bigger Version] What are all these 12 server names that are listed? I know they are servers that are supposed to be the path that the network packet had ...
3
votes
1answer
2k 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
686 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, ...
1
vote
1answer
208 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.   ...
4
votes
4answers
42k views

Telnet on Linux Server

I want to know if it is necessary to have telnet enabled on both sides of machines to get telnet connection. Here's the issue: I am trying to telnet some public IP on port 80 from a Linux web server (...
95
votes
7answers
350k views

How can I monitor all outgoing requests/connections from my machine?

My machine is a server so I want to ignore connections being made to my server (e.g. when someone visits my website). I want to see only connections/requests being made by my server to other places. ...
3
votes
1answer
369 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
vote
0answers
1k 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
202 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
810 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 ...
1
vote
3answers
6k 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 ...
1
vote
5answers
12k 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 ...
1
vote
2answers
5k 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, ...
66
votes
2answers
317k views

Sending messages to another user

Is there any command to send messages through the Linux shell to other people on the same network? I'm using write user and then write the message itself. But there's any command that doesn't show my ...