Post

Replies

Boosts

Views

Activity

how can handle network traffic in Transparent Proxy
I want Transparent Proxy(macOS Catalina) work below. The detailed operation example is as follows.The user tries to connect to 10.10.10.10:1000. At the same time as this process, change the destination to 20.20.20.20:2000 to connect. my question is program <--> Transparent Proxy <--> remote connect how to connect remote server how to read data from flow how to write data from flow to remote connection override func handleNewFlow(_ flow: NEAppProxyFlow) -> Bool { if let tcpflow = flow as? NEAppProxyTCPFlow { // 1. how to connect remote server // 2. how to read data from flow // 3. how to write data from flow to remote connection } } thank you
3
0
1.7k
Sep ’21