LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   General (http://www.linuxquestions.org/questions/general-10/)
-   -   Configuring server (http://www.linuxquestions.org/questions/general-10/configuring-server-387031/)

adnanm 11-27-2005 03:54 PM

Configuring server
 
hi,

I have installed Suse 10 on my machine and congfigured apache and php.

Now the problem is I have a DSL modem and when I type in my browser my IP it opens me my DSL modem config page (I got my ip from whatismyip.com). How to make that when I type in my IP to get to my computer.

Tinkster 11-27-2005 04:58 PM

Moved: This thread is more suitable in <General> since it's about setting up a router, and has been moved accordingly to help your thread/question get the exposure it deserves.

Tinkster 11-27-2005 05:00 PM

What you need to do is to set-up port forwarding
on your router device ... and you may want to change the
routers set-up to disallow set-up from the internet ;}


Cheers,
Tink

Brian1 11-27-2005 05:10 PM

If I understand this correctly you want to see your web server from the machine itself or another lan machine from inside your lan using your external IP. Then Tinkster is right. Got this link thanks to Capt Caveman
http://iptables-tutorial.frozentux.n...tml#DNATTARGET

Hope this helps
Brian

adnanm 11-27-2005 05:22 PM

what I have is:
my DSL modem with internal IP 10.0.0.138
my linux machine with internal IP 10.0.0.1

So I would like that when I type in my real IP to go to my linux machine.

Tinkster 11-27-2005 05:29 PM

That doesn't even make sense. Why on earth would you
want internal traffic to go through the router?


Cheers,
Tink

adnanm 11-27-2005 05:34 PM

cause I want to be able to access to that machine from the net via ssh

Tinkster 11-27-2005 05:46 PM

What has ssh got to do with your browser?! How does
going to the apache via the router internally give you
the ability to access the machine via ssh from the outside?

I strongly suggest that you do some basic reading
about networks mate...




Cheers,
Tink

Brian1 11-27-2005 05:50 PM

Easiest way to test is from internal is use your client to access the sshd server with the internal machine. Then from the outside use the wan IP. Since you are using 10.x.x.x as your internal lan then there is router on the modem. It needs to port forward the port of 22 from outside IP to the inside lan IP. Now you will want the linux machine to have a static IP and not a dynamic IP. This way the portforward will always go to the correct machine.

Now also if the linux machine has a firewall of itself it needs to open port 22 to it.

Next, once the sshd is up, there is no port blocking of a firewall on the linux box, port-forwarding on the modem/router has been defined. Then and external IP access port 22 should be directed to linux ssh server.

Now you may still not be able to use your external IP from inside your 10.x.x.x network do to limitations of these simple devices. You may only be able to get to it from its internal ip from inside your own network.

Last thing that can happen. Some Service Providers block the common ports to stop there customers from using there machine as a server. They ususally block the comman ports. So what you may have to do is from the internet type in your external IP and use a port number of say 10000 instead of 22. Now all that has to be changed is the router. Just set so that when it gets a connection to 10000 port on the wan side that it is portforwarded to the lan IP and using port 22.

Brian


All times are GMT -5. The time now is 08:50 AM.