LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > General
User Name
Password
General This forum is for non-technical general discussion which can include both Linux and non-Linux topics. Have fun!

Notices



Reply
 
Search this Thread
Old 11-27-2005, 03:54 PM   #1
adnanm
Member
 
Registered: Dec 2004
Location: Bosnia and Herzegowina
Distribution: Centos, FreeBSD
Posts: 49

Rep: Reputation: 15
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.
 
Old 11-27-2005, 04:58 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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.
 
Old 11-27-2005, 05:00 PM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
 
Old 11-27-2005, 05:10 PM   #4
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
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
 
Old 11-27-2005, 05:22 PM   #5
adnanm
Member
 
Registered: Dec 2004
Location: Bosnia and Herzegowina
Distribution: Centos, FreeBSD
Posts: 49

Original Poster
Rep: Reputation: 15
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.
 
Old 11-27-2005, 05:29 PM   #6
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

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


Cheers,
Tink
 
Old 11-27-2005, 05:34 PM   #7
adnanm
Member
 
Registered: Dec 2004
Location: Bosnia and Herzegowina
Distribution: Centos, FreeBSD
Posts: 49

Original Poster
Rep: Reputation: 15
cause I want to be able to access to that machine from the net via ssh
 
Old 11-27-2005, 05:46 PM   #8
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,005
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
 
Old 11-27-2005, 05:50 PM   #9
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
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
 
  


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
need help configuring slackware 10.2 as a server Redeye Jedi Slackware - Installation 1 12-02-2005 12:29 PM
Need help configuring samba server bruno buys Linux - Networking 2 07-20-2004 03:19 PM
configuring x server in slackware kb=mvp Linux - Newbie 9 06-22-2004 08:19 AM
Configuring MySql server goldfish Linux - Newbie 2 10-15-2003 12:34 PM
Configuring X Server cool_coolioin Linux - General 3 07-03-2002 09:45 AM


All times are GMT -5. The time now is 06:41 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration