Linux - NewbieThis 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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm a huge newbie on networking so I need help configuring my Mandrake firewall. I want my computer to be fairly secure, but I also want to be able to share files via P2P networks. How should I configure my Mandrake firewall? It gives me several options:
Which services would you like to allow the Internet to connect to?
Everything (no firewall)
POP and IMAP server
Should I select Web Server and FTP?
It also gives me an option to input ports. For some reason, after I enter a port and enter another one, the first one becomes blocked again. I tried entering ports in /etc/services using lines like:
I want my computer to be fairly secure, but I also want to be able to share files via P2P networks. How should I configure my Mandrake firewall?
Should I select Web Server and FTP?
If you don't plan on running a Web or FTP server, then no you don't want either one. Don't select any of those services unless you need to allow incoming access to those ports.
It also gives me an option to input ports. For some reason, after I enter a port and enter another one, the first one becomes blocked again.
IIRC, when you're entering multiple ports, you have to enter them all at once. If you just enter one by itself and hit OK, it will get overwritten when you try entering a second one. I'm not sure if you have to seperate them with punctuation, but I don't believe so.
So don't select any of the pre-set service ports (web or ftp) unless you want to allow public access to them, then just open up ports for your P2P app to get through the firewall.
Yeah but the problem is I'm using aMSN, which picks a port by random to send a file over. Same thing with azureus, which uses a whole range of ports.
Will I have to deactivate my firewall just to receive a file? Sounds annoying. Is there a program like Zonealarm that works in Linux which lets privileged programs use any ports they want? Because the more programs I use, the more ports I'll need to unblock, and the more holey my Internet security becomes. It would be best if I could block all Internet access except through programs I specify.
If you want people to be able to connect to your box and download stuff from you, then you'll have to open up some ports. If you can limit the Ip addresses that you want to allow access to, then you can use iptables to filter those ports as well. But if you have to allow public acess, then you can just find the ports those applications use (check docs) and then open up those ports.
As far as azureus goes, this is from their website:
From 126.96.36.199 on, you can use a single port for all your torrents.
You previously had to adjust the number of ports used, opened or forwarded to the number of running torrents.
Now, only one port is necessary. (You can still configure Azureus to use a range of ports...)
The used port is usually 6891, 6892 and so on (first transfer is on port 6891,
but if you start a new file transfer while the first one hasn't finished yet,
then it will use 6892, and so on). So, if using a firewall, you must make sure that it allows incoming connections to port 6891 (and next ones if you want to be able to make more than one transfer at the same time).
So what you want to do is just block everything incoming by default, then open up only those ports you need (for aMSN you can open up as many ports as you want for simulataneous connections). With those applications you listed, looks like you'll be alright to set it up that way. After that, you won't have to touch your firewall at all if you want to upload or download files.
For aMSN, it seems like whenever I receive a file, it comes from a very high numbered port, e.g. 9680. What is going on? I can't find any setting which determines which port incoming connections go through. How do I know what port files are coming from?