-
I have two distinct local networks, 192.168.1.0/24 and 10.1.100.0/24. Let's say I run a proxy like this: if __name__ == '__main__':
proxy.main(
hostname="192.168.1.150",
port=8899
) This listens on my first network, 192.168.1.150, which is fine for now. But how can I make the proxy redirect traffic to the second network, 10.1.100.10? Is it possible to specify the network interface in some way? I made a small diagram:
I've tried looking into the source code, and I think my answers lie in 'proxy/core/connection'. However, I'm having trouble figuring out how to use them with override or via a plugin. Does anyone have any ideas on how to achieve this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
@LoickZoty What do you mean by redirect traffic to 2nd network? Your code listening on |
Beta Was this translation helpful? Give feedback.
The response:
You needed to set the port to '0' so that the machine could choose a random port. Otherwise, multiple sockets would be created with the specified port, causing an error!