LinuxQuestions.org
Review your favorite Linux distribution.
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 05-07-2006, 11:25 PM   #1
isudln
LQ Newbie
 
Registered: May 2006
Posts: 1

Rep: Reputation: 0
Unhappy ddclient through D-Link router for two machines at the same time


I have successfully set up DynDns for my Redhat machine through D-Link router, then DSL. Then I have a new machine installed Debian that I am trying to connect to DynDns. Don't ask me why I have both Redhat and Debian :-((

As an example, let me assume that I use the following domain names:

redhat.dyndns.org for the redhat machine.

debian.dyndns.org for the Debian machine.

Don't ask me why I set up two machines either :-(( Anyway, the ddclient.conf looks as follows.

pid=/var/run/ddclient.pid
use=web
login=MY_DYNDNS_NAME
password=MY_DYNDNS_PASSWORD
server=members.dyndns.org, \
protocol=dyndns2 \
debian.dyndns.org

I saw the IP address is updated. Unfortunately, when I do

ssh debian.dyndns.org

it always go to redhat machine!!!!

When I shut down the redhat machine. The update still happens but the ssh cannot find the machine. I suspect that is something related to the router. I don't remember I did anything :-(((

Any shark knows the solution?
 
Old 05-08-2006, 12:17 AM   #2
spooon
Senior Member
 
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 51
So you have two machines on the same public IP address. You can't forward SSH port to both of them at the same time. Your router is apparently set up to forward port 22 to your RedHat machine.

So what you should do is set a different SSH port on the Debian machine. Then tell your router to forward that port to the Debian machine. And then use that port whenever you need to SSH to the Debian machine.
 
  


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
Small Linux Router/firewall behind D-Link Hardware router dleidlein Linux - Networking 6 04-30-2007 05:12 AM
two machines, one router, no connection blue.spark Linux - Networking 2 04-14-2005 03:26 AM
How to start ddclient at boot time? Nitrof Other *NIX 3 04-04-2005 02:50 PM
All machines using same IP from D-Link router GreenerLinux Linux - Networking 8 10-21-2003 12:32 PM
ddclient config for netgear rp614 router shin1 Linux - Networking 1 04-06-2003 11:01 PM

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

All times are GMT -5. The time now is 05:31 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