Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
|
05-13-2014, 12:25 AM
|
#1
|
Member
Registered: Jun 2007
Posts: 71
Rep:
|
mapping incoming packets
Hi
I have a computer running as a web server and a file server. I would like to know how incoming packets are mapped, how the computer identifies which packet are to be handled by the web serer.
Please, not to technical, I am a newbie at this.
Thank you
|
|
|
05-13-2014, 03:14 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
it's the TCP port number that the packet is sent to. Web servers generally listen on port 80 and 443, so a packet hitting the box for those port numbers will be connected to the process listening on that port.
|
|
|
05-13-2014, 06:40 AM
|
#3
|
LQ Addict
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 23,290
|
You can imagine the "line" is connected to the box and there are more than 65 thousand "gates" can be configured to let the information enter. Those gates are named ports and every port has its own program to interpret the information arrived. There is a file /etc/services where you can find the common configuration of those ports (that means which program will listen to which port). TCP and UDP are something like two different languages
web servers generally listen on port 80 and 443 (443 is used for a different kind of connection).
When you want to connect to a host you always need to tell not only the name of that host but the port too. (usually default values used, taken from that /etc/services file).
|
|
|
05-13-2014, 10:00 PM
|
#4
|
Member
Registered: Jun 2007
Posts: 71
Original Poster
Rep:
|
Thank you, I must of had a brain fade, never thought of port number at the time
|
|
|
All times are GMT -5. The time now is 09:20 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|