Managing and using network connectivity on a unix system

learn more… | top users | synonyms (1)

2
votes
2answers
161 views

Force IPv6 only through Miredo

I have an Ubuntu PC with Miredo's implementation of the Teredo protocol. I want to temporarily make it so that I can access IPv6-only addresses with all IPv4 networking available solely for Miredo to ...
1
vote
0answers
355 views

Command for finding open ports

On my linux servers I have this alias set: alias ns="sudo lsof -Pi|grep -v ESTABL|grep -v CLOSED|grep -v -e '->' | tr -s ' ' '\t' | awk '{print $3 "\t" $8 "\t" $5 "\t" $9 "\t" $1}'| column ...
1
vote
0answers
1k views

Route outgoing traffic to different gateway based on port

I am trying to get around my Usenet download bandwidth restrictions based on IP. I currently have two IPs from my ISP to double the download speed. So far I have it working and getting double speed ...
1
vote
0answers
471 views

SNAT / Masquerade with shorewall

I've got a little question about Masquerading and SNAT in combination with shorwall and KVM. The Operating System is Scientific Linux 6.4. Setup is like this at my root server: Virtual Machine IP ...
0
votes
1answer
199 views

How to automate route commands

For some reason everytime I connect to my VM I have to manually launch these two commands for it to connect to the Internet. route add 198.245.49.254 dev eth0 route add default gw 198.245.49.254 Is ...
2
votes
1answer
596 views

What network interface does Linux route traffic through by default? [closed]

I have a VPS with 4 IP addresses. I am changing the IP address of eth0 on daily basis. eht0:1 has its own IP address. eth0 (192.168.1.3, 192.168.1.4, 192.168.1.5) eth0:1 (192.168.2.1) I have my ...
1
vote
0answers
205 views

Debian access point is detected, but provides no Internet access

I am use Debian sid. I want to share my network (ppp0) via AP (Access Point) to my mobile device. This is my configuration. /etc/hostapd/hostapd.conf : # WiFi Hotspot interface=wlan0 driver=nl80211 ...
1
vote
0answers
628 views

How to redirect/forward between a tun/tap device and a socket using linux tools?

I have a socks5 proxy that is bind to eth0. It opens two ports, Port1 is used to connect to remote (for example a http server), Port2 is to listen for clients to connect. Then I created a tun device. ...
4
votes
4answers
2k views

How to show network adapters with their statistics?

Is there any terminal command I can use to display all the network adapters like eth0, wlanoand their data statistics like data transmitted & received?
0
votes
0answers
53 views

Support for old network cards in lightweight distros?

I'm planning to revive and old desk pc, but it is hard for me to choose a distro. My problem is to find a distro that has a good support for old hardware, especially of network cards for wireless ...
9
votes
1answer
798 views

Send a packet over the network even when its target is the local host

Under Linux if you send a packet to the address of one of its network interfaces, this packet is routed internally, it is never sent over the network. That's the right thing in 99.99% of the cases. ...
6
votes
1answer
2k views

Wi-Fi with WEP from command line in Ubuntu 12.04, Kernel 3.8.0-29-generic

I have removed network-manager and am trying to configure Wi-Fi with WEP manually. I am running on an X1 Carbon. Here are the commands I am running: ifconfig wlan0 down iwconfig wlan0 essid ...
2
votes
2answers
2k views

Wifi works in local, no internet connection. Debain 7

I installed debain on an old PC, the KDE version. I have internet over wired. I can connect to my router, I and can ping it over wifi - ping 192.168.1.1 is successful. I can ssh into other machines, ...
4
votes
1answer
149 views

Does traffic addressed to one of a Linux system's own interfaces ever leave the system?

I have two separate servers running on the same port on a Linux system, one binded to the loopback interface, and the other to the public Ethernet interface. If I connect a client on that system to ...
1
vote
1answer
127 views

How to block all the network traffic from my running user [duplicate]

How to block all the network traffic from one user? But other users are alive to the network that the blocked user is able to connect to other users who have the permission to the internet.
0
votes
1answer
142 views

Kernel panic on “apt-get upgrade” with DWA-160

I'm running on a minimal Ubuntu server 12.04.3 install and I installed a d-link DWA-160 usb wifi adapter as per the instructions shown in this page. After successfully connecting using these ...
4
votes
3answers
949 views

Can I set my Debian box to use OpenDNS nameservers if it uses DHCP?

I have a Debian box with this in /etc/network/interfaces: auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto wlan0 iface wlan0 inet dhcp wpa-ssid NetworkName wpa-psk NetworkPass and ...
0
votes
1answer
500 views

How to recognize hostname on the port number 8080 in Ubuntu machine?

I have a very basic question here. This thing is puzzling me a little bit. I have two machines, one is my local desktop running Windows and I have cygwin installed in it and second machine I have is ...
6
votes
2answers
4k views

How to Provide login delay in ssh

I wanted to provide login delay while login through ssh .I tried couple of ways of doing same but couldn't find desired result. I tried steps provided by given link. ...
0
votes
1answer
226 views

What tool to use to monitor network issues? [closed]

I need a network analysis tool that can help me to find if there are some issues regarding: packet transmission sessions any other stuff is welcome. I'm connected to the appliance I need to check ...
6
votes
2answers
275 views

/dev/disk/ lists disks, why /dev/net/ doesn't list network interfaces? [duplicate]

I know that udev manages devices in /dev and I expected to find information about available network cards (hardware) or at least network interfaces (software) there. ifconfig output shows me eth0 and ...
0
votes
0answers
332 views

Trouble with adding routes to different subnets

I'm having some confusion with adding routes to different subnets. Here's the layout: I have a vpn connection on tap0 which connects me to 192.168.14.110 That connection, on the other end is routed ...
3
votes
1answer
173 views

Using shell script to select static IPv4 configuration according to router address

I have Linux Mint 15, I live in a university where the hostel and lab have separate static IP settings. Is there a way to set up the connection mechanism so that my laptop will automatically select ...
1
vote
0answers
156 views

mongodb “hijacking” port

I'm having some trouble with Python HTTP Server and MongoDB. In this case HTTP server represents a REST service providing data from MongoDB. MongoDB is running on default port (27017) at all times. ...
3
votes
1answer
719 views

nc both fails and succeeds

Platform: RHEL 5.10 netcat Version: 1.84-10.fc6 I was trying to figure out if my inability to ssh was TCP-level and usually I use nc for this. This time, however, I got something unexpected. ...
4
votes
1answer
6k views

mount to nfs server failed, system error: no route to host [closed]

I have fedora based linux machines in a closed network. In one of the lab machines, I am getting the below error. Mount to NFS server failed. System error: No route to host I restarted the nfs, ...
4
votes
2answers
175 views

How is the host file actually used in unix/linux networking?

I see on wikipedia that a host file maps IP addresses to human-readable hostnames, much like a DNS server. But does a local computer need to resolve IP addresses? Is the idea that you configure the ...
3
votes
2answers
983 views

How to redirect http requests to local Apache server on internet connection lost?

I have a little Linux (Ubuntu based) server with 2 network cards, which acts as a router, dhcp, dns server, firewall, etc. One network card is connected to the LAN, while the other is connected to my ...
2
votes
2answers
1k views

How to detect network connection failure?

I have a direct Ethernet connection between a Windows box and a Linux box. If I disable the connection on the Windows side Linux still seems to believe the link is up. Is this normal behaviour? I ...
1
vote
1answer
50 views

Network issue - only one machine can't access webpage on another machine

I'm trying to figure out why my MacBook is unable to reach the web page served by my Raspberry Pi while other computers on my local network (or on external networks) have no problems seeing the web ...
1
vote
0answers
243 views

Unable to set wifi frequency/channel on Raspbian

Hey I'm trying to configure my Raspberry Pi to connect to my router on channel 8 (2.447G). The WiFi network adapter I have for my Pi seems to be stuck on channel 1. iwlist scan only lists the one ap ...
0
votes
1answer
1k views

iptables couldn't load target allow

I am using the command below to allow all traffic from hosts on my internal network but it says "iptables v1.4.18: Couldn't load target `ALLOW':No such file or directory". What is the problem here? ...
0
votes
0answers
804 views

Connected to WiFi, no internet access - Linux Mint

I connect to a my AP and I get a message "Connect to ..." but I cant access the internet, nor ping anything exept my gateway. I tried changing the DNS Servers to google ones but with no use. Any ...
6
votes
2answers
589 views

Create a computer lab using Linux [closed]

I would like to know, how I can create my own Linux lab, like the universities Linux labs. I mean OK, I can install for example Fedora to all my 4 PCs, but how I can login from different computers, ...
7
votes
1answer
1k views

What do I need to add a virtual IPsec adapter?

I'm trying to set up an IPsec connection manually from the console with iproute2. What I need is a virtual interface (at best, a virtual IP address could also be sufficient) that IPsec-transforms ...
2
votes
1answer
575 views

Changing network config during CentOS netinstall

I cannot find a way to change the networking information during a CentOS netinstall, when using the URL installation method. I always use a netinstall, and occasionally fat-finger the network ...
6
votes
2answers
1k views

Static IP for 2 PCs on crossover cable in interfaces(5) file?

I've got 2 PCs connected on an Ethernet crossover cable. On PC1 I run: sudo ip addr add 192.168.2.1 peer 192.168.2.2 dev eth0 sudo ip link set dev eth0 up On PC2 I run: sudo ip addr add ...
4
votes
1answer
2k views

Adding wlan0 to xenbr0

I'm setting up xen on debian to do some testing and having problems with the bridge. I would like to use wlan0 as the bridge, but can't seem to get this working. Currently I have tried this: # This ...
9
votes
4answers
34k views

How to use ifconfig to show active interface only

By default ifconfig will show me all available interfaces , but what if I just want to display active ones? Like, en0 only in below. en0: ...
0
votes
2answers
214 views

Error: /etc/network/interfaces/ is a directory!

Trying to edit the prior using nano /etc/network/interfaces/ in Debian and get the following error: Error: /etc/network/interfaces/ is a directory! Can someone help me fix this?
3
votes
1answer
1k views

Configuring different subnet IPs for a single physical interface on Wheezy?

I have a VPS that has been assigned three IP addresses. Let's say that these are 192.168.123.45/24, 192.168.225.98/23 and 192.168.225.99/23. (The actual addresses are globally routable, but that is ...
0
votes
2answers
1k views

Route wlan0 to openVPN tunnel and rest to eth0

I'm having problems to create route/iptables rules for following configuration: I have an openVPN server (tun type) running on my raspberry machine at home At work i have company pc (behind proxy) ...
1
vote
3answers
924 views

Different ARP results between host and virtual machine

Recently, using VMWare Player, I have configured a Linux virtual machine on a Windows host. I set the network adapter to be a bridged network with the Replicate option checked. The IP address was on ...
0
votes
0answers
91 views

fedora slow to aquire network ip after startup or cable unplug

I've installed Fedora 19, and i'm new to it (I used Ubtuntu until now). After every reboot, or when i unplug my network cable, the system is slow to pickup the state change, and it takes a long time ...
0
votes
1answer
503 views

iptables - why the stun, turn ports are not working to allow end points to access the server?

I have this iptables where all working except tcp/udp port 3478 and 5349. $ cat /etc/sysconfig/iptables # Generated by iptables-save v1.4.7 on Thu Nov 21 10:21:41 2013 *filter :FORWARD ACCEPT [0:0] ...
0
votes
1answer
355 views

Current IP address as visible from the internet? [duplicate]

I know I can get the locally assigned IP address of my current machine by the local router like so: ifconfig However, I want to know what my IP address is as visible from the outside world. Or, in ...
2
votes
0answers
448 views

Rogue AP channel hopping problem

I am able to set AP but despite explicitly setting channel for monitor interface and AP, AP frequency changes regularly. My setup: OS: Kali Linux 1.0 (booted from a USB stick) External network ...
8
votes
2answers
3k views

escape characters in /etc/network/interfaces

I want to be sure that whatever string I pass into the line wpa-ssid "abc" in /etc/network/interfaces won't be used to break out of the configuration. All I can find in the manual is that \ can be ...
1
vote
2answers
2k views

I am trying to open port 19132 on my Ubuntu server, but not working

I am trying to set up a server for my son to play Pocketmine. This is a PHP server and it is running on port 19132. I have opened this port on my router and if I run another server, like a Rails ...
5
votes
1answer
10k views

Firefox: use system proxy settings, but where are these?

Running Ubuntu 13.10, Firefox is configured to use the system proxy settings, but it seems it fails to pick them up. The computer is connected to the network, and it's possible to establish a ...