Managing and using network connectivity on a unix system

learn more… | top users | synonyms (1)

0
votes
2answers
1k views

Realtek drivers prevent detection of eth1 interface?

Here's the situation: I had a working network setup on my Debian box, with two Ethernet interfaces being reported by ifconfig - eth0, and eth1. eth0 is an onboard Realtek NIC, and eth1 is a D-Link ...
0
votes
1answer
296 views

configure iptables to accept incoming requests

Let me clarify: I have an iMac wich is wireless connected to the router from the ISP. The Centos computer is connected to the iMac with a cable and internet sharing is turned on. Installed Nginx on ...
1
vote
2answers
2k views

How to use netstat command

My question is what does it mean to LISTEN or ACCEPT on a port as it relates to my example? Example: I have a tomcat server, and It will use port 8080. I want to make sure that port is available for ...
15
votes
2answers
13k views

How to identify a process which has no pid?

I have a process which listen to 2 ports : 45136/tcp and 37208/udp (actually I assume it is the same process). But netstat doesn't return any pid : netstat -antlp | grep 45136 tcp 0 0 ...
5
votes
1answer
5k views

log network activity in ubuntu server

I administer an Ubunu Server exposed to the internet and have the need to monitor and keep track of all the network activity in a manner that allows me to analyze it afterwards. I already tried some ...
3
votes
1answer
439 views

Cheapest linux devices? [closed]

I'm getting interested in ultra-cheap linux devices lately. So far I've been playing with some no-name "3G/4G router" devices from amazon (such as this $10 job ...
1
vote
2answers
219 views

Accessing a different computer on the network

At work we have a large network of computer, some linux, some windows. On a windows machine I can go in to my computer and access a network drive simply by typing \ip-address\folder. It'll often ask ...
1
vote
2answers
839 views

How does KVM set its own netfilter rules?

I've been poking around with KVM VM's on Centos 6.4 and after some hair pulling and copious amounts of trying to break my desk with my head due to not having an internet connection on my VM's, I found ...
3
votes
1answer
534 views

How do I accept all Networks with the same ssid with wicd?

We have a Mesh network here in my town, where every node creates the same client wlan with the SSID "kiel.freifunk.net". In wicd I can connect to those networks, but I have to choose which of them. ...
0
votes
1answer
1k views

Is it possible to add/remove arp-ip-targets without taking the bonding interface up/down

i just changed in /etc/sysconfig/network-scripts/ifcfg-bond0: BONDING_OPTS="mode=active-backup arp_interval=1000 arp_ip_target=10.0.0.1" and now i want to set those arp_interval and arp_ip_target ...
1
vote
1answer
225 views

failure in connecting to my server through ssh

My goal: I want to be able to ssh to my workstation from external client. My workstation(in the following also referred as server) is on a lan. Its ip address on this lan is obviously different from ...
3
votes
2answers
5k views

What does ifup do when “/etc/network/interfaces” has an invalid netmask address?

The interfaces file looks like below: auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.0.130 netmask 250.255.255.0 gateway 192.168.0.254 As you can see ...
3
votes
2answers
2k views

How do I fix iptables in ChromeOS?

Using the shell in chrosh in ChromeOS I followed some (apparently terrible) advice to flush my IP tables. using the command sudo iptables -F I am now unable to connect to the internet at all. All ...
13
votes
4answers
3k views

How am I supposed to edit files on a network with Vim?

Currently I'm doing it by SSHing into a server, and executing Vim on the server. This has the benefit of not having to deal with cumbersome syntax of opening files from a remote server over SCP, and, ...
1
vote
2answers
850 views

Restarting network service for a local VM via SSH

During the course of practicing switching my local VM from static IP to DHCP and vice versa via system-config-network, I decided I didn't like having to access the VM's console through virt-manager ...
2
votes
1answer
1k views

Linux CentOS 5.5 not connecting to Network

I have installed Linux CentOS 5.5. During installation, I configured the LAN driver and gave it an IP address. After installation, I checked the network connection but it shows "not connected". I ...
3
votes
1answer
2k views

sshfs will not use ~/.ssh/config (on Linux Mint 15)

Local: Linux Mint 15 - Olivia /proc/version: Linux version 3.8.0-19-generic (buildd@allspice) (gcc version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) ) ssh -V: OpenSSH_6.1p1 Debian-4, OpenSSL ...
1
vote
2answers
2k views

Open a port CentOS

I'm new in CentOS and I'm trying to create a little script in Python, something like: $ python -m SimpleHTTPServer If I try to access port 8000 in my web browser, I don't get access, however if I ...
1
vote
3answers
3k views

Split DNS (bind9), match-clients any doesn't work?

I've been fighting with this for the last few days. A few of my entries have external and internal IP's. My internal network is 10.0.0.0/8. When I nslookup pc1.clase.net internally it responds with ...
1
vote
2answers
1k views

How do I get the nc command to end after 2 seconds? [duplicate]

I have to write a maintenance script that iterates over our IPs testing their connectivity to certain services such as nc -sip# mailin-01.mx.aol.com 25. It has a flag -w ... but it's not what I think ...
3
votes
1answer
115 views

Network Connection Type

Is there way to determine the LAN connection type is Secure or insecure ? i.e. the lan cable connected to machine is by IEEE802.1X or not ? EDIT: In ubuntu 13.04, When I configure 802.1x security ...
1
vote
0answers
304 views

Share (masquerade) Internet connection from Debian desktop to a bunch of computers

I need to share the Internet connection of my Debian desktop to some other devices (a Mac Laptop, and an Android tablet). The Debian desktop is connected to the local network via eth0, and the rest ...
3
votes
1answer
974 views

Bind9 — How to find which programs are making which dns lookups?

Using bind9 on a laptop shows lots of nonsense domains when network connectivity is down: Oct 18 19:56:18 lap3 named[1536]: error (network unreachable) resolving './NS/IN': 128.63.2.53#53 Oct 18 ...
0
votes
0answers
39 views

Wireless problems

installed linux mint on a netbook and was working fine until yesterday. When I go to netwrk icon at the bottom, all my ssid are missing and I now "Wireless Network device not ready" in grey.It looks ...
0
votes
1answer
32k views

port opening in linux server

I need to open port 7001 in a linux server ( RHEL 6.3 ). Firewall is not running. [root@hslsaoid2 ~]# service iptables status iptables: Firewall is not running. Please find the netstat -ntpl output ...
14
votes
2answers
1k views

Command to run a child process “offline” (no external network) on Linux

I have a program I would like to test in offline mode without taking down my actual network. This program would still need to connect to local sockets, including unix domain sockets and loopback. It ...
1
vote
1answer
875 views

curl ignores interface parameter

My Ubuntu 12.04 laptop is connected to the Internet by WiFi and to the intranet by cable. I would like to get the content of an intranet site via curl and have tried the following: curl --interface ...
3
votes
3answers
1k views

How to detect IP of given device in same network

I have a very typical situation in which I want to connect an (android) phone to a linux notebook in the same (wifi) network using ssh. The IP's are assigned by DHCP so I know only the one of the ...
1
vote
1answer
743 views

Why is NetworkManager attempting to control an interface script that doesn't exist?

I'm showing hundreds of frequently repeated entries in /var/log/messages that don't make sense. More below the example. Here's an example, which is repeated ad nauseam in the log file: Oct 15 ...
0
votes
1answer
456 views

wireless enabled but can't browse internet

My laptop sees wireless ssid and connects but I get unknown host when trying to ping www.google.co.za, but I get replies when I ping 8.8.8.8, my other machine connected to the same router can surf the ...
2
votes
1answer
62k views

How to connect to Internet in Kali Linux after changing IP address manually?

I have a problem in my Kali Linux. I cannot connect to the Internet after changing my IP address using this command: ifconfig eth0 198.168.198.130 netmask 255.255.255.0 up After this, when I open ...
0
votes
1answer
134 views

How do I verify that the Linux kernel is not freezing when uploading or downloading large data over the ethernet interface?

How to verify if the Linux kernel is doing what it's saying for network interfaces? I have one network interface eth0 which has hardware support to do 1GB full-duplex. I have prepared 2 box. Now ...
1
vote
0answers
200 views

Intercepting packets with bash

I'm wondering if it's possible to detect a packet that comes from certain IP and port(suppose IP 1.1.1.1 and port 80) and has some specific information on it (suppose "<h1>Web ...
5
votes
2answers
477 views

Problem when trying to cross-compile an ethernet driver on an old Linux kernel

I'm currently trying to cross-compile a network driver against an old Linux kernel, in version 2.6.27.7 but the compilation fails and prints: make[1]: entering directory « ...
1
vote
2answers
4k views

SSH connection establishment too slow [duplicate]

I'm having issues while connecting to my Local Centos 6.3 VM with 500 MB ram. Below is the output of ssh -vvv localhost connection: OpenSSH_6.3, OpenSSL 1.0.1e 11 Feb 2013 debug1: Reading ...
5
votes
1answer
2k views

Why is my computer trying to send ICMP type 3 to OpenDNS?

In my firewall logs I see lots of entries like this. IN= OUT=eth0 SRC=192.168.1.105 DST=208.67.220.220 LEN=148 TOS=0x00 PREC=0xC0 TTL=64 ID=55705 PROTO=ICMP TYPE=3 CODE=3 [SRC=208.67.220.220 ...
8
votes
2answers
3k views

Real-World Use of TCP_DEFER_ACCEPT?

I was perusing the Apache httpd manual online and came across a directive for enabling this. Found a description in the man page for tcp: TCP_DEFER_ACCEPT (since Linux 2.4) Allow a ...
20
votes
3answers
32k views

what is the meaning of 0.0.0.0 as a gateway?

Can anyone clarify gateway assignment for me? What is the difference between adding gateway as 0.0.0.0 and assigning a specific ip address as a gateway?
3
votes
1answer
5k views

autofs error - “No such file or directory”

I am trying to link a remote RHEL machine to our network. I can now ssh between the machines using fixed NAT addresses. I have copied the /etc/auto.misc, /etc/auto.master and /etc/exports files from ...
2
votes
1answer
563 views

CentOs eth2 wont start on reboot

I have Cent OS 6.4 inside my virtualbox with two ethernet devices. One is connected to the internet with NAT, the other is connected to the internal network. here is my eth2 config file cat ...
1
vote
1answer
573 views

Can I connet to internet with one PC and give over LAN (switch) internet to other PC?

I currently have one computer (it's called pc08 with Linux Mint 15) that is connected to the internet via WLAN. Now I want to install Arch Linux on another computer (lets call it archiso). I only ...
2
votes
2answers
5k views

No ethernet/wireless connection after dist upgrade - “network UNCLAIMED”

I did an upgrade from Xubuntu 12.04 to 12.10, and I can't connect to the internet now. When I press the network button on the panel, I see "No network devices available" on top (greyed out), then ...
1
vote
0answers
2k views

How to configure mod_rewrite with an Alias in Apache 2.4?

How do I use apache mod_rewrite with an Alias ? I have a test directory that contains the files: correct.html index.html test_httpd.conf wrong.html I would like an example rule using an alias that ...
8
votes
3answers
6k views

Difference between 'ifconfig' and 'ip' commands

I read some articles/tutorials on 'ifconfig' command, most of them included a common statement - "ifconfig is deprecated by ip command" and suggested to learn ip command. But none of them ...
2
votes
0answers
251 views

Check via Shell-script if server currently streams via dlna

Currently I'm running uShare to stream videos from my home-server via DLNA to the TV. On the server there is also running a bash-script which checks if a user is connected via ssh or Samba. If this is ...
2
votes
1answer
2k views

Broadcom Corporation BCM4313 WLAN does not work on installed Arch

I have a Broadcom Corporation BCM4313 WLAN Controller in my netbook. When I boot the Arch live ISO and set up the network with wpa_supplicant everything works fine. On the installed Arch I get the ...
3
votes
1answer
747 views

Apache Request Hangs For 2 Minutes Exactly

I am experiencing some odd behavior with apache. I have requests that are hanging for exactly two minutes. The request could be one file one time, and then a completely different file another time. ...
6
votes
3answers
18k views

I always need to ifdown/ifup wlan0 after reboot

I'm trying to create an ad-hoc wifi made of 5 computers (one windows pc and 4 raspberry pi loaded with a raspbian) the raspberry pi will talk through mqtt, but tha'ts not the point. The problem I have ...
1
vote
0answers
498 views

HTTPS Authentication problem : Polipo

I use internet behind http proxy, and that requires authentication. I tried using polipo to bypass the authenticated proxy to 127.0.0.1:9134. Applying these settings to my browser, works fine for ...
8
votes
1answer
11k views

How do I access my Windows administrative share from Linux?

I have a Windows computer on 192.168.0.103 and I want to access the c$ administrative share from a Linux computer which has 192.168.0.110 to exchange some files. From another Windows computer on the ...