Managing and using network connectivity on a unix system

learn more… | top users | synonyms (1)

10
votes
3answers
12k views

Only allow certain outbound traffic on certain interfaces

I have rather an odd issue. I have a server with two network interfaces eth0 and eth1. Each are connected to a different network. Each network has a internet gateway. The server has various outbound ...
2
votes
1answer
424 views

Whole program name not visible in nethogs

I'm using the command sudo nethogs to watch network traffic. I have a problem in that the name of the program is too long (it doesn't fit in the PROGRAM column). I haven't found any nethogs ...
3
votes
4answers
2k views

Private VLAN's under Linux?

http://blog.ine.com/2008/07/14/private-vlans-revisited/ Has anyone tried private vlan's under Linux? Any experiences with them? My real question is does anybody have howtos regarding this?
2
votes
1answer
90 views

Network configuration from within a program

Are there any program accessible equivalents to network configuration tools such as 'ifconfig', 'iwconfig' e.t.c.? I am looking for an elegant method of accessing the functionality and information ...
2
votes
1answer
287 views

How to set up the server to use IPv6 network

I have a server which is able to connect the network through IPv6 tunneling. I want to use it as a proxy server. I have to things to understand: How to set up the DNS? Is there any open DNS that ...
3
votes
2answers
17k views

/etc/hosts for Debian

I was trying to get a perl script that contacts a PostgreSQL database to work on a server. This script was mysteriously failing. I then realised that localhost was not in the /etc/hosts file. The ...
4
votes
1answer
2k views

Inability to use IPv4-mapped IPv6 on debian squeeze

I have a squeeze box that I'm testing ipv6 on... eth3 is the interface... if I set up an 'normal' ipv6 address (::101:c0a8:3132/120), I see expected results in ifconfig... eth3 Link ...
0
votes
1answer
523 views

Ubuntu 10.10: Why does external dial-up modem randomly disconnect from internet?

Background: Dial-up is the only option for this computer Gave up on the internal modem last week; now using an external USB modem. I finally have the computer talking to the internet. HOWEVER, after ...
4
votes
3answers
816 views

Cannot connect to wireless at School

I'm using Debian Mint and my internet has worked everywhere on earth (Home, Mcdonalds, other peoples homes) except at school where I really need it. It will always see the networks and will 'try' to ...
4
votes
2answers
502 views

How to synchronize a networked drive and an external drive (Ubuntu & OS X)?

In light of a recent hardware failure, I've decided that it's time to be a little less lax regarding back-ups. What I have: An Ubuntu 10.10 'server/NAS' A MacBook 5,2 A WD external HDD The server ...
3
votes
3answers
2k views

Accessing a linux machine with a name (not ip address)

When I access a linux machine with sshfs, I take the following steps. Get the ip address of the linux (the ip address is dynamically allocated to linux) Run sshfs id@ip_address:/HOME_DIRECTORY Can ...
4
votes
3answers
918 views

When networkmanager is used, OpenSuSe gets stuck during boot for 10 minutes

I have this problem on all machines that I every installed (different configurations, different geographical locations, even different OpenSuSe versions) and it's extremely irritating. When I turn on ...
5
votes
3answers
2k views

How do Linux drivers work and where do I find them? (esp. NIC driver)

I am wondering how a driver functions under Linux. Are drivers a single file that can be edited? Is there a list of current drivers in use or is there a different place to find them for each device? ...
5
votes
1answer
5k views

How to diagnose a reliably unreliable connection?

Where I'm living now, the internet connection (wired) shows the following weird symptoms. They seem to be independent of whether I use host names or IP addresses. Pinging works Skype works Wget ...
1
vote
1answer
1k views

how to troubleshoot intermittent no route to host error

I have a program that most of the time works, but every now and then it fails with a no route to host error. The machine is running AIX 5 and has five network interfaces en1, en3, en5, en7 and en10. ...
1
vote
3answers
1k views

Connect my laptop through desktop to internet

I'm currently at work and our wifi is down. I usually connect my desktop to the internet through eth0 and my laptop connects through wifi. I have an extra port on the back of the desktop (eth1) and ...
2
votes
1answer
3k views

Why does my Debian VMWare virtual machine lose all network connections ~15 minutes after boot?

I’m having a strange networking problem with a Debian (6) VMWare virtual machine on my Mac. Around 15 minutes after starting it up, I can no longer SSH into, view websites served from, or ping the VM. ...
2
votes
2answers
5k views

Samba reporting not enough free space

After having some problems with my NAS, I switched to Debian/Lenny. I've managed to install and configure most of the software I need, but I've hit a brick wall with Samba. I can access the shares ...
20
votes
6answers
25k views

Linux: allowing an user to listen to a port below 1024

I need to allow an user (different from root) to run a server listening on port 80. Is there any way to do this?
4
votes
4answers
3k views

“internet connection checker one-liner”

With this I can check, that there is "internet connection". if there is no "internet connection" (succesfull pings to this 2 places), then it waits 600 sec, then it runs along: ping -W 1 -c 4 ...
0
votes
2answers
3k views

What could cause network latency on a fresh Ubuntu Server 10.10 install?

I have recently purchased a machine to run an online game server. I put the machine together and have installed a fresh copy of Ubuntu Server 10.10. I have noticed that the game server produces a ...
4
votes
3answers
3k views

Send duplicate packets over two Internet connections

I need to duplicate an RTP stream over two different (non-reliable) Internet connections. On the receiver side, I will probably run a custom program that will use a buffer and rebuild the stream ...
3
votes
4answers
2k views

Simple way to create a tunnel from one local port to another?

I have a development server, which is only accessible from 127.0.0.1:8000, not 192.168.1.x:8000. As a quick hack, is there a way to set up something to listen on another port (say, 8001) so that from ...
2
votes
3answers
459 views

Cannot access network on the command line in Ubuntu 10.04

I am having an issue which I am unable to diagnose. I am unable to access outside the local network from the command line. Strangely, ftp works from the command line. But ping, links, traceroute, wget ...
11
votes
5answers
13k views

Why does SCP hang on copying files larger than 1405 bytes?

I'm trying to copy a file from one of my local machines to a remote machine. Copying a file with size upto 1405 bytes works fine. When I try to scp a larger file, the file gets copied but the scp ...
15
votes
6answers
44k views

How to change the order of the network cards (eth1 <-> eth0) on linux

Is there any way to swap network interfaces (eth1 <-> eth0) after system installation. My brand new Debian 6.0 install assigned PCI network card as "eth0" and motherboards integrated network ...
9
votes
1answer
5k views

How to utilize TUN/TAP tunnel from user program?

I recently discovered the existence of Linux TUN/TAP interfaces and am still trying to understand them. I think I get the basic concept - pseudo devices are created which emulate a network interface ...
3
votes
4answers
2k views

Sniffing packets through router

I would like to create a system like this. The user would connect through a wifi network which would reroute all http requests and responses through the network card on a computer thus allowing that ...
12
votes
2answers
50k views

Orphaned connections in CLOSE_WAIT state

I've got a SLES machine that accumulates TCP connections in a CLOSE_WAIT state for what appears to be forever. These descriptors eventually suck up all available memory. At the moment, I've got 3037 ...
3
votes
1answer
378 views

NetBSD Serial Port Gateway

I have an old Toshiba Satellite 4015CDT, with Pentium II MMX, 32MB RAM, 4GB HDD. It also has one USB 1.0 port, parallel and serial ports, a 3.5" floppy drive and a CD-ROM drive (almost dead). Also, ...
6
votes
4answers
6k views

All commands that should be used to connect to wifi in command line

I would like to switch from gnome to awesome and I would like to connect my wifi network in command line (instead of using gnome tools). So, I searched on the internet and found approximatively the ...
2
votes
0answers
440 views

Network via ieee1394 is unreachable (PC and laptop)

I decided to connect my PC to the laptop via firewire. All interfaces are up, but no packets can be send/recieved. I'm using Linux Slackware64-current (kernel 2.6.37.4) Laptop (Dell Vostro 3700) has ...
4
votes
3answers
490 views

Multicasting in Linux

I want to do multicasting in linux for the video/audio/data file transmission. Is there any utility/tool to do so ?
4
votes
1answer
326 views

NetBSD 5.1 NDIS Kernel Compile Error

I have an old Toshiba Satellite 4015CDT, with Pentium II MMX, 32MB RAM, 4GB HDD. It also has one USB 1.0 port, parallel and serial ports, a 3.5" floppy drive and a CD-ROM drive (almost dead). I've ...
4
votes
1answer
2k views

How to connect two Linux computers with bluetooth?

I have 2 computers, both have Ubuntu 10.10 desktop edition installed. Both have bluetooth dangle, but the manufacturers are different. I want to connect the two computers and share the Internet ...
3
votes
1answer
1k views

After cloning Fedora 14 install to another machine, onboard NIC is seen as eth1 instead of eth0. Why?

I have the following procedure for replicating a Fedora workstation setup. Boot from a Live CD, make tgz's of the filesystems. Go to new machine, make filesystems, dump the tgz's in the proper ...
3
votes
1answer
650 views

Ubuntu 10.10 network connection cut down after few minutes of starting

Ubuntu 10.10 network connection works fine at the start, but few minutes later the network manager pops up a message saying disconnected you are offline and Chrome browser returns an error message ...
3
votes
3answers
7k views

I am failing to clone a git repo when behind a proxy

When I run git clone git://git.gnome.org/tracker, I get: Cloning into tracker... git.gnome.org[0: 209.132.180.173]: errno=Connection refused fatal: unable to connect a socket (Connection refused) ...
6
votes
4answers
7k views

Is there a way to set network proxy system-wide?

If I want to have GNOME applications (as well as Firefox and Chrome) access the network through a proxy, I need only use gnome-network-properties (a nice and simple GUI I must say). For other apps ...
4
votes
1answer
695 views

Is there a tool that lets me share internet connection through Wifi?

I really like OS X's ability to share the internet connection through everything within several mouse clicks, but it seems that the Mac is doing something funny that prevents Linux machines from ...
27
votes
6answers
46k views

Determining what process is bound to a port

I know that using the command: lsof -i TCP (or some variant of parameters with lsof) I can determine which process is bound to a particular port. This is useful say if I'm trying to start ...
1
vote
1answer
1k views

Two networks cannot be accessed simultaneously

I have two networks on a server. One being my internal network, and the other being an external IP address. This is on Debian Lenny. Here is my /etc/network/interfaces file: # This file describes ...
5
votes
3answers
5k views

How can I use Synergy when connected through different routers?

I use synergy to control my laptop from my desktop when I have my laptop docked at my workstation. Currently, I need to keep my laptop wired to the same router that my desktop is connected to in ...
3
votes
3answers
448 views

How to determine if two devices are connected in network?

Is there a free linux softwear to determine if two network devices are connected? Or a php class can be also good... I'd like to draw the network topology. I can determine the devices in the network ...
0
votes
1answer
1k views

Please recommend a GUI telnet client

I'm looking for a simple GUI telnet client. I only ever used the CLI one, simply named telnet.
2
votes
2answers
954 views

no network device found after Kernel update

So I managed to install Debian 5 on an eBox 3300MX (an embedded type computer). I added a custom kernel after getting a basic install done. That was to get the network card to work. After that, I ...
4
votes
2answers
5k views

bridged networking with kvm

I'm trying to get a guest virtual machine connected to my network using bridging. I've come across a couple of resources online, but they seem to be out of date, deal with xen or Ubuntu or don't seem ...
4
votes
2answers
682 views

How can I see dumps of wholе HTTP packets?

I need to see whole HTTP packets sent and recieved by an application for debugging purposes. How can this be done in command-line?
4
votes
4answers
934 views

How to get the network status (online/offline) and attribute it to a variable in shell script?

How to get the network status (online/offline) and attribute it to a variable in shell script?
19
votes
7answers
18k views

How to get my own IP address and save it to a variable in a shell script?

How can I get my own IP address and save it to a variable in a shell script?