LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-21-2022, 07:46 AM   #1
intmail01
Member
 
Registered: May 2013
Posts: 91

Rep: Reputation: Disabled
How to create virtual and permanent listen address ?


Hi,

I use several programs who listen on some interfaces including virtualbox IP address( through interface vboxnet0 ). Unfortunately when virtualbox is off all programs failed to start because the interface does not exist.
Is there any solutions to create a virtual IP/interface where programs can listen on permanently then paquet are trasfert to when vboxnet0 is on ?

Thanks
 
Old 10-21-2022, 01:18 PM   #2
dc.901
Senior Member
 
Registered: Aug 2018
Location: Atlanta, GA - USA
Distribution: CentOS/RHEL, openSuSE/SLES, Ubuntu
Posts: 1,005

Rep: Reputation: 370Reputation: 370Reputation: 370Reputation: 370
Quote:
Originally Posted by intmail01 View Post
Hi,

I use several programs who listen on some interfaces including virtualbox IP address( through interface vboxnet0 ). Unfortunately when virtualbox is off all programs failed to start because the interface does not exist.
Is there any solutions to create a virtual IP/interface where programs can listen on permanently then paquet are trasfert to when vboxnet0 is on ?

Thanks
A service needs to be running for port to be open (and listening to).
Perhaps, you should come up with a script that runs and checks if VM is running, and if its not start it?
Or perhaps, I am completely misunderstanding what you are asking?
 
Old 10-21-2022, 01:44 PM   #3
intmail01
Member
 
Registered: May 2013
Posts: 91

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by dc.901 View Post
Perhaps, you should come up with a script that runs and checks if VM is running, and if its not start it?
yes, I did something like this. I have to study and customize how work config file for each program. When interface is on I have to insert and modify somewhere and when it is off I have to remove and delete some lines in some files. The task will be simple if there is one virtual IP or one virtual interface which is a permanent frontend for vboxnet0
 
Old 10-21-2022, 11:35 PM   #4
!!!
Member
 
Registered: Jan 2017
Location: Fremont, CA, USA
Distribution: Trying any&ALL on old/minimal
Posts: 997

Rep: Reputation: 382Reputation: 382Reputation: 382Reputation: 382
IF it would help to keep an 'unobtrusive'=tiny guest running, the 10MB mll iso only needs 0.1 GB Ram

Last edited by !!!; 10-21-2022 at 11:37 PM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
tool/extension to display permanent and current mac address for all devices adam.smith Linux - Software 1 07-17-2017 04:10 AM
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listen jsaravana87 Linux - Server 1 11-25-2011 10:45 AM
MULTICAST address and port, socket listen only on port? jf.argentino Linux - Networking 2 03-09-2009 12:42 PM
apache security for intranet: "listen 80" vs. "listen 127.0.0.1:80" pulper Linux - Software 3 09-27-2006 06:24 AM
Permanent IP address linksocc Linux - Networking 2 10-10-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:17 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration