Since I got an IPv6-Only VPS from EUServ, I am trying to use it as normal IPv4. The first thing I have to resolve is how to get them access to IPv4 world and how IPv4 is going to access the service provided by this IPv6-only machine.
This post summarizes some steps how I configured this IPv6-only vps's outbound access and inbound access for IPv4 network.
Configure IPv6-Only VPS Access to IPv4 Address
If you will need your IPv6 only VPS to access IPv4 WebSites or Servers, here is the command to use TREX DNS64 + NAT64 services to have this happen.
After logged into your IPv6-only server, just paste following command:
echo -e "nameserver 2001:67c:2b0::4\nnameserver 2001:67c:2b0::6" > /etc/resolv.conf
You should be able to access IPv4 world now. Here are some test commands:
- curl ifconfig.net
- curl myip.ipip.net
- (curl -s wget.racing/nench.sh | bash; curl -s wget.racing/nench.sh | bash) 2>&1 | tee nench.log
Configure IPv6-Only VPS Access from IPv4 Address
Can I host website in my Ipv6 Only VPS Server which will be accessable from IPv4 address space as ordinary website?
Yes, you can! You can use free CloudFlare CDN to enable IPv4 access to your website hosted in IPv6 Only VPS Server. To do this, just configure your HTTPD service (Apache, Nginx, Lighttpd or other) to listen to IPv6 address, then open free account with CloudFlare here https://www.cloudflare.com/a/sign-up Add your website domain and change your domain nameservers to CloudFlare nameservers. Then point your website to your IPv6 Only VPS IPv6 address to which your HTTPD service is listening by adding AAAA DNS records for your domain with your VPS IPv6 address in CloudFlare DNS service. In this way all your website visitors with IPv4 and IPv6 local addresses will be able to access your website hosted in IPv6 Only VPS Server!
You can use the following help and tutorials provided by CloudFlare to get started:
https://support.cloudflare.com/hc/en-us/categories/200275218
https://support.cloudflare.com/hc/en-us/articles/203916938-Can-I-use-CloudFlare-with-an-IPv6-only-server-IP-
Please make sure, that local ip6tables firewall inside your VPS is not blocking any traffic or ports to/from your VPS Server.
You can clear all ipv6tables firewall rules by issuing commands as root inside your VPS shell:
ip6tables --flush FORWARD
ip6tables --flush INPUT
ip6tables -F
ip6tables -X
service ip6tables save
Note: From https://ift.tt/3a7b2O9
via Blogger https://ift.tt/3abtmFS
January 27, 2021 at 05:48PM Network