Managing and using network connectivity on a unix system

learn more… | top users | synonyms (1)

3
votes
2answers
1k views

Keep losing IP with dhcpcd

I have an Arch Linux install in a VirtualBox VM, and as I'm working all of a sudden, it will lose its dynamic IP address. When this happens, if I check on the status of the dhcpcd service, it says ...
25
votes
4answers
127k 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 ...
1
vote
2answers
214 views

Linux lock down route to avoid changes to the default route

I have a problem that every time I connect my Android phone with USB tethering it hijacks my computer's internet connection. Even if the phone's WIFI is off. I try to manually remove the default ...
7
votes
3answers
10k views

How can I tell if my wifi dongle has access-point capabilities?

I have a Realtek 8191SU USB wifi dongle for use on my Raspberry Pi. I'm trying to set up a wifi access point using this tutorial. However, I'm running into a few errors, and I suspect it might be ...
1
vote
1answer
714 views

Centos VM network configuration problems [closed]

Hi I am new to this stuff and confused. I have a CentOS VM and I cannot get it to see the outside world. I have a bridged adapter. I have tried NAT and a host only network. /etc/sysconfig/network: ...
1
vote
1answer
162 views

Any guides for dummies to setting up a VPN?

I am looking for a guide to setting up a VPN on a VPS, most of the guides don't explain certain elements and I've been left feeling clueless halfway through them. For example when I was installing ...
6
votes
1answer
3k views

resolve the server hostname of a dnsmasq server with multiple subnets

I have a self-made Linux router running dnsmasq. It has two different NICs through which clients are connected; one of them has the subnet 192.168.1. and one the subnet 192.168.2.. My ...
7
votes
2answers
3k views

What's the difference between .local, .home, and .lan?

How can I reliably address different machines on my network? I've always used the .local suffix to talk to computers on my local network before. With a new router, though, .local rarely (though ...
2
votes
1answer
358 views

Determine the interface which was used for booting via PXE

I have a linux machine which was booted via PXE. Can I determine the network interface which was used for booting?
0
votes
1answer
448 views

Connect from Windows 8 from home network to office Linux server

My client's office has a Linux server. Whilst I am in the client's office, I am able to connect to their Linux server from my Windows 8 laptop using PuTTY with their wifi connection. I wonder is it ...
0
votes
1answer
586 views

What is linux peth* and virbr* network interface?

Usually when execute ifconfig I got the "usual" network interfaces: wlan0, eth0 and lo. Those, I suppose to be my PC's wireless adaptor, ethernet adaptor and localhost. I'm using a remote server that ...
2
votes
1answer
340 views

Mark packets between machines (client and router)?

Can I mark a packet on the client's OUTPUT chain and add an iproute policy on the router to route them via a specific gateway? This what I tried to do, but it isn't working. My client's mangle table ...
4
votes
1answer
1k views

How can I secure my Ubuntu 13.04 to prevent network attacks? [closed]

Is there a way I could protect my pc computer from being hacked in an event where the internet conection will be opened? Thing is I am going to Campus Party Colombia 2013 and I was sugested to format ...
1
vote
1answer
316 views

OpenVPN not showing easy-rsa

wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm rpm -Uvh epel-release-6-8.noarch.rpm I did yum install openvpn in the guide then did the following: mkdir -p ...
3
votes
2answers
2k views

Not able to access my local machine from remote server; what's my local IP address?

This is where I spent much time to know why I'm unable to connect to my local box from my own remote server (VPS); seems to be my local box's IP address issue. To begin with, let me 1st tell how I ...
2
votes
0answers
306 views

Network block after restart

I'm running wheezy and I don't want to install network-manager. I have a problem with network interfaces. When I restart the interfaces I cannot use any connection anymore. I cannot reach internet ...
2
votes
2answers
3k views

“wpa supplicant: No network configuration found for current AP” - carl9170-driven wifi adapter glitching on Debian 7

I've got a Debian 7 machine with Linux3.2 kernel and a USB wifi adapter with Atheros chipset (D-Link DWA-16 Xtreme N Dual Band), which in theory should work. Indeed, I managed to establish a wifi ...
1
vote
0answers
2k views

Debian 6: Can ping default gateway, but not the IP address of any server on the Internet. Routes appear OK

I can't connect to the Internet from our server. I'm able to ping the default gateway, LAN connectivity works fine but I can't ping any public IP (say, 4.2.2.1, an open DNS server which I know replies ...
3
votes
1answer
176 views

Server pinning one core

I'm working on a server using Vert.x in Java and I'm noticing some performance problems when running on a dedicated server running Ubuntu 12.04. The server picks up the incoming HTTP requests, does ...
5
votes
1answer
5k views

Execute custom script when an interface gets connected

I using a USB wifi dongle to connect to the Internet. When the wireless connection dies, I lose some iproute rules too. How can I reset these rules when the interface connected again?
4
votes
1answer
3k views

How to use two gateways with the same IP address?

I have to configure a NAT and manually split internet traffic between two gateways which are connected to a Linux box. There was no problem if each gateway has a specific IP address. I can do this by ...
9
votes
1answer
1k views

How to tell if mysterious programs in nethogs listing are malware?

This is what I see in Nethogs: I'm concerned about the listings with PID ?, running as root. How can I find out what these are? I'm running Linux Mint 14. Please let me know what other information ...
1
vote
2answers
2k views

proxy settings ignored by apt-get manager in Ubuntu 13.04

I am using Ubuntu 13.04 in company network, http proxy works fine with my user account but still I cannot install or update anything with apt-get : Proxy Authentication Required ( Forefront TMG ...
2
votes
1answer
2k views

How to see which URLs are blocked by Privoxy

I want to see a log of which URLs are blocked by Privoxy, but I cannot find this anywhere. Relevant lines in my configuration file (/usr/local/var/log/privoxy/logfile) are as follows: confdir ...
1
vote
1answer
80 views

Get network under Network-Manager's management

Initially, when I had installed Debian 'Wheezy' on my old trusty laptop, it's network was managed by Network-Manager. However, at some point, I think I did something, which lead to the network ...
2
votes
1answer
873 views

udev Unable to Rename Network Device: Device or Resource Busy

I'm trying to use udev rules in order to give my network interfaces static, consistent names. However, it seems like there is some race condition happening preventing these rules from consistently ...
1
vote
1answer
585 views

Pulseaudio over network - change output on-the-fly

I successfully configured PulseAudio server and client to send audio over network. It uses direct connection: http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/Network/#index1h2 ...
15
votes
3answers
60k 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 ...
1
vote
0answers
85 views

Failed updating posts on wordpress when use linux, but succeed on windows

I'm using Wordpress for blogging. And I use Windows 7 accompanied with Linux Mint on my PC. Recently I find that I can't update my posts on Wordpress when using Linux Mint. However, when I switch to ...
12
votes
3answers
3k views

Automatically set Linux timezone according to location

How can we automatically set the system default timezone in Linux using the Internet? As I see it, NTP servers can update only time, but not timezone. Is there any server that can change the timezone? ...
0
votes
1answer
1k views

CentOS bridge not passing traffic to eth1?

I'm setting up a network bridge on CentOS 6.4 and I'm not able to pass icmp or tcp traffic via eth1. UDP traffic looks fine. I'm sure that my test host is cabled to eth1 correctly. My config files ...
2
votes
1answer
193 views

2 snmp packages; ports 161/162 already in use, can I configure additional ports?

I have 2 snmp packages to install on a standalone server. 1 package is already using ports 161/162. Where can I configure a Cacti Listener and which ports can I use? Also which snmpd.conf file ...
2
votes
1answer
524 views

How to create a new user with restricted network access [duplicate]

I want to create a new user (or group), so that any application running with this user can't connect to the network. @Michael Kjörling I have followed your suggestion(with Ubuntu 12.04 64bit) and got ...
3
votes
1answer
1k views

How do I create a USB networking interface for passing internet to my Android phone?

I am working on passing through the internet from my computer to my phone (running Android) over USB. I'm not sure how to achieve this, but I know I will need a usb network interface, such as usb0. ...
4
votes
2answers
13k views

No MAC corresponding to IP in `arp` table: how to troubleshoot?

I've got a Debian 7 linux machine and a TP-link MR3020 router attached to it via ethernet cable at eth0 interface, working in WISP mode meant to make it a client rather than an access point: I also ...
1
vote
1answer
311 views

OpenVZ bridged networked adapters won't work from sample configs

I've made a copy of the basic config and added the line: NETIF="ifname=eth0,bridge=br0" When I create a new machine and enter it I can't make the network adapter work yet creating an instance from ...
4
votes
1answer
633 views

NetworkManager connection sharing doesn't seem to NAT packets

After setting up network sharing the easy way on the Ubuntu machine, and getting an IP address via DHCP on the Arch Linux machine downstream, the Arch machine is able to ssh to the Ubuntu machine and ...
2
votes
1answer
906 views

Process calling getaddrinfo() at boot gets permanently stuck with bad /etc/resolv.conf?

I'm running pianod, a Pandora client/server, on a Raspberry Pi with Arch Linux ARM. I have pianod set up to run as a service at boot. It starts up before the network stack, so getaddrinfo() fails. ...
2
votes
4answers
6k views

How to change user agent on all http requests made from my machine with Squid intercepting proxy?

I'd like to change the user agent on all HTTP requests made from this machine. It's easy enough to change the user agent in each browser, but other apps also make http requests. It's vital I catch ...
3
votes
2answers
5k views

ethtool get permanent MAC address returns all 0's

I need to read permanent (burned-in) MAC address of network adapter. Since MAC address can be easily spoofed, I need to read the real one which is written on EEPROM. I need to do it using C++ on ...
2
votes
0answers
1k views

Adding multiple gateways for separate physical interfaces with various metrics/priorities

My system has 3 interfaces. These are eth0, eth1 and usb0. eth0 is linked to my router and is the line I want to be used by default. eth1 is un used. usb0 is a 3G phone that's tethered. My issue is ...
2
votes
2answers
565 views

How to disconnect a remote volume in dolphin [closed]

I understand how I can mount a distant volume in Dolphin, through the Network place and the Add Network Folder command, but how can I disconnect from such a remote file system? I want to ensure a ...
5
votes
2answers
566 views

LD_PRELOAD or similar to prevent network access

I'd like to start a program disconnected from the network (because immediately upon starting it tries to download huge amounts of data, which can be prevented by changing settings as soon as it ...
0
votes
2answers
2k views

Unix: How to Test Ip Address is resolved to name

Unix: How to Test ip Address is resolved to name. I need to check whether ip address can be resolved to name using DNS entry via shell script. Code: DNS_Lookup() { LOOKUP=$(nslookup $1) ...
2
votes
3answers
17k views

OpenVPN - Socket bind failed on local address [AF_INET] IP:1194: Cannot assign requested address

How get it resolved? I am trying to start the openVPN server so that i can login remotely using username: demo and password: demo, but openVPN server is failing to start. What am i doing wrong, how ...
2
votes
1answer
394 views

How do I test the performance of my Wifi access point?

I have a home wifi access point consisting of a small Intel board with Atom CPU, 4 GB of memory and a PCI wifi card. Everything works fine, only that I experience major lags during playing of computer ...
1
vote
2answers
459 views

VNC connection taking a long time to connect (essentially…never)

I have my Ubuntu 13.10 desktop with vnc setup and installed. I'm using both a Macbook's integrated vnc remote desktop program and Windows 7's built-in Remote Desktop program to vnc. Both give the same ...
1
vote
1answer
131 views

Unstable network on integrated Debian environment

Good afternoon, I recently installed Debian Wheezy (7.0) on a freescale board (SABRE MCIMX6Q / iMX6Q) and discovered some disturbing lags for all network communications. What I have tried so far was ...
0
votes
1answer
494 views

How to get switch MAC address if it's a layer2 one?

arp -a doesn't show it. How can I get the MAC of it then? (on ex.: from a Linux)
2
votes
0answers
25 views

Route a particular process over another gateway [duplicate]

I have 2 internet connections on differnet interfaces. I have eth0 which is internal ip of 192.168.1.70 and then I have another network connection to a different network which is on wlan0 ...