LinuxQuestions.org
Visit Jeremy's Blog.
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 11-03-2011, 09:33 AM   #1
dreco84
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Rep: Reputation: Disabled
Lightbulb My Local machine being accessed from the internet.


Hi Guys,

Im nt really sure if this is the right place to post this query but I have been facing a incident lately where my machine is being attempted to access from the internet.

Let me first explain my setup.
I have a machine with a broadband connection on it. The ISP provides me a LOCAL IP and there are no modems or routers involved. Its just a network cable that is getting connected directly to my machines Ethernet port.
With this setup I am able to browse and access rest all services perfectly. Also i am able to SSH remote machines without any issues.
But recently when i was checking the messages of my Linux machine i saw that my machine was being tried to access from the net. the logs were as follows ..


Nov 3 19:26:40 huston sshd[8680]: Invalid user awhite from 112.x.x.2
Nov 3 19:26:37 huston sshd[8676]: Invalid user suraj from 112.x.x.2
Nov 3 19:26:36 huston sshd[8674]: Invalid user viptech from 112.x.x.2
Nov 3 14:57:39 huston sshd[7978]: Invalid user gopher from 58.x.x.142
Nov 3 14:57:38 huston sshd[7976]: Invalid user rpc from 58.x.x.142
Nov 3 14:57:32 huston sshd[7974]: Invalid user rpcuser from 58.x.x.142
Nov 3 14:57:30 huston sshd[7972]: Invalid user nfsnobody from 58.x.x.142


Its not that I want them blocked. I can manage that. I am just curious how they could reach my machine without any sorta port forwarding on my ISP's IP.

Any advice on this will be helpful.

Thanks in advance..
 
Old 11-03-2011, 09:42 AM   #2
dreco84
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Just needed to add one more small detail, which i dont think would matter much.

My ISP has a Dynamic Public IP. Still I always have the same STATIC local IP that is assigned to me by my ISP on my machine.
 
Old 11-03-2011, 09:49 AM   #3
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,140

Rep: Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263Reputation: 1263
Unless you are behind address translation or a firewall, then your IP address may be accessed from anywhere on the net. If your IP was not routable, then your web browsing would not work well since the replies from web servers would never get back to you. Not sure what you mean by a local IP address. Can you explain?
 
Old 11-03-2011, 10:52 AM   #4
travisdh1
Member
 
Registered: Sep 2008
Distribution: Fedora
Posts: 129

Rep: Reputation: 22
With no router in between your computer and the internet you will get people trying to access your computer. As long as you haven't turned off iptables or selinux and are using strong passwords your system should be ok. I still like running a router box between computer(s) and any internet connection whenever possible.

As to why you're always seeing the same IP address assigned by the internet hosting provider most ISPs DHCP servers will keep giving the same IP address when it's time to renew. It's always possible to get a different IP when the renewal happens but as you've seen that's not always the case.
 
Old 11-03-2011, 11:44 AM   #5
dreco84
LQ Newbie
 
Registered: Sep 2011
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thanks for the replies smallpond and travisdh1.

First addressing smallpond.
By local i mean a IP of the Private IP range (172.16.x.x). So the outbound packets obviously get Source Natted and reach the internet. And the ISP's router at the ISP end should be sending it back to my machines Private IP as a response to my request. Thus I am able to browse even if I dont have a publicly routable IP.

My ISP charges quiet a lot of extra cost for a Public IP so I was assuming that he cant just leave NAT open on all the ports to all his Clients Private IP's, coz then that would be as good as having a Public IP (in a way). So considering that there is no specific NAT configured on the ISP's router by default, I dont think that the folks on the net should have any access to my machine.
Still this all is as per my understanding. Please correct me if im wrong.

------

Now addressing travisdh1.
I do not have a DHCP configuration. The ISP has permanently assigned me that IP address which i use. but as mentioned earlier its of the Private range. But that is not much of a concern to me as long as things are working just fine. And yes you are correct about the security measures. I do not have a router in between my PC and the ISP Link. Also IPtables is at its minimal. Coz i was not taking such attacks into consideration. But now since my machine seems to be exposed I will surely apply a few more layers of security.

------

Also I would like to share something with you guys that I have just discovered. I checked my current Public IP and tried to access the ports that are open on my machine from the internet, and to my surprise the requests from the internet were reaching my machine. It seems that there is a Destination Nat already applied for my machines IP and I have no clue how that happened .
Still its a good news for me.

Having said that I would like to apologize for the false alarm. but this was a good learning experience for me.

Please let me know if there are more points that could be discussed on this topic else I can mark this thread as solved.

Thanks...
 
1 members found this post helpful.
  


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
Is there a way to see how many times a file has be accessed via the internet? jim.thornton Linux - Newbie 1 07-25-2011 03:47 PM
internet connection cannot be accessed from openSUSE(11.1) lemon09 Linux - Networking 6 06-30-2009 02:51 AM
Squid server not giving access to my local machine to internet ashish1983 Linux - Newbie 3 05-14-2009 12:15 AM
Snort detecting "TCP Portsweep" from local machine to internet IBall Linux - Security 2 10-22-2006 05:46 AM
Setup local machine to allow lan machines to retrieve its local user mail. Brian1 Linux - Networking 3 03-30-2006 05:04 AM

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

All times are GMT -5. The time now is 05:39 PM.

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