Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I finally decided to combat the problem with dhcpcd and SSH on my machine. For ease of use I created an account with NO-IP and installed noip2. noip is working perfectly. However when I try to ssh into my computer i get a
hostname.no-ip.org port 22: Connection refused
I have been reading around and saw that you can fix this somehow with port forwarding, however Im not using a router, if this matters?
I am running Gentoo kernel 2.6, once again the connection is a single IP dynamic DSL connection.
what is actaully connecting this computer to the internet? if there really is no other machine, i.e. your machine is what holds the public ip address, then you will have either a firewall on the machine (run iptables -L to list active rules) or ssh is not running.
A DSL modem is actually connecting me to the internet. I installed IP tables and I get some module error which Im in the process of fixing. I restarted ssh just to be sure it was running. Tried shell in and got
oj, so there i no firewall. can you ssh to yourself locally? does your /etc/sshd_config permit connection from your source? is there any thing matching in /var/log/secure? can you show your ifconfig output to prove your machine has your internet ip address?
as you can confirm my ifconfig does not have my internet address but my DSL modems address. If you say iptables shows no firewall then I am sure that my DSL modem is automatically blocking it. As for sshd_config i have not messed with anything. I do not even have a /var/log/secure file.
# $OpenBSD: sshd_config,v 1.72 2005/07/25 11:59:40 markus Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options change a
# default value.
# HostKey for protocol version 1
# HostKeys for protocol version 2
# Lifetime and size of ephemeral version 1 server key
# obsoletes QuietMode and FascistLogging
# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
# similar for protocol version 2
# Change to yes if you don't trust ~/.ssh/known_hosts for
# RhostsRSAAuthentication and HostbasedAuthentication
# Don't read the user's ~/.rhosts and ~/.shosts files
# To disable tunneled clear text passwords, change to no here!
# Change to no to disable s/key passwords
# Kerberos options
# GSSAPI options
# Set this to 'yes' to enable PAM authentication, account processing,
# and session processing. If this is enabled, PAM authentication will
# be allowed through the ChallengeResponseAuthentication mechanism.
# Depending on your PAM configuration, this may bypass the setting of
# PasswordAuthentication, PermitEmptyPasswords, and
# "PermitRootLogin without-password". If you just want the PAM account and
# session checks to run without PAM authentication, then enable this but set
# no default banner path
# override default of no subsystems
Subsystem sftp /usr/lib/misc/sftp-server
Sorry, but now your just being offensive. As I have mentioned alot now, I have a DSL MODEM that connects me to the internet. This IS NOT a router. If we get into the technical aspects of a router then perhaps the DSL MODEM falls into the router category. However, I may be incredibly wrong...? Now if you mean that my internet connection might be coming from a router at the ISP then you are completely correct!
So now that I made this fact strictly KNOWN. I am pretty convinced that the DSL modem is blocking my port22. I mentioned earlier that I could log in to my modem through the address 192.168.0.3, and saw that there were some settings for port blocking. However I did not mess with anything since the modem firewall was disabled and wanted to make sure all of my OS setting were correct before messing with it.
Apparantly my DSL modem IS A Router, sorry acid_kewpie for the smart ass remark,
The problem was fixed with the following:
1. log into modem via 220.127.116.11
2. go to advanced configuration options
3. advanced port forwarding
4. type in port and IP for incoming traffic
5. type in port and IP for the modem to route to (e.g. my computer 192.168.0.3)
6. click apply, (this allows that IP to connect to your box, by forwarding the port to your local address).
I'm having similar problems: no-ip + DSL modem ( which I would describe as a bridge rather then router, for one port in one port out) anyhow I'm not so lucky as X-user my modem doesn't give me such options to redirect / forward ports. I cannot to make work web server using port # 80 nor # 8001 which is reported as open.