Joined: Wed 02-20-2002 11:27PM Posts: 867 Location: No one's really sure what became of Castorite after graduation
Source: Off Campus
What do you mean "trying to connect" to your server? Many standalone servers don't reference hosts.allow and hosts.deny for their connections. Is the service in question being run through TCP wrappers?
As far as the file being recreated... what OS/distribution are you running? Have you tried creating a read-only/immutable version of the file?
The thing that sticks out most is that your hosts.allow should be higher-priority than what's in your hosts.deny file. I'm not sure why you'd be having problems unless there's a configuration problem elsewhere. Perhaps you have a packet filter (firewall) of some sort with a broken ruleset?
Joined: Wed 02-20-2002 11:27PM Posts: 867 Location: No one's really sure what became of Castorite after graduation
Source: Off Campus
The 'different computer' wouldn't happen to be an off-campus computer, would it? UMR IT blocks inbound FTP connections to most of the campus network.
Have you tried connecting to it from itself? Give it a try with a command line FTP client. They're much more verbose when problems develop, and should help you pinpoint the problem fairly quickly.
Exacly what kind of problems are you seeing? Is the connection being refused, timing out, or immediately disconnecting? They all have different implications as to what's wrong.
I don't think the problem is in hosts.allow and hosts.deny. Your inetd service should be allowing proper passthrough if hosts.allow has "ALL: ALL" in it.
Update: I can connect to it just fine after changing the host files. I basically took everything out. Things worked fine last night one night, so I didn't touch it and went to sleep. The next day it didn't work. It didn't even get touched during the whole time but somehow managed to change the host files back to their unwanted previous forms. Everytime I reboot it also changes the host files back. How do I prevent linux from changing the host files?
_________________ Don't do drugs because if you do drugs you'll go to prison, and drugs are really expensive in prison.
Joined: Wed 02-20-2002 11:27PM Posts: 867 Location: No one's really sure what became of Castorite after graduation
Source: Off Campus
Agentzak wrote:
How do I prevent linux from changing the host files?
Provided the automation bulldada Mandriva likes to add to their distro doesn't detect it, you can probably get by with making those files read-only.
Code:
# chmod ugo-w /etc/hosts.allow /etc/hosts.deny
As far as I know, Linux has broken immutable file support with the default security mode and standard file systems. You probably aren't going to switch to OpenBSD, so I'll set that idea aside.
If the read-only file trick doesn't work, you could be even more kludgey and link the files to /dev/null. Both hard links and symlinks should work, but you've obviously gotta use symlinks across file systems.
Users browsing this forum: No registered users and 2 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum