Managing and using network connectivity on a unix system

learn more… | top users | synonyms (1)

0
votes
0answers
26 views

Can slattach control a serial WiFi device?

I have a Wi-Fi device which is driven by AT commands over a USB-Serial connection. I am able to successfully make a serial connection to the device and set the SSID, PSK, obtain an IP address, and do ...
-1
votes
2answers
56 views

how to get the return value of wpa_supplicant?

My question is really simple I want to get the return value of the command wpa_supplicant, when connected to the internet, to know that I am connected or not with a shell script.
2
votes
2answers
677 views

nc: bind failed: Address already in use

I am trying to execute nc command from a script , my script is executing nc command on different ports of Destination using the same source port. e.g: nc -p 8140 -z -v -n 10.X.X.9 9090 nc -p 8140 -z ...
1
vote
1answer
53 views

Can I mirror lo as eth0? [closed]

Is it possible to make eth0 point to lo? I have dumb process that keeps acting as eth0 exists while it doesn't.
0
votes
0answers
77 views

AiX topas snapshot to web

My script for taking snapshot from TOPAS looks like this: #!/usr/bin/bash whoami export TERM="xterm" (sleep 3; echo q)| topas -Emi 2 | \ tr -d '\r' | \ ...
2
votes
2answers
2k views

Arch Linux not connecting to Wifi anymore

I have been using Arch Linux over a month now. I have used wifi-menu to connect to my Wifi Network. I run the command every time I start my laptop. wifi-menu always gives this error when I try to ...
1
vote
1answer
33 views

How can I translate these OpenVPN client configuration instructions to work with Fedora 20?

Here's the link to the full instructions. When I get to step 9, under the heading "9. Setup Client Config Files", it says: Now we will configure the openVPN to work as client. Remember that we ...
0
votes
0answers
101 views

Access local UPNP and port forwarding while using OpenVPN

I have a laptop with Arch Linux and NetworkManager. When I connect to any wireless network I establish client OpenVPN connection to PrivateInternetAccess (my VPN provider) for privacy. SSH and ...
1
vote
1answer
42 views

Wait until no incoming network connection for N minutes, then execute a command

I want to put my Debian Wheezy home server to sleep, if it wasn't accessed through the network for a certain amount of time. I thought of a bash script that uses netstat to count the number of ...
1
vote
0answers
80 views

udhcpc starting before PHY is up

I'm having a issue with my Ethernet PHY not being up before eth0 tries to get an IP address This is my etc/network/interfaces # Configure Loopback auto lo iface lo inet loopback # The primary ...
0
votes
0answers
109 views

How to use Ipfire as a router and modem ? red network problem!

I have Installed Ipfire Linux On an old pc and I have configured green network with A network card and the same for the red network, I want to use this server as modem and router in the same time (I ...
0
votes
0answers
56 views

Dell Inspiron 6400 wifi not working with Joli OS 1.2 - tried various fixes

I have been using Ubuntu, Xubuntu and Kubuntu a while now. I've just installed Joli OS on an old Dell inspiron 6400. I've read loads of fixes to get the wifi working but to no avail. I have tried the ...
1
vote
1answer
81 views

How can I know if a network is password-protected before connecting to it?

What command can I run to determine the security of a wireless network, without needing to connect to it? I want to know if it needs a password to connect or if it's a public network without security. ...
1
vote
2answers
56 views

What could cause a ping request to return inconsistently timed results

Here is a sample run: 64 bytes from 192.168.1.9: icmp_seq=27 ttl=64 time=8852.917 ms 64 bytes from 192.168.1.9: icmp_seq=28 ttl=64 time=7918.074 ms 64 bytes from 192.168.1.9: icmp_seq=29 ttl=64 ...
2
votes
1answer
74 views

How to make HA Heartbeat failover when either of two NICs connection is lost?

I was successful in configuring a simple Heartbeat setup on Ubuntu 12.04, which will fail-over two VIPs to a second server when BOTH Ethernet links fail. What I can't figure out is how to fail-over ...
3
votes
1answer
72 views

Linux: How to auto-configure IP routing based upon ping results

I've got a linux server with two possible connections to the net: one is a slow, high-latency cellular modem (ppp0), and the other is through fast wifi->broadband (wlan0). The problem is that the ...
3
votes
1answer
30 views

Letting an OVZ container use the hosts ip

I have a server over at OVH and it has Proxmox installed on it. I've created a container but I want to host a server in there and I want it to use the host's external IP. How can I do this? I hope I ...
0
votes
1answer
52 views

alternatives to adding entry in /etc/hosts [duplicate]

I would like to access a remote host using a short name. On a system where I have admin rights, I would achieve this by adding an entry in /etc/hosts file, something like this 121.121.122.1 ...
0
votes
0answers
69 views

How to install and configure Dynamic VLAN Server?

I have below setup: Firewall: Fortinet 240D Core Switches are 2 one is Juniper EX 4200 & second one is EX 3300 I want to configure a Dynamic VLAN Server on Ubuntu Linux 12.04.3. Kernel and ...
3
votes
1answer
54 views

Did this tutorial block pings to my server?

I am a programmer teaching myself linux admin stuff. I followed this tutorial to setup a firewall on a VPS. As a part of that tutorial, I block all traffic except for web traffic and SSH traffic. I ...
1
vote
1answer
25 views

Will this open up a non-standard port to ssh?

I am following tutorials on iptable and want to allow ssh traffic on my non-standard SSH port = YYY. I think this is how you do it, but want to double check so I don't lock myself out of my server. ...
0
votes
1answer
45 views

What does the last column in this IP table mean?

From a tutorial, I run $sudo iptables -A INPUT -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT $ sudo iptables -L and get target prot opt source destination ACCEPT ...
0
votes
2answers
39 views

Check that fail2ban is running?

I just installed and configured fail2ban. I want to make sure it is working. I don't want to block myself from the server so I can't just login (poorly) a bunch of times. How do I see that fail2ban is ...
2
votes
2answers
107 views

change eth0 to eth1 without udev

I have very interesting issue, We have Redhat 4 Linux and it is has 4 Ethernet interface. eth0 eth1 eth2 eth3 Now only eth0 is connected to LAN and everything working find. We have special software ...
0
votes
2answers
102 views

What is the default action for incoming packets that don't match explicit iptables rules?

CentOS 5.x I'd like to understand what is specifically happening to incoming packets that don't explicitly match rules in my iptables chains. Is the default action to reject them? Or drop them? ...
2
votes
1answer
44 views

How might I log my Internet traffic, grouped by IP address/hostname, port, etc?

While I'm going to be switching to a slightly saner plan soon, being stuck on a 5GB monthly bandwidth cap has made me very data-conscious, and I'm looking for a way to log my Internet usage in such a ...
1
vote
1answer
204 views

How do you set a vlan priority on a nic in freeBSD?

This question could arguably be posted on both networking.stackexchange and unix.stackexchange. I'll start here. I have a freeBSD (pfsense 2.1) server running as a router on google fiber. In order ...
1
vote
1answer
74 views

Bridging two interfaces for intranet only

We have two ALT linux servers with real IPs. They both are in intranet via commutator. Each of them also has an additional LAN network interface. We want to connect these servers to each other ...
2
votes
2answers
51 views

How to listen to a specific port and return 200 status

How can I listen on my server on specific port and just return HTTP 200 status if someone tries to connect ? Can nc be used to return HTTP status ?
2
votes
1answer
114 views

How to check what `wondershaper` has done?

I used this command: sudo wondershaper eth1 20 20 to limit network traffic. The command shows no errors. But I need a command or network monitor or gui which confirms this limitation. For example, ...
1
vote
1answer
1k views

hostapd will not start via “service” — but will start directly

I am having trouble getting hostapd to start as a service. It fails when I try to start it: $ sudo service hostapd start [FAIL] Starting advanced IEEE 802.11 management: hostapd failed! From what ...
5
votes
1answer
316 views

Cannot connect to any localhost connections

I'am using Centos 6.5 with latest updates. My problem is that whenever i try to connect to some local service it just hangs for example: wget wget 127.0.0.1 --2014-03-11 12:43:42-- ...
3
votes
1answer
77 views

tcpdump command works only on local ip

I am trying to capture some IP packets in my personal LAN with tcpdump, through the command tcpdump -A -i eth0 'tcp and (((ip[2:2] - ((ip[0]&0xf)<<2)) - ((tcp[12]&0xf0)>>2)) != 0) ...
2
votes
1answer
107 views

Why does't stopping the nginx server kill the processes associated with it?

When I stop nginx like this on ubuntu 12.04, I get the following errors: $ sudo service nginx stop Stopping nginx: nginx. $sudo service nginx start Starting nginx: nginx: [emerg] bind() to 0.0.0.0:80 ...
0
votes
1answer
93 views

SSH to Linux Container from Other Machine

I am trying to learn about Linux Containers and this is my first encounter with servers, ssh and many other things that I do not know the terms yet. I create five different containers and authorized ...
3
votes
1answer
69 views

How can I access networked filesystems that I've mounted in Nautilus?

I've mounted a networked filesystem in GNOME by clicking on the icon in the left of Nautilus. However, when I use the terminal, I can't figure out how to access that filesystem. Is it possible?
2
votes
2answers
286 views

Wireless bridged networking in KVM. Why is it so complicated?

I've been using VirtualBox (and sometimes VMWare) for years and I've never had any problem with the virtual network adapters, no matter if the physical ones were wired or not. I also played some time ...
2
votes
1answer
884 views

No wired ethernet connection

I'm using elementary OS (based on Ubuntu 12.04) and yesterday I woke up to no wired ethernet connection. As far as I can remember I changed absolutely nothing, it was working at night and not anymore ...
2
votes
1answer
79 views

Network connectivity problem - Debian 6 server

I'm having a problem with a Debian 6 server where it looses network connectivity and doesn't come back (server does not respond to pings, and can't connect to any services). The problem happens ...
2
votes
0answers
101 views

DHCP lease acquired , yet no ping, not even to default gateway

I've just installed Debian Wheezy on my PC using netinstall. I can only use its wifi. My interface has been recognize by the system, and I've used: iwconfig wlan0 essid MY_HOME_AP (I've switched ...
1
vote
1answer
82 views

How to tell what wireless protocols my network card is using?

I want to know which wireless protocol my card is currently using. I found a similar question that tells you what network protocol your card supports, but I want to confirm that my card is actually ...
2
votes
1answer
62 views

Forward a host's network traffic to another host with the exception of SSH traffic

I am trying to redirect all the network traffic received in a old host to a different host. For that I created two new rules with iptables on the old host: echo 1 > /proc/sys/net/ipv4/ip_forward ...
0
votes
2answers
537 views

I'm not able connect internet from vmware player with centos

I installed centos 6.4 and when I installed I set the network config. But somehow centos did not save them. Now I forced server to use dhcp but it is taking wrong IP address and it is not able to ...
1
vote
1answer
59 views

Finding data transfer rates on individual TCP/IP connections

In a application that has multiple TCP/IP connections with other applications on a Linux system how can I find the amount of data transferred between individual connections.
2
votes
1answer
50 views

How does the kernel know which file descriptor to write data to after fork() in a concurrent server?

Basic concurrent client/server architecture: There's a main loop listening for requests on a port (for example 3000), after accepting the connection the server spawns a child process that ends up ...
0
votes
1answer
51 views

Get Network activity

I have an embedded board running Linux with http, ftp and some other servers. I need a way to detect when there is no network activity both http, ftp etc. I will make a linux program, that will ...
1
vote
1answer
73 views

Does a Virtual Machine Server Have a Web address? [closed]

Hi I'm trying to set up a server for my moodle virtual programming lab. It has something named a jail server that is used to run code remotely. I have a Ubuntu server set up with all the correct ...
1
vote
2answers
59 views

Attach to an existing ssh tunnel

I have an existing ssh tunnel which connects machine A to C over B. #user@A: ssh -N user@B -L 9999:C:9999 Is there any way to create a new ssh tunnel on D and attach it to the existing tunnel so ...
1
vote
2answers
145 views

Wheezy:ifconfig etho down - can still ping?

deathstar> ifconfig eth0 down deathstar> ifconfig -a eth0 Link encap:Ethernet HWaddr 00:23:ae:24:f6:76 inet addr:192.168.1.30 Bcast:192.168.1.255 Mask:255.255.255.0 ...
0
votes
1answer
56 views

Connect to LAN resource via ssh tunnel

I have the following problem. From machine A I connect to machine B over the internet via ssh and port forwarding. Machine B is part of my local network and has connection to machine C which acts as a ...