ProxiFyre, Get IPHeader information

Home Forums Discussions General ProxiFyre, Get IPHeader information

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #13685
    BrianC
    Participant

      Hi, I tried your project – ProxiFyre. And it works fine. But, is it possible to transmit entire IP Packet to my Socks5 Server(Written in C#) instead of TCP Packet? I mean I have an Socks5 server where I’m able to parse any incoming packets, and maybe it is possible to receive entire IP Packet  and then I can construct TCP Packet from this IP Packet in my Incoming packets handler inside my Socks5 server and send only TCP data trough to the Server\Client but keep IP Header data for my needs. Is it possible in theory at all or there will be issues with checksums or something else? Or maybe there is some better way to get access to the IP Headed of the TCP Packet on my Socks5 server?

      #13686
      Vadim Smirnov
      Keymaster

        Transmitting entire IP packets to a SOCKS5 server is theoretically possible, but SOCKS5 is inherently designed for TCP/UDP connections and does not natively support the transmission of raw IP packets. Modifying the protocol to handle IP packets would necessitate significant changes on both the client and server sides.

        ProxiFyre consists of two components: a redirector that forwards connections to a transparent local proxy, and the transparent local proxy itself, which functions as a SOCKS5 client. The redirector has access to raw network packets (Ethernet frames), whereas the local proxy operates at the transport level (TCP, UDP). Therefore, technically, you can use the redirector component to intercept IP packets and send them to your proxy.

        #13687
        BrianC
        Participant

          I assume you are talking about this part in the tcp_local_redirect.h

          bool process_client_to_server_packet(INTERMEDIATE_BUFFER& packet, uint16_t port = 0)

          And yes I already found the way how to get all headers and payload from the Ethernet packet

          But I’m not sure how to pass this packet to the internal ProxiFyre local proxy, still inspecting the code.

          If I got it correctly I need to pass this packet from this redirect function to internal proxy that is connected to my Socks5 server as client and send this packet as TCP\UDP payload, or you meant I have to create my own extra TCP\UDP clients to connect my to Socks5 server directly?

          #13688
          Vadim Smirnov
          Keymaster

            The file tcp_local_redirect.h reroutes selected outgoing connections to a local proxy and can be modified to redirect these packets to a remote host. However, it does not incorporate any SOCKS5 protocol logic. I should note that I may not fully understand your requirements, as forwarding entire IP packets is typically utilized in various types of tunnels rather than in proxies.

          Viewing 4 posts - 1 through 4 (of 4 total)
          • You must be logged in to reply to this topic.