Send TCP message from client to server via firewall
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
My x86 server is running linux (e.g centos 7.x) In this server, firewall is enabled. How can a client application running in another PC can send messages (TCP) to this server?
Using firewall configuration, I can exclude a specified port in the server from the firewall. Is this the only way ?
Again, as a 'kernel developer' for the past 15 years, it's very odd that you seem to lack basic knowledge.
Your question of, "how can a client application send messages over TCP" is answered with, "By *WRITING A PROGRAM TO SEND DATA OVER TCP*". But again, you provide NO DETAILS about this mystery application, what kind/how much data it needs to send, over what TCP port, using what protocol. Opening a port doesn't do ANYTHING beyond letting data get through...you need a program to listen on that port, and another program on the other end to SEND. Opening a port doesn't do anything magical, or make whatever code you write work over a network if you haven't already coded it to do so.
Since you're an 'experienced developer', who has written kernel modules for custom embedded hardware, it should be trivial for you to write a client/server type application.
Thank you very much ! In what scenario should I use IPSEC ?
*AGAIN*
IPSEC has zero to do with a firewall, or a client/server communications program. IPSEC is a VPN.
Opening a firewall port will only let a data through that port...it doesn't magically make your program communicate.
*YOU, PERSONALLY* will have to write code to do this.
You are *STILL* providing zero details about ANYTHING...as you've been told many, MANY times over the past 15 years, without details we can't tell you much. You are not saying how much data, how you want to send it, what you've done/tried, what programming languages, what kind of connection (LAN? Internet? VPN (now that you mention IPSEC)), etc. We aren't going to guess.
If you're not going to bother to answer questions or acknowledge things, there isn't a point in posting. Again, you claim to be a 'kernel developer' working on custom embedded hardware, with 15 years programming experience, but can't seem to do things like load a kernel module or understand the basics of networking. Very odd that someone with your supposed skill-set is having problems with such things.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.