Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    [solved]receiving telegrams over TCP/IP

    Scheduled Pinned Locked Moved webGUI
    8 Posts 3 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      alivdel
      last edited by

      hi all,

      i want to know, if i send a message over TCP through for example lan1 from my compute on Gateway pfsense, where or how can i see the message.
      i want to send some commands remotely over TCP.

      thanks.

      1 Reply Last reply Reply Quote 0
      • KOMK
        KOM
        last edited by

        Huh??  ???

        Traffic is point-to-point usually.  If you want to read the message, you either need to be the receiver, or you need to intercept the traffic on its way to destination.

        1 Reply Last reply Reply Quote 0
        • A
          alivdel
          last edited by

          @KOM:

          Huh??  ???

          Traffic is point-to-point usually.  If you want to read the message, you either need to be the receiver, or you need to intercept the traffic on its way to destination.

          thanks for reply, maybe i didnt explain well, i want to send a command from my Computer to another System which is a Gateway device. two Systems are connected via Lan, i can ping between them. now my question is if i send a command through TCP from my Computer to another System (My pfsense Gateway) how and where can i see the command.

          1 Reply Last reply Reply Quote 0
          • KOMK
            KOM
            last edited by

            You're still not very clear.

            If you send a command to a computer over TCP, then you need a listener of some type on the destination computer to accept and process the message.  I can't be more specific since you're only providing vague information.

            What EXACTLY are you trying to do??  When you say 'telegrams', are you referring to the app Telegram Messenger?  Are you asking how to intercept Telegram messages between other users on your network?

            1 Reply Last reply Reply Quote 0
            • A
              alivdel
              last edited by

              @KOM:

              You're still not very clear.

              If you send a command to a computer over TCP, then you need a listener of some type on the destination computer to accept and process the message.  I can't be more specific since you're only providing vague information.

              What EXACTLY are you trying to do??  When you say 'telegrams', are you referring to the app Telegram Messenger?  Are you asking how to intercept Telegram messages between other users on your network?

              thanks again KOM, i was not at Office thats why i saw your message today.
              i want to execute a Shell script with some Parameters in my second System (Gateway) from first System (my Computer). i want to do it with sending a command over TCP/IP, i dont know is it possible, if ya how can i do it.

              1 Reply Last reply Reply Quote 0
              • jahonixJ
                jahonix
                last edited by

                That's a telnet or ssh session to your gateway.

                1 Reply Last reply Reply Quote 0
                • KOMK
                  KOM
                  last edited by

                  i dont know is it possible, if ya how can i do it.

                  I don't know.  That looks more like a development question, not pfSense specific, and it may be outside the scope of these forums.

                  1 Reply Last reply Reply Quote 0
                  • A
                    alivdel
                    last edited by

                    @KOM:

                    i dont know is it possible, if ya how can i do it.

                    I don't know.  That looks more like a development question, not pfSense specific, and it may be outside the scope of these forums.

                    thanks, i solved the Problem. there is two solution:

                    1. i could use tcpdump to see all the traffic including data which i send from my Computer.
                    2. using tcp socket

                    finally i choosed second way, wrote a tcp socket as Server in c and execute it from console. Now i can send commands through tcp to second System (my Gateway) with some Parameters and execute the Shell script with These parameters.

                    1 Reply Last reply Reply Quote 0
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.