Closed hassanAzhar143 closed 3 days ago
private func startSocks5Tunnel(serverPort port: Int) throws { let config = """ tunnel: mtu: 9000 socks5: port: (port) address: ::1 udp: 'udp' misc: task-stack-size: 2048 connect-timeout: 5000 read-write-timeout: 60000 log-file: stderr log-level: error limit-nofile: 65535 """ let configurationFilePath = MGConstant.cachesDirectory.appending(component: "config.yml").path(percentEncoded: false) guard FileManager.default.createFile(atPath: configurationFilePath, contents: config.data(using: .utf8)!) else { throw NSError.newError("Tunnel 配置文件写入失败") } DispatchQueue.global(qos: .userInitiated).async { NSLog("HEV_SOCKS5_TUNNEL_MAIN: (Socks5Tunnel.run(withConfig: .file(path: URL.init(string:configurationFilePath)!)))") } }
here default port is 8080
Use version 3.6.8
I used it after updating version i have failed proxy issue,VMESS proxy SOCKS 5 for inbound,port is from xray, on which i started tunnel and Xray for same inbound,,am I correct?
THIS IS SERVER ERROR,,,, app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [context canceled dial tcp: lookup DOMAIN: operation was canceled] > common/retry: all retry attempts failed THIS IS CLIENT ERROR.... 2024/05/17 05:07:41 [Warning] [2708033371] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [context canceled dial tcp: lookup DOMAIN operation was canceled] > common/retry: all retry attempts failed [2024-05-17 10:07:48] [E] 0x103dddb30 socks5 client read auth [2024-05-17 10:07:48] [E] 0x103dddb30 socks5 session handshake [2024-05-17 10:07:48] [E] 0x103dde770 socks5 client read auth [2024-05-17 10:07:48] [E] 0x103dde770 socks5 session handshake ,I am facing now
2024/05/17 04:52:32 [Warning] [1271992904] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [dial tcp …:8080: i/o timeout dial tcp: lookup japan-proxy.b-cube.tech: operation was canceled] > common/retry: all retry attempts failed
THIS THE ERROR I AM FACING NOW,,
On 17-May-2024, at 12:04 AM, Ebrahim Tahernejad @.***> wrote:
(port) -> (port)
— Reply to this email directly, view it on GitHub https://github.com/EbrahimTahernejad/Tun2SocksKit/issues/11#issuecomment-2115990382, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD5RTZRYPM4EI6XAX5ZHBXTZCT7LBAVCNFSM6AAAAABHZULQLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVHE4TAMZYGI. You are receiving this because you authored the thread.
2024/05/17 08:04:29 [Warning] [3041417170] app/proxyman/outbound: failed to process outbound traffic > proxy/vmess/outbound: failed to find an available destination > common/retry: [read tcp 192.138.28.34:57672-domain.name:8080: read: connection reset by peer dial tcp: lookup japan-proxy.b-cube.tech: operation was canceled] > common/retry: all retry attempts failed
On 17-May-2024, at 12:04 AM, Ebrahim Tahernejad @.***> wrote:
(port) -> (port)
— Reply to this email directly, view it on GitHub https://github.com/EbrahimTahernejad/Tun2SocksKit/issues/11#issuecomment-2115990382, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD5RTZRYPM4EI6XAX5ZHBXTZCT7LBAVCNFSM6AAAAABHZULQLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVHE4TAMZYGI. You are receiving this because you authored the thread.
Could you guide me with any sample code for that.
On 17-May-2024, at 12:04 AM, Ebrahim Tahernejad @.***> wrote:
(port) -> (port)
— Reply to this email directly, view it on GitHub https://github.com/EbrahimTahernejad/Tun2SocksKit/issues/11#issuecomment-2115990382, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD5RTZRYPM4EI6XAX5ZHBXTZCT7LBAVCNFSM6AAAAABHZULQLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVHE4TAMZYGI. You are receiving this because you authored the thread.
how to send TCP traffic from tunnel? how it support multiple ports for inbound?
Hi there, any suggestions how to read and write data to tunnel and, TCP message by server is not handled , how to make tcp connection,?
On 17-May-2024, at 4:22 PM, Hassan Azhar @.***> wrote:
Could you guide me with any sample code for that.
On 17-May-2024, at 12:04 AM, Ebrahim Tahernejad @.***> wrote:
(port) -> (port)
— Reply to this email directly, view it on GitHub https://github.com/EbrahimTahernejad/Tun2SocksKit/issues/11#issuecomment-2115990382, or unsubscribe https://github.com/notifications/unsubscribe-auth/BD5RTZRYPM4EI6XAX5ZHBXTZCT7LBAVCNFSM6AAAAABHZULQLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVHE4TAMZYGI. You are receiving this because you authored the thread.
As you can read in the logs, this is an issue with your proxy library configuration, not an issue with tun2socks. Please check your configuration.
On Tue, May 21, 2024 at 08:26 Hassan Azhar @.***> wrote:
Hi there, any suggestions how to read and write data to tunnel and, TCP message by server is not handled , how to make tcp connection,?
On 17-May-2024, at 4:22 PM, Hassan Azhar @.***> wrote:
Could you guide me with any sample code for that.
On 17-May-2024, at 12:04 AM, Ebrahim Tahernejad @.***> wrote:
(port) -> (port)
— Reply to this email directly, view it on GitHub < https://github.com/EbrahimTahernejad/Tun2SocksKit/issues/11#issuecomment-2115990382>, or unsubscribe < https://github.com/notifications/unsubscribe-auth/BD5RTZRYPM4EI6XAX5ZHBXTZCT7LBAVCNFSM6AAAAABHZULQLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMJVHE4TAMZYGI>.
You are receiving this because you authored the thread.
— Reply to this email directly, view it on GitHub https://github.com/EbrahimTahernejad/Tun2SocksKit/issues/11#issuecomment-2121740069, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACDQKHFWEXMTVCBEAOMTUMTZDLHXPAVCNFSM6AAAAABHZULQLWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMRRG42DAMBWHE . You are receiving this because you commented.Message ID: @.***>
I am having this issue using MANGO version 2.3.0 keep printing these lines