LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 04-17-2004, 10:34 AM   #1
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Rep: Reputation: 31
how to use my Ip address if having a NAT router


Hello:

I used to have dial-up connection and therefore, even when it was way too slow, others could connect to my computer is I was using, let's say, Apache and just give my ip to others.

Now I have ADSL and the ISP gave me a mini modem-hub-router which uses NAT for assingning internal IP addresses to my house. Since I'm sharing the internet connection with other 4 computers, I was wondering is I could connect from outside my LAN.

I noticed there's just one IP address and that it's translated via LAN. Is there anything I can do? I'd like to host a site in one of these computers...

Thanks a lot!
 
Old 04-17-2004, 10:48 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,186

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
One solution would be to sign up with a dynamic host site like noip.com. A client program running on your PC will update the servers with your routers IP address. You will have always have a URL that points to your router.

Then you will need to configure the webserver PC with a static IP address and the routers config for port 80 and the PC's IP address.
 
Old 04-17-2004, 10:52 AM   #3
poeta_boy
Member
 
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223

Original Poster
Rep: Reputation: 31
thanks a lot for the quick response!!!! Just one more thing,... will it allow me also other types of connections, nos just port 80 for Apache, but also like remote login, ftp, etc......

a real guru!
 
Old 04-17-2004, 02:32 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 26,186

Rep: Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087Reputation: 6087
Just open the ports via the router. For security I do not suggest using FTP or telnet, instead use ssh.
 
Old 04-17-2004, 03:56 PM   #5
czarherr
Member
 
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288

Rep: Reputation: 32
forward the ports to the system hosting the site.
 
Old 04-17-2004, 06:10 PM   #6
Louie55
Member
 
Registered: Oct 2003
Location: Nebraska
Distribution: SuSE 9.0, Redhat 9.0
Posts: 41

Rep: Reputation: 15
The best thing to do is to create a static NAT translation in your router (if your ISP gave you access to the Router config). A static NAT translation forwards the request to a certain internal address, i.e. 10.0.0.1. However, this is only efficient if you have a static public address on your router. If your outside address would change, you would have to change the translation. For example, if you have a cisco DSL modem/router and you wanted to forward, for example, a web request to 135.24.87.9 to an inside machine with address 172.16.52.4 you would enter the command:

Code:
set nat entry add 172.16.52.4 80 135.24.87.9 80 tcp
at the cisco command prompt.

You will have to look up the method of doing this for your particular router.

Louie
 
  


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
How can I get my external IP address from behind a NAT? Moses420ca Linux - Networking 23 01-25-2013 05:35 AM
public ip address from behind nat mrtwice Linux - Networking 4 09-13-2012 09:24 AM
blocking mac address and NAT com90185 Linux - Security 6 03-07-2005 06:37 PM
How to detect IP address via NAT server jerrytw Linux - Networking 7 11-08-2004 04:42 AM
Connecting to a VPN from a NAT, ipchain'd address chibione Linux - Networking 1 10-06-2004 05:29 PM

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

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