One IP address per virtual terminal “screen” on Ubuntu

混江龙づ霸主 提交于 2019-12-11 07:32:40

问题


I have multiple public IP address and I need to associate one per virtual terminal "screen".

Example:

IP 1: screen -dmS nameScreen1 ffmpeg etc...
IP 2: screen -dmS nameScreen2 ffmpeg etc...
IP 2: screen -dmS nameScreen3 streamlink etc...
IP 2: screen -dmS nameScreen4 youtube-dl etc...
IP 3: screen -dmS nameScreen5 ffmpeg etc...

I thinked about using X-Forwarded-For in --header to associate a private IP per "screen". With Squid or Network-manager write something like: For private IP 1 use public IP 1. But I don't know if it can works and how to do it.

I would be grateful if you have an other idea to solve this problem too.

Thanks to help me with this :).

来源:https://stackoverflow.com/questions/42026740/one-ip-address-per-virtual-terminal-screen-on-ubuntu

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!