Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

linux server help

Status
Not open for further replies.

zorya

Technical User
Mar 18, 2003
7
US
I'm a bit new to my server and I need some help setting it up.

I've got a net connection to the box, and it can go out and browse no problem. The router sees the computer is there and has an IP address. We're trying to set it up so it's a box you have to FTP into, and that's the only way to access it short of hooking a monitor and keyboard up to it. Basically, we're keeping it seperated from all our other computers since it will be accessable from the outside, unlike our other computers.

Basically my question is, how do I set it up so FTP works. Right now we've just tried telneting into it to see if it'll accept the connection. It won't. I don't really know where the FTP settings are at to set this up.

Any help would be greatly appreciated. Thanks!
 
> Right now we've just tried telneting

If you're using Telnet and can't manage to transfer files.. the reason could be you're using "telnet" rather than 'FTP'

instead of using telnet xxx.xxx.xx.xxx

try using ftp xxx.xxx.xx.xxx
 
Well, we weren't even trying to transfer files yet. We're just trying to see if we can connect to it in the first place, but I'll try using an ftp program instead. Thanks!
 
These instructions are aimed more towards a RedHat server.

Make sure that firewall rules are either not running or correctly setup.

Secondly, make sure that xinetd is accepting connections for that protocol.
cd /etc/xinetd.d/
look at the correct file, ie telent, ftp, etc.
make sure "disable = no" on the services that you want use.

Then type: /etc/rc.d/init.d/xinetd reload

If you need to turn of firewall,
service iptables stop
service ipchains stop
 
if you followed the instructions provided by clonny2 don't forget to restart your firewall... !Never leave your servers unprotected
 
Also check your /etc/hosts.allow and /etc/hosts.deny files. those files control who can connect.

if you put ALL:ALL in /etc/hosts.allow, with nothing in /etc/hosts.deny, then it will allow any connection from anywhere. that would be a good test to see if you need to properly configure those files or if your problem lies elsewhere.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top