the IP protocol and IP addresses

learn more… | top users | synonyms

1
vote
1answer
16 views

ssh_config: Add a host section that matches IPs even when connecting via hostname

I want a host section in my ssh config that matches any local IP: Host 10.* 192.168.*.* 172.31.* 172.30.* 172.2?.* 172.1?.* setting setting ... This works as long as I connect directly to a ...
0
votes
0answers
11 views

How do I properly configure networking for a KVM virtual machine?

I have a remote dedicated server on which I have installed KVM. When trying to create my first virtual machine I am unable to ssh to the machine. I assumed that I needed another ip address so I ...
1
vote
1answer
3k views

Trouble switching from DHCP to a static IP on Kali Linux

When I installed Kali Linux 64bit, I forgot to set up a static IP address, and now DHCP determines my address with my router. I have already modified /etc/hosts and /etc/network/interfaces to declare ...
1
vote
1answer
31 views

how can one manually assign a permanent / static IP address with “ip addr add”?

After an IP address is assigned to this network interface, with any of the the following commands: ip addr add 10.0.0.0 dev eth1 valid_lft forever preferred_lft forever ip addr replace 10.0.0.0 dev ...
0
votes
1answer
16 views

Correct syntax for nmap [closed]

I am trying to use nmaps os fingerprint or what ever the hell it is called.. So i put itsudo nmap -o 208.80.125.4 (and i have used a lot of other IPs.. It always works correctly without the -o except ...
2
votes
3answers
4k views

Trying to connect to gateway in static ip network

I have arch-linux-arm running on a raspberryPi. The network I am in uses static IPs. gateway IP is 192.168.178.5 IP for my device is 192.168.178.201 To connect to the internet I use: ip addr add ...
3
votes
5answers
84 views

Mass IP Blocking

I have a game server and someone is spamming it with bots. The SpamBot client makes the handshake with my server using UDP connections. It does this through a list o proxies. Basically, the Spambot ...
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 ...
0
votes
0answers
12 views

udhcpc and auto IP assignment

I need to assign automatically the IP of the interface for which I request the IP address with udhcpc. The default udhcpc script installed on my system is this: #!/bin/sh # udhcpc script edited by ...
7
votes
4answers
38k views

Why can't I ping Google?

I can't ping google.com (unknown host). But I can ping IP addresses. I tried to ping the IP address of Google but it doesn't work. resolv.conf nameserver 8.8.8.8 nameserver 209.139.209.33 ...
0
votes
1answer
16 views

Different A records for a domain

I have a domain which A record points to a site, hosted on VPS. Now I want to make a mail server, which is located on a second VPS. To make mail server work I need MX records, which is based on A ...
1
vote
2answers
61 views

host can't ssh guest, but guest can

This is a follow-up question from: Make virtualbox get a different IP address than my laptop. I ended up with these /etc/hosts files on both my laptop running Ubuntu 14.04 (the host) and my virtualbox ...
0
votes
1answer
49 views

Make virtualbox get a different IP address than my laptop

I am trying to setup a 2-node Hadoop cluster (following this guide), where the master is going to be my Ubuntu laptop and the slave a virtualbox running ubuntu. I also read about networking in ...
1
vote
0answers
26 views

CentOS 6 - Order of network interfaces when running “ip address show” command

I have installed CentOS 6.7 on new HP Gen9 server and decided to rename interfaces using udev so they are in order eth0-7 from left to right when looking at servers back (originally interfaces were in ...
0
votes
0answers
22 views

info to get using last digits of ip address

What is the product/registered owners id based on the last digits of IP#: 85ff:fec9:d41b My facebook account shows a login from that IP# and I am accessing the owner info and login info for my own ...
1
vote
1answer
2k views

SUSE Linux 12 - configuring IP alias

I want to setup an IP address alias on a network card. I created a file /etc/sysconfig/network/ifcfg-ens160 and its contents are: BOOTPROTO='static' STARTMODE='onboot' IPADDR='192.168.0.113' ...
1
vote
1answer
1k views

Set a local static IP address on a network interface and have it permanent even after restart

I have openSUSE 13.2. My laptop connects to the internet through a WiFi network but I have an embedded device which I need to connect to it through the ethernet interface. It has an IP address of ...
1
vote
1answer
20 views

How to return the nearest DNS IP based upon requesting client's IP?

To achieve a faster internet experience, one aspect that can be optimized is to ensure a client is making use of a nearby DNS, rather than something on the opposite side of the world that might ...
3
votes
1answer
41 views

How can I bridge two interfaces with ip/iproute2?

I know how to create a bridge using brctl, but I have been advised not to use this anymore, and to use iproute2 or ip instead(since brctl is deprecated presumably). Assuming this is good advice, how ...
3
votes
3answers
211 views

Unable to reconnect 3g connection after new IP was given

I use Debian Jessie 8.2 and I am using a 3G connection using this modem. The 3G connection works fine, except after 24 hours the connection drops and I cannot reconnect. If I reboot the computer, ...
4
votes
2answers
713 views

Policy routing with load balanced ppp connections

This my setup using Debian 6.0. 6. It's role is a proxy server and a load balancer using eight 3G modems. Whenever a ppp connection dials it takes over the default gateway which is ok but it also ...
0
votes
0answers
17 views

How to start and stop a libreswan connection

I have a connection configured on my libreswan instance on two machines. The connection start automatically when I start the pluto daemon, I have try other settings, but the connection also starts if ...
0
votes
1answer
39 views

Get the external IP address in shell without dig in 2016?

This question: "How can I get my external IP address in bash?" Solves the question with a call to dig: dig +short myip.opendns.com @resolver1.opendns.com; that is the fastest resolution possible, ...
3
votes
2answers
119 views

IPv4 link-local address in Linux

I remember that in Windows XP, when DHCP client did not receive an IPv4 address from DHCP server, the host assigned itself an IPv4 link-local address from 169.254.0.0/16. However, I have never seen ...
2
votes
2answers
3k views

lts is there a way to enable sleep mode and wake on lan?

I was wondering if it were posible to make my server go to sleep after a set period of time, but still be listening for lan requests. I use my server as a media server that might get used 3 or 4 hours ...
4
votes
3answers
2k views

What are the interface prefix meanings in ifconfig?

I'm not sure if these have a name, but on most computers I use the interface prefixes are usually: eth- : Ethernet/Wired wlan- : Wireless/WiFi However, on my ASUS RT-N56U, I have the following: ...
1
vote
1answer
29 views

Can nmap display only hosts with specific ports open?

Can nmap list all hosts on the local network that have both SSH and HTTP open? To do so, I can run something like: nmap 192.168.1.1-254 -p22,80 --open However, this lists hosts that have ANY of ...
0
votes
2answers
35 views

Unable to connect remotely to custom application

I've built an application that listens on the localhost address and a specific port, lets say port 11001. Its on a remote machine with CentOS. I currently have a python script on my local machine that ...
2
votes
4answers
93 views

Finding Servers Public IP and Allowing Remote Access

I want to turn a computer that I have lying around into a file server. The problem is that I cannot find my public IP. I have used services such as myip or even google, but they all point to the IP of ...
1
vote
1answer
61 views

Virtualbox - how to give Internet access and internal network access to two VMs?

I made two Virtualbox virtual machines, CentOS 7 latest iso. I gave them each 2 network interfaces, one NAT and one "Internal network" in order to get them to talk to each other and have Internet ...
4
votes
5answers
291 views

How to log Internet connection drops

I need to execute a script as soon as my raspberry pi gets connected to the Internet. However I was wondering if there was a better way than just pinging Google every minute or so. My problem is that ...
2
votes
1answer
47 views

Why doesn't FTP work through my ssh tunnel?

Computer A (assumed that ip is 44.44.44.44)can ftp the host 130.89.148.12. ftp 130.89.148.12 Connected to 130.89.148.12. 220 ftp.debian.org FTP server Name (130.89.148.12:debian8): anonymous 331 ...
0
votes
1answer
30 views

OpenVPN to access restriced pages

I am looking for a method to go out with different ip in order to access some sites that are blocked by my local provider(I need to write scripts to retrieve data from thos pages).On ...
26
votes
13answers
31k 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?
1
vote
2answers
4k views

How to find MAC or IP address of a device connected to the same Ethernet bridge?

I have the following topology: DeviceX ------ | DeviceX bridge with two Ethernet cards (created with bridge-utils) ---------------- router | ...
123
votes
21answers
110k views

How can I get my external IP address in bash?

I need to find my external IP address from a bash script. At the moment I use this function: myip () { lwp-request -o text checkip.dyndns.org | awk '{ print $NF }' } But it depends on ...
1
vote
1answer
38 views

Nothing happens when trying to add/set default gateway

I'm connected to a network using VPN (Managed byt NetworkManager, Fedora 23), and I want to route all traffica via the VPN network. But for some reason nothing happens when I run ip route add or ip ...
5
votes
1answer
98 views

Bond two Internet connection of varying quality

I live in a remote part of the country, internet-wise. I utilize a satellite based internet, but it's having many problems during peak traffic times. I have researched a bit and found Ubuntu ...
3
votes
2answers
486 views

Bash: Permission denied when trying to echo data directly to Network

I am trying to send characters directly to the network stack as explained in this thread. Even when the process work OK under CygWin (Windows), the same lines do fail on Ubuntu v14.04: ...
1
vote
1answer
49 views

Telnetting the local port working but trying with ip not working

My question is similar but opposite to to Telnetting the Local port not working but trying the ip working For me, telnet to the local port works but trying with IP does not work :( I am running ...
4
votes
1answer
23 views

How can I tell which IP address is used to connect to another machine?

I have several computers that are multi-homed, and have different static IP addresses for each of several network connections. How can I tell which of these IP addresses is used when I'm connecting to ...
3
votes
1answer
33 views

Two Virtualbox systems with same IP address

I need to test an issue with nfs so I spun up a couple of VirtualBox VM's on my system. One is RHEL7, another CentOS7. Each has a unique MAC address when viewing settings> network. Both VM's boot ...
1
vote
1answer
172 views

server can't find xxx.xx.xxx.192.in-addr.arpa:NXDOMAIN

$ORIGIN xx.xxx.192.in-addr.arpa. $TTL 86400 @ IN SOA dns1.testserver.com. hostmaster.testserver.com. ( 2001062501 ;serial 21600 ;refresh after 6 hour 3600 ;retry after 1 hour 604800 ;expire ...
2
votes
1answer
2k views

ICMP gives host an impossible redirect

I am having trouble with forwarding on a system which hosts a few headless VirtualBox VMs. I have not changed anything but the configuration has stopped working. The VMs have IP addresses on their own ...
2
votes
3answers
127 views

Validating IP addresses (IPv4 and IPv6)

Quite simply I'd like to verify that a string represents a valid IP address in a bash script. I think like many others I've fallen into the pitfall of trying to do this with a regular expression; ...
2
votes
2answers
104 views

iptables: No chain/target/match by that name - adding SSH ATTACK rule

I have a problem with adding rule against brute-force SSH attacks. I try to do it in the following way: iptables -F iptables -L iptables -N SSHATTACK iptables -A SSHATTACK -j LOG --log-prefix ...
2
votes
2answers
51 views

Find IP owners from apache log file

I have the top 10 IPs making the most requests and the number of requests made from Apache log file example. I used this bash command to handle a request: cat access_log|cut -d' ' -f1|uniq -c|sort ...
1
vote
1answer
82 views

FreeBSD: adding ip alias to interface breaks network on primary ip

I am trying to add an alias to my network card (I would like to use jails) on my FreeBSD box. It is running version 10.2-RELEASE-p7 (generic amd64 kernel). The machine is running in a Hyper-V virtual ...
1
vote
0answers
29 views

Not permitted to add eth0 to bond0

I'm trying to add an interface to my bond0 but I always get the error. sudo ip link set dev eth0 master bond0 RTNETLINK answers: Operation not permitted I already tried it with sudo and with ...
1
vote
0answers
36 views

ip link add gives me an error that it's not supported

I would like to set up a bridge with iproute2 like this: Adding bridge : ip link add name br0 type bridge Bringing bridge UP : ip link set dev br0 up Adding interface to bridge : ip link set dev eth1 ...