Some questions about TCP/IP
Newbie questions about tcp/ip :
Hi, I read some things about TCP/IP, packets etc. etc.. And I got some questions :
the 3 first questions are "linked" together :
1 - If I'm behind a router, how is it possible for somebody to reach me? I understand that my MAC address is in the header when I initiate a connection, but how about when somebody wants to initiate a connection with a particular computer behind a router? It's impossible?
2- Another question... If somebody wants to hack somebody else who is behind a router, how can he know that there is more than 1 computer at this IP adress? (is that something to do with broadcasting?) Because there will be only 1 ip address for the router, right? And even if he knows that there is 3 computers (or whatever), how can he hack in one particular computer ? Let's say I open a port (honeypot), how is that possible that somebody will find it?
3- Let's say I got 3 computers on my router, and one of them is running an HTML server (apache, IIS, whatever)... Should I use port fowarding or something like that? Is that how someone could hack into a network: hack a computer (hacking the server running, for example, an old version of apache) and have access to all the computers on this network?
Finally, I'll probably build a little network here, with 4-5 old computers to test things about security. I already got a DSL router with 2 computers and a XBOX (what? :P) on it. What should I do? Can I add 1 other router to this router? How will this work with DHCP (is the new router will get an automatic IP with DHCP with the 1st router)? And what will happen to my computers that are behind the second router (wich is connected to the 1st router wich is connected to the internet). Will they be able to go on the net? And will they be able to talk to the computers wich are on the 1st router?
A drawing maybe? :P
Code:
___ Computer 1 (IP: obtained with DHCP)
|___ XBOX (DHCP)
internet->1st router (ip: static) |___ Computer 2 (DHCP)
|___ 2nd router (DHCP ??) ---- Comp. 4
|----Comp. 5
Wow my graph is almost working.. :|
(well, there is the internet, my dsl modem, a DSL router, some computers. And i would add one router on the first router and some computer on the 2nd router)
So.. As I understood, the 2nd router will got 2 IP addresses, one when you are from the 1st network, and another one when you are from the 2nd network. And since the 1st router is using DHCP, will I have to configure my computers and the 2nd router using static ip? And how the computer 4 and 5 will know how to get on the NET or to communicate with computer 1 for example? I read something about routing tables, and my router seems to have some configuration - Dynamic routing and static routing.. What's the difference?
(By the way, I got a DSL syslink router.)
4- So finally my question is : Will have have to turn off DHCP if I plug another router in my first router and use the Dynamic and static routing table? And what is the diff between the static and dynamic tables?
Re: Some questions about TCP/IP
Quote:
Originally posted here by xicepik
2- Another question... If somebody wants to hack somebody else who is behind a router, how can he know that there is more than 1 computer at this IP adress? (is that something to do with broadcasting?) Because there will be only 1 ip address for the router, right? And even if he knows that there is 3 computers (or whatever), how can he hack in one particular computer ? Let's say I open a port (honeypot), how is that possible that somebody will find it?
Havn't read all of this because I'm busy, but for this one. Yes, with a ping sweep.
Re: Re: Some questions about TCP/IP
Quote:
Originally posted here by gore
Havn't read all of this because I'm busy, but for this one. Yes, with a ping sweep.
i think he meant with a nat on the router, any ways if you have a NAT isntalled on the router then it will be much difficult to detect those PCs, if you have a firewall configured right then it is almost imposible.
any ways just download Nmap from www.insecure.org and then run it as such
nmap -sP [ip_address]
check man nmap for more details.