LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
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 10-21-2004, 03:11 AM   #1
softice2001
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Rep: Reputation: 0
accessing an internal network via internet


Hi,


I have a DSL Internet Connection with a linux router, and dyndns.

I want to connect fron the internet to a server in my internal network.

For Example, my dyndns Name is xyz.dyndns.com.
I want connect to the internal IP 10.0.0.10 for the DNS Name internal.xyz.dyndns.com.

With http Forwarding via apache this solution works if I want to forward to an internal webserver.
With Port based Forwarding via iptables it works, too.

Thanks for help.

Softice2001
 
Old 10-21-2004, 03:36 AM   #2
darthtux
Senior Member
 
Registered: Dec 2001
Location: 35.7480 N, 95.3690 W
Distribution: Debian, Gentoo, Red Hat, Solaris
Posts: 2,070

Rep: Reputation: 45
If I understand correctly, this may help

http://jamesallen.dyndns.org:3000/tutorials/dyndns.html
 
Old 10-21-2004, 03:45 AM   #3
softice2001
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
I mean something different.

The access over the internet to my dsl router works with dyndns.
But i want to set up a connection to an other host in my local network,
This connection should be over a name DNS name.
For example if my dyndns is xyz.dyndns.com the connection to the internal server should be with server.xyz.dyndns.com.


Thanks
Softice2001
 
Old 10-21-2004, 04:21 AM   #4
BillJennings
Member
 
Registered: Oct 2004
Location: Big River, California, USA
Distribution: Debian
Posts: 48

Rep: Reputation: 15
Do you mean to say that there are two A records, one for xyz.dyndns.com and another for server.xyz.dyndns.com? Or are you just asking how to do port-forwarding in the linux router?

Sincerely
Bill Jennings
 
Old 10-21-2004, 04:57 AM   #5
softice2001
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Yes, I mean more than one A record.

If could setup a local DNS Server for the domain xyz.dyndns.info but then there is nor forwarding to the internal servers.
 
Old 10-21-2004, 05:37 AM   #6
BillJennings
Member
 
Registered: Oct 2004
Location: Big River, California, USA
Distribution: Debian
Posts: 48

Rep: Reputation: 15
Then you need two IP addresses from you ISP (one for each A record), and the appropriate routing (and possibly DNAT rules in iptables) to the internal server for one of them.

Is this what you are looking for?

Sincerely
Bill Jennings
 
Old 10-21-2004, 06:08 AM   #7
softice2001
LQ Newbie
 
Registered: Oct 2004
Posts: 4

Original Poster
Rep: Reputation: 0
But with DSL,

there is only one IP adress which changes ever 24h.

Is there any posibility to get this work?
 
Old 10-21-2004, 12:35 PM   #8
BillJennings
Member
 
Registered: Oct 2004
Location: Big River, California, USA
Distribution: Debian
Posts: 48

Rep: Reputation: 15
If your ISP will only give you one IP address, then there is no point in having two different hostnames (they must both resolve to the same single IP address). You can differentiate between the two computers by the port number. e.g. If you connect to port 80 you get the web server, but if you connect to port 25 you get the mail server. This is all done with port-forwarding in the router/firewall. If the router/firewall is a linux box, you do it with iptables (using DNAT).

Hope this helps.

Bill Jennings
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
accessing my site from internal network FLBlindman Linux - Networking 10 08-22-2005 09:39 PM
Accessing a network PC from internet won't work Kujila Linux - Networking 5 07-29-2005 04:13 PM
accessing an internal network via internet kg4joh Linux - Networking 1 10-03-2004 08:02 PM
Can't ping or ftp from internal network to internet vk1985 Linux - Networking 4 03-18-2003 08:52 PM
accessing box from internal network but not from external JereBear Linux - Networking 12 05-12-2001 01:12 AM


All times are GMT -5. The time now is 07:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration