Git Product home page Git Product logo

Comments (4)

weiss avatar weiss commented on July 4, 2024 1

I often switch between multiple VPS providers because some of them offer better deals. This leads to frequent changes in my IP address, and I don't want to modify configuration files or environment variables each time.

Can't you just omit the relay_ipv4_addr and relay_ipv6_addr options altogether? eturnal should figure out the correct relay address(es) by default, unless the server is behind NAT or has multiple public addresses (check the startup [info] messages in the eturnal log).

Of course, I could also try writing a shell script to make a DNS request each time before starting Eturnal and then output the response to environment variable.

You could create an /etc/eturnalctl.cfg file such as the following:

export ETURNAL_RELAY_IPV4_ADDR=$(curl -4fsS 'https://ifconfig.co/ip')
export ETURNAL_RELAY_IPV6_ADDR=$(curl -6fsS 'https://ifconfig.co/ip')

(The eturnalctl.cfg file isn't documented so far, but we have no plans to remove support for it.)

from eturnal.

NagaseYami avatar NagaseYami commented on July 4, 2024 1

In my case, it should be

export ETURNAL_RELAY_IPV4_ADDR=$(dig +short example.com A)
export ETURNAL_RELAY_IPV6_ADDR=$(dig +short example.com AAAA)

from eturnal.

licaon-kter avatar licaon-kter commented on July 4, 2024

this is covered in https://eturnal.net/doc/

from eturnal.

NagaseYami avatar NagaseYami commented on July 4, 2024

unless the server is behind NAT or has multiple public addresses

Yes, I use multiple VPS servers for reverse proxy (port forwarding) in order to conceal the actual IP address of the real server. Therefore, I cannot run the automatic IP detection feature on the real server.

You could create an /etc/eturnalctl.cfg file such as the following:

Thank you very much, this is exactly what I wanted!

from eturnal.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.