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'm about a noobie as you can get. I've just installed Mandrake Linux 10.1 on oen of my computers with the goal being to first explore with what it's capable of doing, but more importantly to set up two things online. First, I need to set up a webserver. A friend of mine is putting his comics that he draws online, and I'm going to get a domain with DNS2Go.com. How do I go about setting up my server to do this? I will have local access, but Sam (who draws the comics) and Pat (who will design the web page) will need remote access to this server to upload/download stuff. How do I go about doing this?
Secondly, I would like to also set up my computer as pretty much a file server. I just want someplace that I can connect to online to upload/download files n stuff whenever and wherever i need them. For example, I'm interested in learning Javascript so I can create my own AIM Sub-Profile, but I'll need a place online to store it (all the free web storage places try to put a banner or something in my HTML file and it screws everything up in the AIM profile). Somebody told me that a SFTP server would work well for what I want. How do I go about setting this up? This is less important; the web server is really what I need up first; it's more important.
I have a linksys router with firewall, so I'll need to know what ports to forward to my Linux server.
Just follow the instructions ---- they are pretty newbie friendly. Don't miss any stages and if you have a problem, post on LQ. It's better to set up your server so that it is safe and you understand how to *control* it. It's certainly worth putting in the time right now.
Good luck.
As for as accessing the machine remotely, one thing to consider is using the ssh server. Then your friend (assuming he has windows) can use putty or ssh32 to work on your machine ( i.e. give him his own account ).
If he uses Linux, he can use ssh to login to his own account, and use scp to copy files from this machine to this home directory. You could create a directory under /home/ which everyone who works on the material can access, using group permissions.
For simply uploading and downloading files, a sftp server would be best. You could set it up so that he could modify the website himself, if that is what you wish.
Another option is using VNC to access your desktop. Or something like WinX32 which is an X server that runs on a windows machine. He could run programs like gimp on your maching, or have a kde or gnome desktop ( A second session, running on your machine, but the screen is showing up on your machine.)
Good Luck! I hope your venture turns out to be fun and successful.
Yeah, I think an SFTP server will be best. The only thing those guys will need to do is upload/download files. Nobody needs to tinker with the server but me. Those two guys will be primarily charged with updating the material on the site.
Now I was following the instructions at the link above, and ran into a snag. What is my host name? I have a dynamic IP (I intend on using DNS2Go later to better handle my changing IP).
screw that host name stuff, it doesnt seem to matter....
I'm having a few problems with the server. I can view it fine from within my own internal network at home. However, I do have to use https:// (secure) to get to it, and I'd rather not. I just want to be able to host a regular web page online, I don't need it to be a secure web page. I obviously dont want anybody hacking it, though.
Second, I can't seem to get anybody on the outside of my network to connect to my server. Everybody on the internal network can see it, but nobody on the outside can. Here's what I've done to try and fix it:
1) Anybody on my internal home network (that's about 2 people in my house) can view my webpage by opening their web browser to https://192.168.x.x (ive hidden my actual internal IP here).
2) Anybody on my internal home network can go to https://192.168.x.x:10000 and get a login screen for Webmin.
3) If anybody outside my home network tries to use their web browser to go to http://64.222.x.x (which is my external IP; ive hidden the last two numbers here), they get a error 403 permission denied.
4) If anybody outside my home network tries to use their web bromike
wser to go to https://62.222.x.x they get a 404 file not found error. Very curious...
5) I've opened a hole in my router's firewall to forward all requests thru port 80 to go to my linux server.
6) There is no firewall software (that I know of) installed on my linux server. Though, as per the directions from the link above, I did install it with security settings on "Paranoid."
I cannot also get MySQL to open up correctly in Webmin, but I have to say, I don't really care since I don't want to run a database server. Would it be useful, however, in an online webcomic's site? I'm thinking of people wanting to view previous comic strips, etc.
I'm not aware of what PHP can do. I know it's used in websites, and isn't it used in, like, news sites or sites that periodically update in a "news" manner? (for example, view the news section on the main page of www.meninhats.com and www.flashflashrevolution.com )
Lastly, can anybody point me in the right direction to getting an SFTP server set up? I will need a way for my two friends to remotely upload and download new material/data to and from the online comic's web page.
Double check your firewall settings in drakconf. Also, If you are using something like a cable router, you need to forward the port to the correct computer. Usually routers can be configured by pointing your router to 192.168.1.1 .
You could look at the /etc/services file for a list of port number - service pairs.
For instance:
Code:
matrix:/etc # grep '^ftp' /etc/services
ftp-data 20/tcp # File Transfer [Default Data]
ftp-data 20/udp # File Transfer [Default Data]
ftp 21/tcp # File Transfer [Control]
ftp-agent 574/tcp # FTP Software Agent System
ftp-agent 574/udp # FTP Software Agent System
ftps-data 989/tcp # ftp protocol, data, over TLS/SSL
ftps-data 989/udp # ftp protocol, data, over TLS/SSL
ftps 990/tcp # ftp protocol, control, over TLS/SSL
ftps 990/udp # ftp protocol, control, over TLS/SSL
Couple important questions. theyve been bugging me.
I want to set up a regular web server. i dont want people to have to connect to it with httpS, that's SSL, right? would turning that off or somehow disabling that so I connect through http instead of https make my server more hack-prone? How does LinuxQuestions.org do it? There's no https in the URL, so is it SSL? I'm not having sensitive information transferred through the internet, i just want to run an online comic webpage and a SFTP server, which i still dont know how to set up, btw.
Oh, and my router is set up to forward ports 20-21 and port 80 to my linux server. after all, that has to be correct seeing as how when i connect to it from the outside, it says access forbidden, then when i connect with https its not found.
One last thing, how can i replace the Apache default web page with my own content? i know the path on my linux box, but what is my title page or index page? what HTML page do i replace so I can get my own title page when people connect to my website?
Last edited by MercuryRaz0r; 10-21-2004 at 05:52 PM.
You can have regular visitors access through port 80, usual http.
ssl would be primarily to plug the secuitry problems with your site managers getting the data in, and keeping out anyone else who you would not want to have write privileges.
for now, regular they can get 'in' using your routers ip address, as long as the router is directing http (port 80) requests to the correct machine. Later you can set up the domain name.
As for setting up the apache server, let me know if you still need the references for that.
I've heard that my ISP may block some external access to my computer. I'll have to do some tests to see if they are. They may not want some idiot newbie making his own web server and potentially have gaping security holes.
Anybody know of a good FTP program? ProFTPD sucks because its so damn complicated, it gives very erratic error messages and is just too confusing for my friends to use.
Have you considered using a firewall such as IPCop or Smoothwall or similar which will give you a green zone for your normal computer and an orange zone for your web server.
essentially what I am suggesting is that you have a dedicated firewall with one connection to your Green zone ( the trusted zone ) ie the computer you browse the internet with. And one connection to your Orange zone ( the not so trusted zone ) ie the computer you will use for your web server.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.