Comments (4)
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.
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.
this is covered in https://eturnal.net/doc/
from eturnal.
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)
- Run Eturnal as root in docker HOT 25
- eturnal with TLS HOT 12
- Support UDP proxy protocol
- How to prevent abuse by using amplification/reflection DoS attack? HOT 2
- mod_stats_prometheus: make bucket sizes configurable
- Please delete this
- WebRTC Connectivity Issue with Safari on iPhone (Works on Desktop Chrome)
- Add support for ETURNAL_SECRET_FILE to allow Docker secrets workflow HOT 5
- TCP supported for TURN? HOT 2
- Crash report in eturnal.log
- Two other log errors HOT 1
- syslog logging?
- TURN using docker not work with transport=udp HOT 8
- Unable to use TURNS HOT 1
- Docker anonymous volumes created HOT 3
- Add credentials dynamically HOT 9
- Auto routing HOT 8
- Repository eturnal does not exist! at /usr/share/perl5/Debian/ExtRepo/Commands/Enable.pm line 33. HOT 2
- SSL problem HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from eturnal.