Since Hetzner pretty much doesn't give out any IPv4 addresses, no matter what the reason is, I decided to give IPv6 a try.
These is the assigned IP address subnet mask
IPs: 2a01:4f8:190:5112:: /64
Gateway: fe80::1
Useable IP addresses:
2a01:4f8:190:5112::2 to 2a01:4f8:190:5112:ffff:ffff:ffff:ffff
First I added IP with
ip -6 addr add 2a01:4f8:190:5112::2/64 dev eth0
added this block to /etc/network/interfaces
iface eth0 inet6 static
address 2a01:4f8:190:5112::2
netmask 64
gateway fe80::1
and restarted networking.
When I attempt to ping this IP from the server, it pings ok.
root@server ~ # ping6 2a01:4f8:190:5112::2
PING 2a01:4f8:190:5112::2(2a01:4f8:190:5112::2) 56 data bytes
64 bytes from 2a01:4f8:190:5112::2: icmp_seq=1 ttl=64 time=0.035 ms
64 bytes from 2a01:4f8:190:5112::2: icmp_seq=2 ttl=64 time=0.040 ms
64 bytes from 2a01:4f8:190:5112::2: icmp_seq=3 ttl=64 time=0.041 ms
however any attempts to do pinging from outside the server, result in
connect: Network is unreachable
I am new to configuring IPv6 addresses so it's possible I may have forgotten something. I am running Ubuntu 13.10 if it matters.
Output from ip6tables -L -n -v
Chain INPUT (policy ACCEPT 10383 packets, 2639K bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
Chain OUTPUT (policy ACCEPT 13967 packets, 1119K bytes)
pkts bytes target prot opt in out source destination
Thank you very much in advance, any help is much appreciated.
ip6tables -L -n -v
into your question?ping6 -n www.free.fr
.