Managing and using network connectivity on a unix system

learn more… | top users | synonyms (1)

1
vote
0answers
108 views

What should be the right dhcp configuration for generating a new network over eth0?

Even not under a real server like scenario, I'm testing with dhcpd for learning and practice purposes. I'm using Ubuntu 12.04 LTS. I want to offer a network by my eth0 interface. I receive ip and so ...
1
vote
1answer
527 views

How to calculate Linux Network RX, TX total stats - not just between reboots?

Is there any way to calculate the Linux network interfaces RX , TX for all times? The suggested method mentioned in this Cyberciti article titled: Linux See Ethernet Statistics only returns the stats ...
3
votes
2answers
14k views

tcp dump outgoing connection packets

What is the command syntax to log all tcp connection packets? I am trying to see what address and ports my computer is trying to connect to outgoing so that I may config my firewall.
5
votes
2answers
5k views

BIND9 as a DNS server refuses requests

I am trying to set up a DNS server on Amazon Linux using BIND9. It has to act as a master nameserver for a lot of domains. I have imported all of the DNS zone files using NamedManager (a web ...
4
votes
2answers
21k views

Set Static IP in CentOS 6.4?

Most guides seem to revolve around modifying ifcfg-eth0, which doesn't exist on my system.. [root@Azaz07]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 [root@Azaz07]# ls /etc/sysconfig/network-...
1
vote
2answers
961 views

How to monitor network performance for each application in FreeBSD / PC-BSD?

I'm using a PC-BSD workstation, and I would like to know if there is a way to monitor which app / process is using the network. I use a Mac OS X (Mavericks) laptop, and the "Network" tab in the "...
3
votes
3answers
4k views

/usr/bin/host not picking up changes to /etc/hosts even after reboot

I have a Ubuntu Server 12.04 (amd64) machine on which, when I change /etc/hosts, the changes aren't picked up, even after a reboot. I am using /usr/bin/host to test, but none of the other programs ...
3
votes
1answer
267 views

Discover clients connected to a network [duplicate]

How can you discover who is connected to a wifi network near you? (you not being connected to it). I know that some tools can scan your own network, and that some tools like Wireshark can monitor ...
1
vote
1answer
764 views

Wake on LAN through PHY and unicast only works in the first ~30 seconds after pm-suspend

I'm having some trouble with Wake on LAN through PHY and unicast. I'm able to wake the system by pinging or sshing the shut down machine, but only within the first ~30 seconds. Why's that, what could ...
0
votes
2answers
845 views

Frequent connection aborts with arch-linux

I have an arch-linux system which I use as a server. I try to connect with ssh and samba from different Windows 7 machines. However, I get frequent connection aborts. ssh (e.g. putty or kitty) says ...
4
votes
1answer
7k views

TCP buffers keep filling up (Recv-Q full): named unresponsive

Using netstat -an, I set the message that the Recv-Q is full. It is filling up to the rmem_max: Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address ...
4
votes
0answers
43 views

Queuing disciplines are per-interface, what happen with interfaces using same device?

I have read about queuing disciplines here http://lartc.org/. I understand that for instance band 0 of pfifo policy is prioritized over band 2 within same qdisc, but what happen when i have ppp0 and ...
2
votes
0answers
408 views

iptables REDIRECT in combination with matching on interface vs. IP address

I've successfully set up Tor for transparent proxying using iptables (ie, all outgoing traffic is sent through Tor without the application's knowledge). In doing so, I discovered both an odd problem ...
4
votes
1answer
383 views

Can I pipe lpt port over tcp?

I'd like to pipe data in and out to a lpt (parallel IEEE 1284) port on another machine, to remotely use a device. Can it be done in a common unix-y system? I have ubuntu 12.04. :) I was thinking ...
1
vote
1answer
186 views

Can only get one network to be accessible from outside

So here's a quick overview of my setup: I purchased a new Mac Mini server and I am hosting it with a Mac Mini co-lo facility. At first I had them keep OSX installed and I was using VirtualBox to ...
4
votes
1answer
1k views

how to intercept IP packets on linux

I am trying to achieve this goal on Linux (not sure if it is possible and how if so): I need to write a program to intercept all IP packets on an interface, and deliver this packet to a specific set ...
27
votes
1answer
66k views

Using ip addr instead of ifconfig reports “RTNETLINK answers: File exists” on Debian

I have a Debian system working as a wireless router with eth0 and wlan0. Now I added an additional network manually on eth1 with ifconfig: alix:~# ifconfig eth1 192.168.0.2 netmask 255.255.255.0 ...
1
vote
2answers
465 views

Traffic not being routed through Cisco VPN

I'm unable to use my school's VPN correctly in Linux. This is what I did: Installed a fresh x64 Kali linux (latest). Updated all current packages through apt-get Installed the required vpn ...
30
votes
2answers
107k 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 ...
0
votes
1answer
3k views

virtual box debian guest with nat & host-only adapters: 'No route to host' when trying to access host from guest

I have just set up a Debian guest inside VirtualBox, on a Fedora host. I use two adapters: NAT (internet for the guest, which works fine) and host-only (ssh from host to guest, nfs, etc.). I am able ...
12
votes
1answer
2k views

how does ping zero works?

can anybody explain how does ping 0 works and it translate to 127.0.0.1. [champu@testsrv ]$ ping 0 PING 0 (127.0.0.1) 56(84) bytes of data. 64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.039 ms 64 ...
1
vote
1answer
2k views

Cannot Connect to Internet but can SSH into Solaris x86 (vs. 11)

I am able to connect remotely to the machine using SSH, but I cannot ping www.google.com through the machine. I did the following to make sure SSH was enabled (well I know it is, as I am using PuTTy):...
1
vote
1answer
343 views

`cat /dev/ttyACM` loses data when piped through netcat

I'm reading data from /dev/ttyACM0 using cat /dev/ttyACM0 on a Raspberry Pi. The data comes from a device, which sends lines in the form 15.00 1316013 15 where the first number is a value, the ...
0
votes
3answers
694 views

Why do two Ubuntu systems in the same network behave differently in DNS resolution?

I have two systems, both running Ubuntu 12.04, which are within the same network (connected by hubs without routing logic). Both systems are configured quite similar, but not identical. In particular, ...
2
votes
1answer
42 views

Ubuntu blocks access to services when not logged in

I'm not really sure what's going on here. I have the following: A fresh install of Ubuntu 12.04 LTS. Jira 6.1.2 installed as per instructions from Atlassian. Confluence 3.5.13 installed as per ...
2
votes
2answers
3k views

Redirect the default HTTP port to an application

On my CentOS server at mydomain.com, I have an svn web application running on port 8880. I want to hide the port: at this moment, if anybody wants to access, they need to access through http://...
3
votes
4answers
18k views

TFTP configuration problems

I can not get TFTP to work properly on my system. I have set /etc/default/tftpd-hpa to /srv/tftp/ which I have set to permissions 777 like all the contents as well (and /srv/ too) however, whenever I ...
3
votes
1answer
78 views

Per executable UDP port redirection possible?

I have a black box program which listens on a particular UDP port. I'd like it to listen to a UDP port of my choosing. Is there a way to trick the executable into listening on a differen port. I ...
2
votes
1answer
9k views

hostapd, ath5k, nl80211 - how to get it working?

I have this network adapter in an Asus notebook running Manjaro Linux (based on Arch), everything up to date (Kernel: 3.10.11): > lspci -k | grep -A 3 -i "network" lspci: Unable to load libkmod ...
4
votes
2answers
10k views

The netcat command can't access an open port

I have two servers over which I am trying to install some software. One is server1(IP 10.1.2.205) and the other is server2(IP 10.1.2.206). Both are able to ping each other by name and by IP address (...
2
votes
3answers
3k views

Programmatically extract private IP address(es)

I'm looking for an easy way to programmatically extract the private IPv4 address(es) of a computer. Something similar to this question, but restricted to private IPs. As an example, I can extract ...
3
votes
1answer
537 views

VLAN setup on CentOS

I have two networks I want to separate from each other (no inter-routing). I'm using a Linux host as a router and I have a Juniper switch as the switch (obviously). My LAN interface on the Linux ...
3
votes
2answers
849 views

Converting Webserver Logged IP Addresses to DNS

I'm trying to use a bash script to process a webserver log file and replace any IP's it finds with their corresponding DNS hostnames. An example entry of a single line from the log file is: <12&...
5
votes
2answers
3k views

How to assign an additional IP/hostname to a chrooted environment?

While I can simply have e.g. sshd in a chroot environment ("chrootenv") listen to a different port than its parent ("parentenv"), it would be more convenient to have that environment have an ...
6
votes
1answer
1k views

getaddrinfo() from shell? [duplicate]

When you call ping name.domain, it goes through both /etc/hosts and the DNS resolver to obtain an IP. It could be an IP hard-coded in /etc/hosts, or it could be one from the DNS server. It does so by ...
5
votes
2answers
3k views

My Ping command does not seem to ever finish. Does that mean it is suceeeding?

I am pinging a remote IP. I know very little about the Ping command. When I ping the IP, it keeps going and going... I am not using the -t option. Me$ ping 137.30.124.104 PING 137.30.124.104 (137.30....
0
votes
1answer
2k views

Mint 15 on Lenovo G700: wired internet not working (Atheros QCA8172)

Mint 15 doesn't see internet after installing it in dualboot with windows 8 (in Windows internet works well). My network card is Qualcomm Atheros QCA8172 Fast Ethernet (rev 10). What I did: Install ...
3
votes
2answers
4k views

run a script at shutdown in Debain

I am using Debain wheezy. My problem is , I am using a limited 2.5 GB net connection. My idea is simply running a script as #!/bin/bash date >> ~/mydatausage.txt ifconfig -a >> ~/...
2
votes
1answer
860 views

network traffic monitor in Debian?

I am using Debian wheezy. I am using a limited connection for Internet with 2.5 GB data limit. So I shouldn't use Internet beyond that limit. are there any available data monitors which can do me such ...
1
vote
1answer
455 views

network device name is changed by itself

I use a Ubuntu-arm, uname -a Linux arm 3.7.8-x8 #1 SMP Sat Feb 16 04:15:13 UTC 2013 armv7l armv7l armv7l GNU/Linux I have two USB WiFi interfaces that are named wlan0 and wlan1 on /etc/udev/rules.d/...
1
vote
2answers
8k views

Can't get Intel I210 ethernet working on Debian wheezy

I have a server with an Asus P9D-I mainboard. It has two onboard Intel NICs: # lspci -nn | grep Eth 01:00.0 Ethernet controller [0200]: Intel Corporation I210 Gigabit Network Connection [8086:1533] (...
1
vote
1answer
478 views

Bandwidth throttling per user group

I am wondering if it is possible to create a bandwidth shaping/throttling script that shapes traffic based on user group. That is, if user1, user2, are in user group group1, they will have 1mb/s ...
4
votes
4answers
24k views

does the gateway have to be on the subnet?

I was looking at bringing up an interface like this in /etc/network/interfaces (this is on debian), with the gateway outside the subnet: iface eth0 inet static address 10.100.10.99 netmask 255.255....
1
vote
0answers
360 views

Local Server not accessible on Linux

My Internet company set up a local server, where different files are hosted. I can download files at much higher speed from there. But for some reason, the server is not accessible from Ubuntu 13.10 I ...
0
votes
0answers
383 views

What is causing my UMTS modem to hang up?

I am trying to established PPP communication to my mobile ISP with wvdial, but I always get modem hang up message. In my syslog I can see some activity: Oct 29 07:48:47 linuxbox kernel: [31222.852253]...
1
vote
1answer
1k views

What makes a good network planner software on Linux?

I need to design a VoIP network topology for a customer and I need a software that can do as that famous Windows one, don't remember the name.
1
vote
1answer
406 views

Directing hostname to another computer within lan using hosts file

There seem to be more questions like this, excuse me if this is similar. I want to redirect to an IP address om my server computer. This is what I put in my hosts file on the client computer (IMac): ...
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
320 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 ...