Info Security Memo
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org

Build Confidence

Focusing on Information Security 

Info Security Notes

IPv6-only Machine access to and from IPv4 World

1/27/2021

0 Comments

 
IPv6-only Machine access to and from IPv4 World

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

This is outbound access from IPv6-Only VPS to IPv4 World.

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
Ping6 command to test ping connectivity in IPv6 world.




Configure IPv6-Only VPS Access from IPv4 Address

This is inbound access from IPv4 World to IPv6-Only VPS.

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
0 Comments



Leave a Reply.

    Categories

    All
    Architecture
    Blog
    Checkpoint
    Cisco
    Cloud
    CyberArk
    F5
    Fortigate
    Guardium
    Juniper
    Linux
    Network
    Others
    Palo Alto
    Qualys
    Raspberry Pi
    Security
    SIEM
    Software
    Vmware
    VPN
    Wireless

    Archives

    March 2024
    February 2024
    January 2024
    December 2023
    November 2023
    October 2023
    September 2023
    August 2023
    July 2023
    June 2023
    May 2023
    April 2023
    March 2023
    February 2023
    January 2023
    December 2022
    November 2022
    October 2022
    September 2022
    August 2022
    July 2022
    June 2022
    May 2022
    April 2022
    March 2022
    February 2022
    January 2022
    December 2021
    November 2021
    October 2021
    September 2021
    August 2021
    July 2021
    June 2021
    May 2021
    April 2021
    March 2021
    February 2021
    January 2021
    December 2020
    November 2020
    October 2020
    September 2020
    August 2020
    July 2020
    October 2019
    September 2019
    June 2019
    July 2018
    May 2018
    December 2017
    August 2017
    April 2017
    March 2017
    January 2017
    December 2016
    November 2016
    October 2016
    September 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016
    February 2016
    January 2016
    December 2015
    November 2015
    October 2015
    September 2015
    August 2015
    July 2015
    June 2015
    May 2015
    April 2015
    March 2015

    Print Page:

    RSS Feed

    Email Subscribe
Powered by Create your own unique website with customizable templates.
  • Blog
  • Sitemap
    • Categories
  • Contact
  • About
  • Resources
  • Tools
  • 51sec.org