the IP protocol and IP addresses

learn more… | top users | synonyms

1
vote
1answer
17 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 ...
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 ...
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 ...
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 ...
0
votes
0answers
14 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 ...
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
62 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
51 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 ...
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
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 ...
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
44 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 ...
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, ...
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
36 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 ...
1
vote
1answer
63 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 ...
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 ...
4
votes
5answers
293 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
48 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 ...
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 ...
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 ...
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 ...
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 ...
1
vote
1answer
174 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
3answers
128 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
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
40 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 ...
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
3answers
134 views

Arithmetic on variable containing ip address

I've got variable network="198.168.1.x" # for ex. 198.168.1.254 I want to create new variables: next_serv="198.168.1.(x-1)" # for ex. 198.168.1.253 max_host="198.168.1.(x-2)" # for ex. ...
2
votes
1answer
38 views

Grepping and sedding IP from ip addr show

I'm trying to get just the local IP of my Arch VM. I've managed to get just the line containing what I want with grep, but I also want to trim it down with sed. inet <<192.168.0.16>>/24 ...
0
votes
0answers
16 views

How do you interpret these routes? or more or more specifically, what is scope link?

I don't understand completely what these routes mean: [root@samplehost ~]# ip route show ...#default route here 10.68.172.0/24 dev eno33557248 proto kernel scope link src 10.68.172.20 ...
0
votes
2answers
31 views

Which ip is used when two net cards all can be used?

There are two net cards in used status in my pc. ifconfig eth0 Link encap:Ethernet HWaddr e0:3f:49:57:4b:d1 inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.255.0 ...
0
votes
1answer
27 views

Adding route entries to the routing table

I have a device that has a default IP address of 10.1.1.102 with netmask 255.255.255.0. Rather than changing it, I tried to add a routing entry to my routing table using route add. sudo route add ...
0
votes
2answers
38 views

Show netmask using ip tool

I would like to know how to get the mask of a network interface. With ifconfig it is very simple, but I have to use the ip tool, and ip addr show is not showing me what I want. Here is an example ...
1
vote
1answer
16 views

Translate from IPv4 to IPv6 and backwards

I have the following situation: Two computers, one running Debian, the other one Ubuntu. The first one is connected to the internet via an interface which somehow only allows IPv6-connections, and ...
0
votes
1answer
42 views

Access from unknown IP tracks to non-existent website

Just had a warning that my Gmail's been accessed from the following IP: 151.230.107.114 which routes to something called htc_frisbee.com , which doesn't appear to be a real website. Could this just be ...
0
votes
0answers
13 views

ip-tunnel: “Tunneling with a fixed ttl always makes pmtu discovery” - why?

The manual page for ip-tunnel says: ...fixed ttl is incompatible with [no PMTU discovery] option: tunneling with a fixed ttl always makes pmtu discovery. What is the reason for this? I do not see ...
1
vote
0answers
19 views

How to force dhcpcd to forget an old static address after editing dhcpcd.conf?

How can I force dhcpcd to forget a previously configured static address after setting a new one in /etc/dhcpcd.conf? I changed: static ip_address=192.168.1.1/24 to static ...
1
vote
1answer
116 views

Virtual Box guest on different subnet than host

I currently have my Debian VM using NAT and it is on subnet 10.0.2.x where my host is on 192.168.0.x how can I get my guest on the same subnet as my host? Host: Ethernet adapter VirtualBox ...
1
vote
1answer
142 views

Zookeeper DNS name problems with leader elections when migrating from Windows to Debian

I am migrating a kafka/zookeeper cluster on Windows to Debian wheezy. Java version: 1.7.0_80 Debian version: 7.9 Zookeeper version: 3.3.5+dfsg1-2 0 Kafka version: 2.10-0.8.2.1 If I configure ...
0
votes
0answers
35 views

linux to linux IP MASQUERADING failed (can't ping ip server)

I'm new in linux, i'm trying to IP MASQ. So the diagram is like linux A is connected to HUB and Internet, and linux B is connected only to HUB. In linux A i have eth1 (10.10.10.5) and eth0 ...
2
votes
1answer
47 views

How do you add a virtual network IP address from the kernel command-line?

I would like to add a virtual IP address, something you normal do with: ifconfig eth0:0 192.168.1.1 (or via /etc/network/interfaces). But, I'd like to do it from the kernel command-line, which has ...
1
vote
0answers
24 views

Any potential problems when configure multiple NIC for isolated networks to have same subnet?

System I have an ARM Linux (kernel 3.17) for field use and it has multiple NIC, say eth0, eth1, and wlan0. On the left side, I need to use a PC0 to configure the ARM Linux so that it can change it's ...
1
vote
1answer
73 views

SSH: shell opened in IP namespace

I'm trying to force users logging in through SSH to have a shell inside IP namespace. I've tried replacing the shell in /etc/passwd with something like ip netns exec sshns /bin/bash but it didn't ...