LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-26-2009, 12:28 PM   #1
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Rep: Reputation: 57
Implications of ip sharing if you're an adsl customer


1. If more than one people are sharing the same ip and they open up the same port for incoming connections for p2p filesharing, how does the incoming connection know who to connect to?

2. If one of them gets attacked with DoS, do they all get attacked?
 
Old 10-26-2009, 12:35 PM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
1. If more than one people are sharing the same ip and they open up the same port for incoming connections for p2p filesharing, how does the incoming connection know who to connect to?
Via NAT, the router keeps a log of adresses
http://en.wikipedia.org/wiki/Network...ss_translation
Quote:
2. If one of them gets attacked with DoS, do they all get attacked?
DoS will use the external IP, so the connection is affected
http://en.wikipedia.org/wiki/Denial-of-service_attack
 
Old 10-26-2009, 03:30 PM   #3
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
1. two computers cannot use the same port when they are behind a NAT router (I think that is what you mean by "IP sharing")
Generally, the computer that opens the port first gets the exclusive use of that port. With p2p applications, the other computer probably will warn about "firewall settings" or something similar.
You can solve this by using different ports on each computer.

2. A specific port is always mapped to a specific computer. So if a DoS attack starts on that port, only one computer is affected.
But to side with repo, when you are under a DoS attack, your adsl line will probably be saturated.

Last edited by janhe; 10-26-2009 at 03:31 PM.
 
Old 10-26-2009, 09:08 PM   #4
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Sorry, I was talking about different adsl customers, not one customer with two computers attached to his router. I hear some isp's do ip sharing between different customers if necessary. In other words one external ip is shared by two customers, each with his own router and nat. Is that not true?

If it is true, please read the first post.

Last edited by Ulysses_; 10-26-2009 at 09:11 PM.
 
Old 10-27-2009, 01:43 AM   #5
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
AFAIK the only thing that ISPs do over here is give dynamic IP addresses.
This means that when you reconnect, you get a new IP address.
In that case only one customer has the IP at the same time, so the IP isn't really shared. (more like time-shared)

If they give the same IP to more than one customer at the same time, the ISP has to use NAT. In that case, read my post above.
 
Old 10-27-2009, 01:52 AM   #6
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
It should not be possible for two customers to have a same IP addresses at the same time. Allocating dynamic ip addresses can give same ip to customers on different times.
 
Old 10-27-2009, 02:14 PM   #7
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Thanks. Here's an off-topic issue, but recently I set up two computers to connect to the eMule p2p network at the same time in the hope of speeding up the download, and I used different ports as you said, but the two computers could not see each other's files on a p2p search. They connected to the same server and could not see each other. And then they connected to different servers and still they could not see each other, even after hours. How can that be?
 
Old 10-27-2009, 03:17 PM   #8
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
It is possible that eMule supports only one client per IP.
I'm not sure about that.
Probably people at the eMule forum can help you better with this question: http://forum.emule-project.net/
 
Old 10-28-2009, 05:32 AM   #9
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Isn't there a shortage of ip's available for adsl users, now that so many people have such internet access? How can isp's have so many customers and therefore so many connected at any time, if the number of ip's available is not growing?

Could it be that the same nat we do with routers, is also done at another level by isp's with their own routers?

There must be a way to map several ports to one for outgoing connections, I think it's only incoming ones that need distinct ports - is that right?
 
Old 10-28-2009, 06:10 AM   #10
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Isn't there a shortage of ip's available for adsl users, now that so many people have such internet access? How can isp's have so many customers and therefore so many connected at any time, if the number of ip's available is not growing?
They can add ip blocks.
Not all customers are cnnected at the same time.
There still are ip's available
And ipv6 will start if not :-)
 
Old 10-28-2009, 06:23 AM   #11
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by repo View Post
They can add ip blocks.
Aren't those ip blocks owned by someone, perhaps an isp owns them who also needs more ip's for the same reasons. Isn't it easier to just add a second level of nat so one external ip corresponds to several connected customers?
 
Old 10-28-2009, 06:28 AM   #12
linuxlover.chaitanya
Senior Member
 
Registered: Apr 2008
Location: Gurgaon, India
Distribution: Cent OS 6/7
Posts: 4,631

Rep: Reputation: Disabled
That is true to some extent. I have seen some cable net providers who give private ip addresses to the customers and nat at their end.
But as repo said, not all customers are online at same time. So the number of customers can significantly outnumber number of ip addresses available and then ipv6 is also there.
And those who do nat'ing at their side usually provide private addresses. This will not empty the addresses.
 
Old 10-28-2009, 06:40 AM   #13
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by Ulysses_ View Post
How can isp's have so many customers and therefore so many connected at any time, if the number of ip's available is not growing?
Please read more carefully, it gets tiresome to hear the same over and over.

With Isp's who do nat'ing at their side, what happens if a customer wants to make their own lan? I used microsoft connection sharing once but didn't understand what was going on and it was unreliable. What's the proper thing to do in this case?
 
Old 10-28-2009, 07:55 AM   #14
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Quote:
Originally Posted by Ulysses_ View Post
Please read more carefully, it gets tiresome to hear the same over and over.

With Isp's who do nat'ing at their side, what happens if a customer wants to make their own lan? I used microsoft connection sharing once but didn't understand what was going on and it was unreliable. What's the proper thing to do in this case?
I get the impression that you keep rephrasing the same question. It might be a misunderstanding of me.

It boils down to this:
-Incoming ports need to be explicitly specified on the NAT router (there are techniques that allow applications to do that without user intervention: UPNP)
-Outgoing ports are opened by the NAT router automatically (connection tracking)
-Port mappings are always pointing to one port on one computer in the lan behind the NAT

-Because NAT at the ISP effectively blocks all incoming ports for the costumer, almost no ISP uses NAT on his (ADSL-) network.
-They can still do that because there still are a few IP addresses left.
-Even if the ISP is using NAT, the costumer can still use an extra layer of NAT, but AFAIK forwarding of incoming ports will be impossible.

Also: Do you want advise on how to share your internet connection? If so, please post more details, and do so in a new tread?
 
Old 10-28-2009, 03:54 PM   #15
Ulysses_
Senior Member
 
Registered: Jul 2009
Posts: 1,303

Original Poster
Rep: Reputation: 57
Quote:
Originally Posted by janhe View Post
Do you want advise on how to share your internet connection?
No, just thought it was the normal way of connecting several computers to one modem and ip for customers that do not use the router nat, as one might expect with isp's that do their own nat as you say.

Quote:
Because NAT at the ISP effectively blocks all incoming ports for the costumer, almost no ISP uses NAT on his (ADSL-) network
What are incoming ports for? I only remember ever setting them up for better p2p performance, they were like a luxury. Can we live without them?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
ADSL Connection sharing without proxy ? nileshgr Linux - Networking 2 03-03-2008 08:01 AM
Sharing Internet connections: two ADSL at one xbaez Linux - Networking 1 02-21-2005 03:07 PM
Linux and ADSL Router - sharing with Windows Idris1969 Linux - Networking 2 02-27-2004 09:26 AM
networking adsl sharing usb ( many questions) oobe Linux - Networking 11 01-29-2004 10:37 PM
sharing ADSL connexion harck Linux - Newbie 2 01-19-2004 03:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration