LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 06-09-2004, 03:52 PM   #1
Basta
LQ Newbie
 
Registered: Jun 2004
Posts: 15

Rep: Reputation: 0
Question telnet to Linux via a DSL modem


I've got a new issue. I want to telnet to a Linux Machine. The configuration is as follows:

DSL Modem (Speedtouch 510)
IP (my ISP IP)
|
|
WAP + gateway + Switch (3COM OfficeConnect)
IP 192.168.30.1 (obtained from DHCP of Modem?)
|
|
Linux Machine (Mandrake 10)
IP 192.168.30.54 (obtained via DHCP of 3COM gateway)

I can do:

telnet 192.168.30.54.

But if I do

telnet [My ISP IP]

then I get into a telnet session of the DSL Modem. To solve this I set the NAPT Default server of the DSL Modem to 192.168.30.54. When I now do

telnet [My ISP IP]

I get a connection timeout.

Help is very welcome

Bas

Last edited by Basta; 06-14-2004 at 03:06 AM.
 
Old 06-09-2004, 05:12 PM   #2
bastard23
Member
 
Registered: Mar 2003
Distribution: Debian
Posts: 275

Rep: Reputation: 30
Bas,

Is your router (3com) doing nat for you? You probably have to get the DSL router to point to the 3COM switch, then you may need to get this to do port forwarding as well.

Try doing a traceroute/tracepath to your Internet IP. You may need to use tcptraceroute instead. (Check to see if your distro has it already.) That will tell you a little about the config between the DSL router and the 3COM 802.11/802.3 router.

Good Luck,
chris
 
Old 06-10-2004, 06:17 AM   #3
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: telnet to Linux via a DSL modem

Quote:
Originally posted by Basta
I've got a new issue. I want to telnet to a Linux Machine. The configuration is as follows:

DSL Modem (Speedtouch 510)
IP (my ISP IP)
|
|
WAP + gateway + Switch (3COM OfficeConnect)
IP 192.168.30.1 (obtained from DHCP of Modem?)
|
|
Linux Machine (Mandrake 10)
IP 192.168.30.54 (obtained via DHCP of 3COM gateway)

I can do:

telnet 192.168.30.54.

But if I do

telnet [My ISP IP]

then I get into a telnet session of the DSL Modem. To solve this I set the NAPT Default server of the DSL Modem to 192.168.30.54. When I now do

telnet [My ISP IP]

I get a connection timeout.

Help is very welcome

Bas

Don't know why you want to go back to insecure telnet instead of ssh but you are trying to go back out to the internet (by using ISPs IP) and then back in.

You would need to open 23 port and map it to your linux box.

Or find some way of detecting that it is internal and route it internally. Why not add a IP for your external domain and then use that to telnet

/etc/hosts
------------
192.168.0.54 x.diddily.com

and then telnet to x.diddlily.com

where x.diddily.com is your external domain name for your external IP.
 
Old 06-10-2004, 06:51 AM   #4
Basta
LQ Newbie
 
Registered: Jun 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Thanx bastard23 for you reply. If I do a TCP trace (with NeoTrace form a WinXP laptop in the same network) I get:

NeoTrace Trace Version 3.25 - TRIAL Results
Target: XXX.XX.XX.XXX (My ISP IP)
Date: 6/10/2004 (Thursday), 1:47:07 PM
Nodes: 3


Node Data
Node Net Reg IP Address Location Node Name
1 - - 192.168.30.19 51.500N, 4.300E Laptop_BPS
2 1 - 192.168.30.1 Unknown
3 2 1 XXX.XX.XX.XXX (My ISP IP) AMSTERDAM speedtouch.lan


Packet Data
Node High Low Avg Tot Lost
1 0 0 0 1 0
2 3 3 3 1 0
3 ---- ---- ---- 2 2


Network Data
Network id#: 1

OrgName: Internet Assigned Numbers Authority
OrgID: IANA
Address: 4676 Admiralty Way, Suite 330
City: Marina del Rey
StateProv: CA
PostalCode: 90292-6695
Country: US

Network id#: 2
XS4ALL Internet BV
Postbus 1848
1000BV Amsterdam
The Netherlands



Registrant Data
Registrant id#: 1
See Registrant Pane for registrant contact information.


Looks like my Trace stops at my DSL Modem (Speedtouch LAN). I filled in 192.168.30.54 as Default Server in the NAPT settings. I thought this would mean that every request is forwarded to that IP?

Does this information help?

Bas
 
Old 06-10-2004, 06:58 AM   #5
Basta
LQ Newbie
 
Registered: Jun 2004
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you linuxxed for your reply. The reason I want to telnet the linux server is beacuse I want to configure the server remotely. So when I'm outside I can still access the server. At the moment I use my laptop to test it and I know that because this laptop is connected to the same network it is easier to use the internal IP directly to telnet (this works without problems). I'm also aware of the security issues with telnet so when everything works I will try to get ssh working too.

I'm not sure what you meant with adding an IP and domain name and whether that solves my problem.

Bas
 
  


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
D-Link DSL-200 Rev B DSL modem -- success!! ludeKing Linux - Hardware 1 03-11-2007 06:32 PM
How can I use a ericsson USB DSL modem on Linux Ruben2 Linux - Networking 0 09-07-2004 02:44 PM
Dsl Modem Installation -- Aztech Dsl Turbo 100 psganesh Linux - Networking 0 07-01-2004 02:04 AM
Linux DSL/Cable Modem setup zodmaner Linux - Networking 3 02-11-2003 09:30 AM
dsl modem and linux router diveguy Linux - Networking 3 03-27-2002 11:15 PM

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

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