[solved]receiving telegrams over TCP/IP
-
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.
-
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.
-
@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.
-
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?
-
@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. -
That's a telnet or ssh session to your gateway.
-
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.
-
@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:
- i could use tcpdump to see all the traffic including data which i send from my Computer.
- 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.