I
I
Inter Carpenter2017-01-20 23:28:40
linux
Inter Carpenter, 2017-01-20 23:28:40

How to forward the Internet to a virtual interface?

Hello
There is a network interface eth0 with a changing address when reconnecting.
You need to bind the program to it. But all programs are bound only at the address.
As I understand it, you need to create a virtual interface with a static ip and forward traffic from it to eth0
How to do this? eth0 has ip address 10.xxx

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
Wexter, 2017-01-21
@Wexter

bind program to address 0.0.0.0 - will be on all interfaces/addresses

R
rPman, 2017-01-21
@rPman

when reconnecting, your running program will no longer be able to accept connections from the new interface, it seems even if you make listen 0.0.0.0 (I had jambs when using vpn in a similar situation), so the application must somehow handle this or it needs to be restarted in parallel with reconnection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question