LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 09-27-2002, 11:59 AM   #1
mmilhofer
LQ Newbie
 
Registered: Sep 2002
Posts: 6

Rep: Reputation: 0
Red Hat 7.1 fresh install, confused


Hi
I have just installed RH 7.1, and I'm confused by what isn't working.

I notice that SSHD is installed by default, fine, but I can't access it from a remote machine. I have checked that it is running, and I have installed SSH in the past on Unix and it's worked out of the box, so what am I missing here?

Also, there are no (what I would call) inet services running. I've worked out that it's called xinet.d now, so I tried editing the xinetd.conf file to run ftp (got the example from the MAN pages) but with no luck. I thought this sort of stuff ran by default and a dutiful admin would run around turning it all off...

All I want is to be able to ssh and ftp to this server. Surely that's not too much to ask..

Any help much appreciated

Manfred
 
Old 09-27-2002, 07:06 PM   #2
mwtheobald
LQ Newbie
 
Registered: Aug 2002
Posts: 9

Rep: Reputation: 0
look in the /etc/xinet.d directory and you will see an entry for wu-ftp. Look inside and ensure there is not a 'disable = yes' line. Also check your /etc/hosts.allow or /etc/hosts.deny to ensure that TCPWrappers is not stopping things.

SSH problem might also be the TCPWrappers or check the config file for it (/etc/ssh/ssh_config)
 
Old 09-28-2002, 12:04 AM   #3
AMDPwred
Member
 
Registered: Dec 2001
Location: Richmond, VA
Posts: 391

Rep: Reputation: 30
If you see the services are running and you cannot connect, it's probably a firewall rule blocking you. Check your ipchains file and see what rules are set. You can find it in: /etc/sysconfig/
 
Old 09-28-2002, 02:55 AM   #4
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Re: Red Hat 7.1 fresh install, confused

Quote:
Originally posted by mmilhofer
Hi
I have just installed RH 7.1, and I'm confused by what isn't working.

I notice that SSHD is installed by default, fine, but I can't access it from a remote machine. I have checked that it is running, and I have installed SSH in the past on Unix and it's worked out of the box, so what am I missing here?

Also, there are no (what I would call) inet services running. I've worked out that it's called xinet.d now, so I tried editing the xinetd.conf file to run ftp (got the example from the MAN pages) but with no luck. I thought this sort of stuff ran by default and a dutiful admin would run around turning it all off...

All I want is to be able to ssh and ftp to this server. Surely that's not too much to ask..

Any help much appreciated

Manfred
You need to go to: cd /etc/xinetd.d
ls that directory and you should find a list of services... one probably ftp and ftp-udp ... sudo pico ftp
and now you should be at the personal config file...
no need to edit the xinetd.conf file.. like when inetd.conf was used for all services... now xinetd.conf uses several personal files for each application/protocol.

Last edited by Thaidog; 09-28-2002 at 02:57 AM.
 
Old 09-30-2002, 04:55 AM   #5
mmilhofer
LQ Newbie
 
Registered: Sep 2002
Posts: 6

Original Poster
Rep: Reputation: 0
thanks for the info. I'll try it all and let you know how I get on.
 
Old 09-30-2002, 05:45 AM   #6
mmilhofer
LQ Newbie
 
Registered: Sep 2002
Posts: 6

Original Poster
Rep: Reputation: 0
Well you've sussed out the problems, thank you very much.

FTP was indeed disabled in its config file.

Also, all traffic on ports beneath 1024 was disabled.

All I need to work out now is how to configure ipchains. I tried the man pages but they don't seem to be a very good intro.

any recommendations?

Anyway, thanks for your help in spotting the issues.

Manfred
 
Old 09-30-2002, 06:30 AM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,409
Blog Entries: 55

Rep: Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582Reputation: 3582
RH 7.1 comes with Netfilter (iptables) installed IIRC, search the security and networking forums, because there's lotsa info on it and usually also some addresses where HOWTO's are at like tldp.org and linuxguruz.org/iptables/
 
Old 09-30-2002, 09:22 AM   #8
mmilhofer
LQ Newbie
 
Registered: Sep 2002
Posts: 6

Original Poster
Rep: Reputation: 0
thank you very much.
having spent the morning trying to enable ftp and ssh by using ipchains (I know I should upggrade to iptables but I don't think I can manage it), could anyone tell me why the following isn't working (I used as reference the ipchains HOWTO by Rusty Russell):

ipchains -A input -p TCP -s 0.0.0.0/0 21 -j ACCEPT

this adds a line to the ipchains listing which looks sensible to me, but still can't use ftp. Added the same line for UDP but still nothing.
Is this anything to do with the rule in the input chain which rejects anything below port 1024? I had hoped my subsequent rules would open just port 22?
 
Old 09-30-2002, 09:35 AM   #9
mmilhofer
LQ Newbie
 
Registered: Sep 2002
Posts: 6

Original Poster
Rep: Reputation: 0
me again

just had a brainwave and realised that my rules should go BEFORE the rule which rejects everything below 1024, so I changed my command to 'ipchains -I', and the ipchains listing showed what I thought I wanted to see (ie my rule first), but it STILL doesn't work??
Do I need to restart anything? I can't find anything in the HOWTO which says that
 
Old 09-30-2002, 10:16 AM   #10
mmilhofer
LQ Newbie
 
Registered: Sep 2002
Posts: 6

Original Poster
Rep: Reputation: 0
finally got it sorted. turned out I had my 'source' and 'destination' flags the wrong way round (still can't get my head round it but it works so who cares).
thanks all.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
During Red Hat Linux 9 install: error "No devices found to install Red Hat Linux" rbradtx Linux - Newbie 11 06-25-2010 05:55 PM
confused by my new red hat 9 system dave bean Red Hat 3 03-04-2005 08:29 AM
Fresh Red Hat 9 Install on Silicon II SATA RAID Eternal Morgue Linux - Software 1 05-01-2004 04:03 PM
Trouble running fresh install of Red Hat 9 on clean hard drive jojotx0 Red Hat 3 03-12-2004 07:33 AM
Red Hat Upgrade - Overwrite or Fresh Inst. ? OldBob Linux - Newbie 2 07-22-2003 04:22 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 11:26 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration