LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-10-2009, 08:57 PM   #1
MadHatter21
LQ Newbie
 
Registered: Jul 2009
Posts: 27

Rep: Reputation: 16
Question Setting Up Ubuntu Webmin Server


Hello,

Ok so it is my first time setting up a server so I am sorry if my questions are so beyond noobish...

BACKGROUND: I have a desktop computer running ubuntu server 9.10 with ssh lamp and samba installed. I have also installed WEBMIN on the server for remote access and control as well as a way to tunnel http traffic. I have a router connected to my modem, router being 192.168.1.1 on my subnet and modem is 192.168.0.1

OBJECTIVE: I want to be able to remotely access my WEBMIN server on the internet, via a https connection from a non-subnet computer.

PROBLEM: Heres where it gets tricky, I do not know how to get the server onto the internet. First of all I need to assign a static IP address, but i have not an idea about doing it. I have followed tutorials and how to's on the subject but because of my setup or other unknown causes I fail to reach a static IP. After I have set up a static IP (HELP!) I will need to set up port forewarding if im correct, through either my router or modem to foreward all of the traffic on ports 444(https) and port ***(the number used for webmin server) to be open and foreward to the server.

Please help, I am sorry I am asking so much of everyone but i have been to the end of the deepest reaches of the internet to find the answers and have come back empty handed. Please If i can specify anything else or answer any questions feel free to ask.

MadHatter21
 
Old 12-10-2009, 09:56 PM   #2
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
should not be too difficult. As you said you will need to set up forwarding on your router. What is your router model and what is your modem model? As for accessing your server over the internet, as long as your ISP does not change your internet IP too often it should not be an issue. You just point to your router internet address on the forwarded port and your router should do the rest.
 
Old 12-10-2009, 10:14 PM   #3
MadHatter21
LQ Newbie
 
Registered: Jul 2009
Posts: 27

Original Poster
Rep: Reputation: 16
r... wrt160n linksys link
m... cg814wg netgear support page only

MadHatter21
 
Old 12-10-2009, 10:19 PM   #4
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
cool, will you always be coming from a set IP or will the IP you will be administering from change? It is easier to secure and set up if you come from a single routable IP. Let me read up on the two devices, as I have not used a linksys before but netgear and CISCO is what I have always used.
 
Old 12-11-2009, 12:00 AM   #5
MadHatter21
LQ Newbie
 
Registered: Jul 2009
Posts: 27

Original Poster
Rep: Reputation: 16
If you mean the ip that will be visible on the internet then no, it will not be static, just from the local isp. You dont have to read up on it for me if you just want to send me in the right direction.

THANK YOU SO MUCH!
Madhatter21
 
Old 12-11-2009, 02:44 AM   #6
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
I am asking about the source IP you will be administering from.

In any case on the netgear or the linksys you will need to set up forwarding. on the netgear this involves setting up a custom service then configuring the firewall to send all traffic destined for that port to a designated lan server which is your webmin server.

So:
step one configure https and webmin as services on your router.
step two configure your router to forward all this traffic to your webmin server.
step three make sure that if you have firewalls on the modem and the router they allow these ports through

some modems have an application firewall you will need to allow https and webmin in from the net, that is why I was asking about source IP. You may also have to do the same on the router.
 
Old 12-11-2009, 02:57 AM   #7
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
ok just reading the linksys manual you will need to either set up a static address for your server or a dhcp reservation, either will do. Then configure the single port forwarding in the "Applications and Gaming>Single Port forwarding" menu of your linksys setup.

You will need to configure the external port (any number will do) so when you connect you will be doing http://<IP of you internet router>:<port number>
and the internal port on which the webmin server is listening 444 and whatever else. The external port is then mapped to the internal port and you should be able to access your webmin server.
 
Old 12-11-2009, 03:47 AM   #8
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
I just installed webmin. It runs on port 10000.
So you will need to allow https through the firewall port 443, not sure why you said 444.
then map your external port to your server ip and port 10000 and it should all work.
 
Old 12-11-2009, 04:00 AM   #9
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
yep mine works fine from the web. I just connected using https://<my external IP>:10000 and got the webmin login page, how are you going?
 
Old 12-11-2009, 11:10 AM   #10
MadHatter21
LQ Newbie
 
Registered: Jul 2009
Posts: 27

Original Poster
Rep: Reputation: 16
Im a little confused on the port forewarding... If i tell the router to foreward all https 443 and webmin *** to the server how will it get there from the modem. Like what I am trying to say is that sience I have the modem and all of the traffic will be coming into that, how will the traffic go through the modem to the router and then get port forewarded? do i need to set up some sort of port forewarding from my modem to my router as well?
 
Old 12-11-2009, 02:59 PM   #11
mikepeters76
Member
 
Registered: Apr 2009
Location: Sydney, Australia
Distribution: Ubuntus, Fedora, openSUSE, and Vector Lite 6.0
Posts: 46

Rep: Reputation: 16
you only need to forward 10000 and have a default route on your modem which it should have already anyway
 
Old 11-03-2011, 06:06 PM   #12
caddub
LQ Newbie
 
Registered: Nov 2011
Posts: 1

Rep: Reputation: Disabled
Hi mikepeters76,

I am currently in this nightmare trying to access webmin via my router external ip address.

OS: Linux Ubuntu 10.04
Router: Lynksys *Cisco wrt160n
Webmin: 1.570

Localhost access works real fine, i have read 20 times this thread and don't understand how to configure the router ...

could you please grant me a few minutes to explain me how to setup a dhcp reservation and allow https through firewall port 443 and also how to map external port to my server ip and port 10000.

Please help me out guys,

thanks in advance.
 
  


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
Installing webmin on ubuntu server minikojak Ubuntu 2 08-14-2009 03:16 PM
Webmin doesn't see bind or DHCP server as being started - Ubuntu pete123456 Linux - Software 0 01-15-2009 02:07 PM
LXer: Adding a Lightweight GUI and Webmin to Ubuntu Server LXer Syndicated Linux News 0 10-24-2008 05:50 AM
Trouble installing webmin on Ubuntu 7.10 server ed. Swerve1000 Linux - Server 1 02-08-2008 07:56 AM
How to use Webmin to setting the SAMBA Server?! toniwong Linux - Networking 1 04-29-2004 10:32 AM


All times are GMT -5. The time now is 07:12 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration