Linux - NetworkingThis 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.
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.
I don't know how to explain this, but I seem to be having some problems with ssh connectivity. My Gentoo Linux-box has ssh enabled and I am able to connect to it with my other WinXP computer and also a couple of friends are able too (all of us have the same ISP so our IP's start with 212.149.*.*).
The problem is, that I can't connect to it from many other computers like from school or work etc. I wonder if there is somekind of a config file that only allows certain IP's or then the problem is somewhere else. I haven't found any help from other forums so I hope you guys could help
Thanks in advance.
File not found on both /etc/hosts.allow and /etc/hosts.deny. So I guess to problem's not there :P
My friend manages to connect to his Linux-box from school, so I believe there isn't a firewall blocking port 22.
Also I don't know yet how to check my system log, so I'd like some advice on that too
Originally posted by Kero-Chan
File not found on both /etc/hosts.allow and /etc/hosts.deny. So I guess to problem's not there :P
My friend manages to connect to his Linux-box from school, so I believe there isn't a firewall blocking port 22.
damn that was my first thought :-)
are you trying to connect by entering you ip directly? normally it is a simple process - so it seems like your saying you can connect from a machine in the 212.149.*.* range but not outside that. do you have a firewall running?
Quote:
Also I don't know yet how to check my system log, so I'd like some advice on that too
ok well kinda depends on the system logger you choose. for syslog or syslog-ng then you need to look in /var/log/messages, for metalog you can look in /var/log/everything/current
I have an ssh directory in /var/log/ that my ssh related log entries go into (metalog rules btw :-)) and similar things can be done with syslog-ng etc., so on the off chance vehclk that as well.
Sorry for being away for a while (like you would care =P)
Well I had to re-install Gentoo because a few little "accidents" and I got another weird problem.
When booting Gentoo, I get this error message saying this:
*Bringing eth0 up via DHCP [ !! ]
* ERROR: Problem starting needed services.
* "netmount" was not started.
And because of that I can't get access to the internet. I've tried running netmount manually, but it can't start eth0 either. When I do "ifconfig eth0" I get an error saying:
eth0: error fetching interface information: Device not found
I've tested the card and it's working 100% and it's hooked on the comp. fine. And now Iäm out of ideas =P Hope some of you could help me! =)
You didn't do anything different this install, did you? Did you change the computer's hardware in any way? Did you do a custom package selection as opposed to a full install? Did it work "out-of-the-box" before?
Originally posted by Kero-Chan
[SNIP]
And because of that I can't get access to the internet. I've tried running netmount manually, but it can't start eth0 either. When I do "ifconfig eth0" I get an error saying:
eth0: error fetching interface information: Device not found
I've tested the card and it's working 100% and it's hooked on the comp. fine. And now Iäm out of ideas =P Hope some of you could help me! =) [/B]
OK so if the device is not found then you are probably missing a module or something similar. I assume you mean when you say you tested it and it was working that you wern't using this gentoo install? either that or maybe the user you are logged in as doesn;t have sufficient access (not sure about that, don't know how to restrict access in that way but I am sure its possible).
Do you have the required modules and/or support for your network card comiled into the kernel?
are you comiling the kernel manually or using genkernel?
You didn't do anything different this install, did you?
Umm.. yes I did =P I didn't use "genkernel all" this time, and I configured it myself. The last time I used "genkernel all" and it didn't work and someone told me I should compile it again, and now I did. I added the modules I thought was needed for it to function correctly and some extra modules for other eth cards.
The hardware has been the same except for the harddrive (the reason for re-install). I tested the card with a WinXP comp. (*gasp*) and it worked ok. I'm also logged in as root, so I don't think that will be a problem =P.
You should probably go back to your kernel config and give everything the once over, just to be sure before you try other things. You probably just flatfingered a combobox someplace and left out support for networking, or your type of network card. It happens to the best of us, so don't rule it out. I suggest you go check it out.
assuming you know what module the card needs, is that modules loaded (ie is it in /etc/modules.autoload - or /etc/modules.autoload.d/kernel2.x/ if you are up to date)
if you do an lsmod do you see this module loaded?
you may want to do an lspci | grep net to see which card(s) are physically present.
If you are not sure what driver to use port the result of the lspci and we can work out what actually needs to be in the kernel
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.