Linux - NetworkingThis 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.
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.
I want to host my small web site on own web server. I have Mandrake 10.1 official release and using apache 2.0.x version. I am running 4 (name based) virtual sites on my system. There are 4 other systems connected with this. And my Internet connection is to an other system in this network.
here is a summary of current setup
PC1 MANDRAKE 10.1 192.168.0.2 WebServer/Local MailServer
PC2 Windows 98 SE 192.168.0.1 Connected Direct to Internet
PC3 Windows 98 SE
PC4 Red Hat 9 Using as a Desktop PC
all of four PC are connected to each other via hub and working fine. Internet connection is shared and I can use internet in all pcs. Currently I haven't STATIC IP, but once I got my webserver accesible from out side with current IP, I buy one and also a Domain name. But for now I will use No-Ip like service.
Now, As Internet is connected on PC2 (which isn't running server) only IP visible to out side user is 61.0.204.101 [not real ip, just for example], But My webserver is listing on 192.168.0.2. So I want to know, how can a out side visitor (who is not connected physically to my PC1) will access that web server.
I know 192.168.0.2 is a class C network address and that can't accessible out side of subnet.
So I think a way of Redirect Application, but not sure. How a web server farm manage this. do they have seprate net connection for each machine they have ? if so.. then is there any alternative ? because I am not planning for such big level.
Thanks,
Kirtimaan.
Last edited by kirtimaan_bkn; 09-22-2005 at 08:08 AM.
You Need to setup NAT and Port Forwarding on the machine connected to the internet.
For example, Port forwarding will redirect all traffic to port 80 (http) to 192.168.X.X (your linux server)
But i dont know much about windows, I dont know if windows98 can perform NAT (network address translation) or Port Forwarding.
Ask on a windows forum, OR change your netowrk wireing, so that Linux is directly connected to the internet.
Linux can habndle internet shareing much better than windows98.
You Need to setup NAT and Port Forwarding on the machine connected to the internet. For example, Port forwarding will redirect all traffic to port 80 (http) to 192.168.X.X (your linux server) But i dont know much about windows, I dont know if windows98 can perform NAT (network address translation) or Port Forwarding. Ask on a windows forum, OR change your netowrk wireing, so that Linux is directly connected to the internet. Linux can habndle internet shareing much better than windows98.
Hello,
Thanks for your quick reply. Okay, I can install Linux on PC2 (which is connected to internet and have Windows 98 SE) . Then Can you guide me how to configure that in Linux? I never come in touch with NAT and port forwarding conf. Is there inbuilt support for Network Address Translation in linux or I have to use any app. If any other app, can you suggest me which one.
Additionally I have another question related to previous reply. Whenever I will get STATIC IP address, my ISP will give me a ADSL connection with a ADSL modem, which I works like a small router. means It will have its own IP (like 192.168.0.55) and I have to set all pc's gateway to this IP.
Now, then how can I apply NAT and port forwarding, since there as far as I know no windows or linux will be there installed on ADSL modem itself.
Most of the routers run linux. I wouldnt sugest you to run windows as your gateway. You can use Openbsd or linux as your gateway. When you get your adsl modem, you should run your modem in bridge mode with a pc. If you are gettin a router, you can use the web interface to setup forwarding and stuffs like that. Cheers
I would like to publish my webpage to let outside world take a look. Please really help this newBie.
I find this thread and I got similar problem like you, so I post my question here.
I using the probably the same Linksys router wrt54g as DHCP/gateway and it assign IPs to local machines. I set maximum number of clients to be 8. So the range for the LAN is 192.168.1.100 - 192.168.1.107
On the Linksys router, DHCP is enabled, I setup port forward for any requests coming in on port 80(http) and 53(DNS) to be directed to 192.168.1.107(my web server private IP)
Port Range Forward
Application Start End Protocol IP Address Enable
http 80 80 tcp/udp 192.168.1.107 x
dns 53 53 tcp/udp 192.168.1.107 x
Also put the web server private IP (192.168.1.107 ) in DMZ inside router.
If outside machines access my page(http://www.mysite.com), the registered domain points to my dynamic IP account (xxxx.dyndns.org). And account details also set in the gateway router.
But outside still could not see my page, the error is:
ERROR
The requested URL cound not be retrieved
While trying to retrieve the URL http://xxxx.dyndns.org
The follow error was encountered:
connection failed
They system returned:
(111) connection refused
this is a thread where you can get some idea. Actually I didn't got my router working right now and also trying BLFS on my system so I paused this experiment and will resume on my own distro (BLFS) !
i was trying to set up a server on my LAN, (cable modem and router). Everything was fine, ftp and stuff going. I then forwarded port 80 to the server, and the server was able to access www, but the next time I tried my main machine, www requests just timed out. Is this normal? Will I have other configuring to do if I forward port 80 to the server? Are all the pages I'm requesting from my machine being sent back, but getting redirected to the server? How do I get around that?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.