Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game. |
Notices |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
04-17-2004, 10:34 AM
|
#1
|
Member
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223
Rep:
|
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!
|
|
|
04-17-2004, 10:48 AM
|
#2
|
Moderator
Registered: Aug 2002
Posts: 26,186
|
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.
|
|
|
04-17-2004, 10:52 AM
|
#3
|
Member
Registered: Oct 2003
Location: Mexico
Distribution: Ubuntu
Posts: 223
Original Poster
Rep:
|
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!
|
|
|
04-17-2004, 02:32 PM
|
#4
|
Moderator
Registered: Aug 2002
Posts: 26,186
|
Just open the ports via the router. For security I do not suggest using FTP or telnet, instead use ssh.
|
|
|
04-17-2004, 03:56 PM
|
#5
|
Member
Registered: Sep 2003
Location: Suwon, Korea
Distribution: Slackware 14
Posts: 288
Rep:
|
forward the ports to the system hosting the site.
|
|
|
04-17-2004, 06:10 PM
|
#6
|
Member
Registered: Oct 2003
Location: Nebraska
Distribution: SuSE 9.0, Redhat 9.0
Posts: 41
Rep:
|
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
|
|
|
All times are GMT -5. The time now is 01:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|