Linux Firewall, Clients won't be able to use MSN file transfer
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.
Linux Firewall, Clients won't be able to use MSN file transfer
Hey,
So I'm new to the land of linux, and am the happy owner of a debian box, that now servers as my fileserver,webserver,ftpserver and firewall.
I'd like the windows machines in my home network to be able to use MSN file transfers. I downloaded the ip_masq_mms from here <oops cannot show a url, since I'm a new user, it's where google leads you when you look for msn and ipmasq> and (to my own surprise ;-), managed to compile it.
So now I have a ip_masq_mms.o
I tried using modprobe to install this module:
modprobe ip_masq_mms says it cannot find ip_masq_mms, nor can
modprobe ip_masq_mms.o
Do I need to put this file in a special directory?
I managed to modprobe ip_masq_ftp just fine the other day.
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341
Rep:
In /boot, you will find a link pointing to the module library in /lib for the specific kernel which you are running. If you compiled from the the same source, it should go there. If you remembered to do all of the "make" commands in order--it should have put it there. Did you remember to make clean? make Mrproper? I always look it up. I never trust my memory.
But if you were able to do the whole process the other day, something else may be wrong.
Ok, so I found all ip_masq_XXX.o 's to reside in /lib/modules/2.2.22/ipv4
I now copied my .o file into this folder, and do:
modprobe ip_masq_mms
it still says it cannot locate the module. Whereas
modprobe -l
lists about 9 modules, one of which is my ip_masq_mms.o file.
So I'm guessing I did something wrong compiling this thing. The tarball contained a .c file, and a Makefile. (I've pasted the makefile below). The source to my linux source is correct. When compiling (by typing make in the folder containing the makefile & .c file) it does give me a warning:
Distribution: Slack Puppy Debian DSL--at the moment.
Posts: 341
Rep:
Somewhere you missed a step when you compiled the package. When you get to the last step: make install; it should have put the module in the correct place for you. And it should have done other things as well. Either you missed a step or the make-file for the module is botched up.
There is also something going on in the background of the compilation of a module; a "linker" puts in the symlinks, and entries in the modules.conf file, so everything can work together. Doing these things manually can be done, but it is painstaking and exacting work. If it isn't done just right, BAD THINGS can happen.
Check other makefiles on the system for other modules, the warning indicates that they are not defined the same way.
Manually check the path for the "CFLAGS =" and " INCLUDES =" section. If you are running RH 8 or 9, that is not a good path. Go ahead and point it to the exact path to the linux source to the kernal you are using right now.
[That is the best thing to do, I found that the /usr/src/linux (which is itself a link) for some reason does not always point to the right place after using up2date. Possibly, because it leaves you with the option of booting to the old kernel. It is always best not to have a link pointing to another link. The miniaturized computer science guys in there running the compiler can get upset.]
You want to match the flags in CFLAGS = on all of your modules if you can, as well as the DEFINES = stuff. They may "work" if they don't match, but can still cause problems. An example is the -m (March)386 flag, if everything else on the system is compiled for your exact cpu or a different one--say -m586 or -m686 sometimes things get weird on you. So compare the make files if you can find them. Some packages have a script which checks the environment for the cpu-type and return a value to a variable in the make file as a pre-process.
Instead of having really learned what is going on, I admit I just compare things and look them up if they fail.
It's been awhile since I spent time reading makefiles: I still look everything up, and compare problem builds with make files for similar things which were successful. (With an emphasis on those in the kernal source. Yeah, it takes time.) I never trust my memory.
The best of all worlds is that there are no error or warning messages at all.
Usually the documentation for the specific package will tell you if there are any warnings it is safe to ignore. Otherwise, be paranoid.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.