Answer the question
In order to leave comments, you need to log in
What text (console) browser for Ubuntu has the ability to set the source interface?
Hello
I need the ability to determine the external IP address in Ubuntu through the command line with the task of the source interface.
I'm going to use one of the text browsers to run something like this:
lynx -dump checkip.dyndns.org | sed -e 's/.*Current IP Address: //' -e 's/<.*$//' | sed '/^$/d'
But the browser needs to send requests from the given interface.
Is this possible with lynx or other text based browser or is it possible with curl or wget?
Thanks in advance.
Answer the question
In order to leave comments, you need to log in
Maybe Network namespaces will help: https://habr.com/en/post/123140/
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question