LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-24-2012, 07:38 AM   #1
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Rep: Reputation: 6
Dynamic DNS How to


hi guys

Is there any good Dynamic DNS how to's for Slackware , especially one with the server behind the adsl router


Regards

Lawrence
 
Old 01-24-2012, 07:57 AM   #2
jhwilliams
Senior Member
 
Registered: Apr 2007
Location: Portland, OR
Distribution: Debian, Android, LFS
Posts: 1,168

Rep: Reputation: 211Reputation: 211Reputation: 211
AFAIK, and indeed what I use for DDNS, ddclient is the best solution.

Slackpack: http://slackbuilds.org/repository/13...work/ddclient/
Documentation: http://sourceforge.net/apps/trac/ddclient#Configuration
More documentation: http://sourceforge.net/apps/trac/ddclient/wiki/Usage
 
Old 01-24-2012, 08:04 AM   #3
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Original Poster
Rep: Reputation: 6
I setup ddclient , all is well and I can get to my adsl router from the outside
But I cant access my server , router is 192.168.1.1 and server 192.168.1.3

That is were I have my wheels come off and crash and burn

Regards

Lawrence
 
Old 01-24-2012, 08:22 AM   #4
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
have you setup up the adsl router to do port forwarding?

what service exactly do you want to 'see' on your server from the 'outside'?
 
Old 01-24-2012, 09:28 AM   #5
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Original Poster
Rep: Reputation: 6
@nass

I want to host a simple website ..

Regards

Lawrence
 
Old 01-24-2012, 10:39 AM   #6
nass
Member
 
Registered: Apr 2006
Location: Athens, Greece
Distribution: slackware, debian, ubuntu
Posts: 666

Rep: Reputation: 39
but have you done port forwarding?

If not, go to your router's configuration webpage and look for something like 'port forwading' or 'NAT'. there you can let the world access your internal server on port 80.

here is some guidance

http://portforward.com/
 
Old 01-25-2012, 12:49 AM   #7
zasavage
Member
 
Registered: Sep 2010
Location: Bloemfontein , South Africa
Distribution: Slackware 13.37 and Slackware 14
Posts: 201

Original Poster
Rep: Reputation: 6
@nass

Yes I have port forwarding working , I can access my ERP server at {domain}.co.za:8069

But when i try and access my web server , I get error reading from remote server ..

Is this a Apache problem or am i missing something , to eliminate port numbers I am forwarding all ports from 1 to 65535

I am lost in this abyss now

Regards
LAwrence
 
Old 01-25-2012, 02:46 AM   #8
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

A mess is what I quickly read from the posts, but
Quote:
I can get to my adsl router from the outside
But I cant access my server , router is 192.168.1.1 and server 192.168.1.3
bothers me,
meaning your server doesn't run Apache/httpd service (have you started it ?) and router is not forwarding port 80 to your server (you get router's web panel ?)

Quote:
.. to eliminate port numbers I am forwarding all ports from 1 to 65535
and you should also post a model of your router for someone could have done it with the same router or can be searched for a solution.
There is maybe a PORT TRIGGER also in your router settings, which should be set to trigger port 80 to your server's IP.

good luck
 
Old 01-25-2012, 07:40 AM   #9
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
Have you, in /etc/httpd.conf, edited
Code:
# Change this to Listen on specific IP addresses as shown below to
# prevent Apache from glomming onto all bound IP addresses.
#
#Listen 12.34.56.78:80
#Listen 80
Listen  192.168.1.3:80          < this is your server address
and
Code:
# If your host doesn't have a registered DNS name, enter its IP address here.
#
#ServerName www.example.com:80
ServerName fubar.com:80         < your server name goes here
If not, do the above then
Code:
/etc/rc.d/rc.httpd restart
In your router, make sure that port 80 is forwarded; you do not need, nor do you want, to forward every port, only the ones you need like 80 and 22 to start with -- you can add or change after you get things going.

Hope this helps some.

Last edited by tronayne; 01-25-2012 at 07:41 AM.
 
Old 01-25-2012, 09:44 AM   #10
tronayne
Senior Member
 
Registered: Oct 2003
Location: Northeastern Michigan, where Carhartt is a Designer Label
Distribution: Slackware 32- & 64-bit Stable
Posts: 3,541

Rep: Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065Reputation: 1065
I forgot to include a working /etc/ddclient/ddclient.conf for you:
Code:
## ddclient configuration file
daemon=600
# check every 600 seconds
syslog=yes
# log update msgs to syslog
mail-failure=your_e-mail_address_goes_here # Mail failed updates to user
pid=/var/run/ddclient.pid
# record PID in file.
## Detect IP with our CheckIP server
use=web, web=checkip.dyndns.com/, web-skip='IP Address'
## DynDNS username and password here
login=userid_goes_here
password=password_goes_here
## Default options
protocol=dyndns2
server=members.dyndns.org
## Dynamic DNS hosts
you_dyndns_site_name_goes_here
This assumes that you're registered with DynDNS, have a login and password and have chosen a web site name. It would be something like billybob.dyndns.org.

Note that you do not enter any of this stuff in /etc/httpd/httpd.conf, that's your local system name, domain and address (192.168.1.3).

Hope this helps some.
 
  


Reply



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
Restricting Dynamic Ipaddress by based on Dynamic DNS host names karthik9110 Linux - Newbie 5 12-13-2009 11:46 PM
how to dynamic DNS bondoq Linux - Networking 2 11-13-2006 07:58 AM
dynamic ip and DNS how to dasbooter Linux - Networking 11 04-24-2006 03:44 PM
Dynamic DNS willhawes Mandriva 10 06-21-2004 04:36 AM
Dynamic DNS pyfsapple Linux - Networking 7 05-08-2003 08:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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