[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Sheflug] Networking



 --

On Tue, 30 Oct 2001 21:51:17   Barrie Bremner wrote:
>
>One thing - do you have a portscanner installed? Nmap?

Apparently not.

>
>Try 
>
>nmap hostname
>
>should show you what is running on the other machine.

Nothing.

>If not, we can still figure it out.
>
>>>>>> "Llewelyn" == richard davies <llewelyn.davies [at] eudoramail.com> writes:
>
>    Llewelyn>  -- On Mon, 29 Oct 2001 23:50:39 Barrie Bremner wrote:
>
>    >>  Assuming you're just testing, /etc/hosts.allow should be
>    >> 
>    >> ALL: ALL
>
>    Llewelyn> Is currently ALL: 127.0.0.1 ALL: 192.168.0 Which I
>    Llewelyn> assume is the loopback and everything on my private
>    Llewelyn> network.
>
>See Ian's and Alex's notes: should be
>
>ALL: 127.0.0.1
>ALL: 192.168.0.

It is I have tried it as ALL: ALL and it makes no difference.

>(or ALL: ALL for the moment :-)
>
>    >> /etc/hosts.deny shouldn't make any difference, because
>    >> hosts.allow is checked first, and you told the system to allow
>    >> everyone, but it should be empty (comments are OK.)
>
>    Llewelyn> It is empty.
>
>That's fine - for the moment. You should read man hosts.allow and the
>other manpages referenced from there.
>
>    >> 
>    >> ps -aux | grep sshd
>
>    Llewelyn> Nothing
>
>OK, SSH isn't running, but judging what you have listed below, telnet
>should be available once we sort things out - it will be possible to
>mess with SSH later.
>
>See man ssh, man sshd.
>
>I'll stick with telnet for the moment.
>
>    >> FTP and telnet are normally run from inetd or xinetd, have a
>    >> look at /etc/inetd.conf or /etc/xinetd.d/ - check that inetd or
>    >> xinetd is running (try ps -aux | grep inetd)

richard   2657  0.0  0.1  1128  560 ?        S    00:36   0:00 inetd 

It is running now but shouldn't it be running as root not user?


>    Llewelyn> ftp stream tcp nowait root /usr/sbin/tcpd in.ftpd -l -a
>    Llewelyn> telnet stream tcp nowait root /usr/sbin/tcpd in.telnetd
>    Llewelyn> pop-3 stream tcp nowait root /usr/sbin/tcpd ipop3d
>
>    Llewelyn> These are the only services apparently running.
>
>They're the services that will run once inetd had been started.

>OK, your machine uses "inetd" to control many of the services. Some of
>the newer distros use "xinetd" - you'll generally have one or the
>other - in this case it's inetd.
>
>    >> (Re)start the service - there are scripts in
>    >> /etc/init.d or /etc/rc.d/init.d/ (depends on your system) to do

>Therefore, try 
>
>/etc/rc.d/init.d/inet start 
>
>to start the inetd process, and in turn start ftp and telnet daemons.

That runs and brings up inetd but it still doesn't start telnet or ftp.

I just tried telnet from downstairs to downstairs and got connection refused.

>As an aside, try poking around in that directory:
>
>cd /etc/rc.d/init.d/

It is 01:00 I shall have a look at it tomorrow.

>ls
>
>man something
>
>something status
>something start
>something restart
>something stop
>
>That's the easiest way to control the servers/services installed on
>your machine.
>
>Check the various systems are running - ps, grep and the scripts in
>/etc/init.d/rc.d/ are your friend.

Thank you I will examine these in detail.

>Try connecting to the machines again. Telnet as a normal user - root
>shouldn't be allowed to telnet in, so it'll fail. Not much of a test
>at the moment.

Nothing has changed I can telnet from downstairs to upstairs but not the other way around. Same with FTP

>With all that lot done you should have:
>
>* Allowed access to any and all services on the machine
>* Started the inet "superserver"/services daemon to service connection
>requests

Inetd is working but nothing else.
It is still impossible to be connected to the net and have my network working. Bringing the network up freezes the net closing it unfreezes it.

>* Configured inet to launch and control telnet, ftp (and POP3, but
>I've just ignored that)
>
>* Figured out what other things you have on your machine you can
>control from the /etc/init.d/rc.d directory.

I will read all this and worry about it later thank you.

>
>DNS can wait for the moment.
>
>Cheers.
>
>Baz.  
>
>-- 
>Barrie J. Bremner  OpenPGP public key ID: 5164F553
>baz [at] barriebremner.com http://barriebremner.com/
>
>
>___________________________________________________________________
>
>Sheffield Linux User's Group - http://www.sheflug.co.uk . 
>To unsubscribe from this list send mail to 
>shef-lug-request [at] list.sheflug.org.uk with the word
>"unsubscribe" in the body of the message. 
>
>  GNU the choice of a complete generation.
>


Join 18 million Eudora users by signing up for a free Eudora Web-Mail account at http://www.eudoramail.com
___________________________________________________________________

Sheffield Linux User's Group - http://www.sheflug.co.uk . 
To unsubscribe from this list send mail to 
shef-lug-request@list.sheflug.org.uk with the word
"unsubscribe" in the body of the message. 

  GNU the choice of a complete generation.