Koozali.org: home of the SME Server

Unable to connect to irc from windows machines

IRC

Unable to connect to irc from windows machines
« on: January 10, 2000, 09:27:44 AM »
This is a continuation of my previous message regarding "enable identd"

The following is a line from my /var/log/messages , appears after every reboot

Jan 10 00:15:24 www rlinetd[394]: socket() failed for service auth: Protocol not supported

I would appreciate any help.

This happens with any version of E-smith

Charlie Brady

RE: Unable to connect to irc from windows machines
« Reply #1 on: January 11, 2000, 01:51:35 AM »
IRC wrote:

> The following is a line from my /var/log/messages , appears
> after every reboot
>
> Jan 10 00:15:24 www rlinetd[394]: socket() failed for service
> auth: Protocol not supported
>
> I would appreciate any help.
>
> This happens with any version of E-smith

The program rlinetd is only included on the developer preview of e-smith 4.0, so I very much doubt that your statement is correct.

Your problem with IRC is documented in the IP Masquerade HOWTO -
the ident daemon running on the e-smith server does not process queries for masqueraded connections.

I have placed an identd which support for IP masquerade at http://e-smith.gormand.com.au/. If this is important to you and you
are game to be a guinea pig, you might like to give it a try. I'd suggest you install plain e-smith 3.1 first.

Another alternative is for you to install an ident server which just returns random or dummy ident lookup information. This may work just as well. Search for "identd" on http://www.freshmeat.net/ for suitable programs.

Charlie

Identd

RE: Unable to connect to irc from windows machines
« Reply #2 on: January 11, 2000, 09:08:56 AM »
I installed the pident updated with the MASQ stuff and here is the last three lines from my /var/log/messages.

Jan 11 00:58:38 www inet: inetd startup succeeded
Jan 11 00:58:51 www identd[794]: Returned: 61063 , 6667 : NO-USER
Jan 11 00:58:55 www identd[795]: Returned: 61064 , 6667 : NO-USER

And this is what I get from my windows clients

You are banned from this server: install identd
-
Closing Link: nickname[~me@cx123456-a.city.st.home.com] irc.home.com (Banned: install identd)

Any other ideas I can try.

Thanks

Charlie Brady

RE: Unable to connect to irc from windows machines
« Reply #3 on: January 11, 2000, 09:25:07 AM »
Identd wrote:

> You are banned from this server: install identd - Closing
> Link:
> nickname[~me@cx123456-a.city.st.home.com] irc.home.com
> (Banned: install identd)
>
> Any other ideas I can try.

You will need to configure pidentd before it will work for you. Start by reading /usr/doc/pidentd-2.8.5/README-fm and
/usr/doc/pidentd-2.8.5/identd.masq. I think that you will need
to create a /etc/identd.masq containing appropriate information.
I'd suggest that you try RELAY entries for your Windoze boxes first. If that doesn't work, put in static entries.

You might complain to irc.home.com - expecting identd to provide
any useful information is silly.

Charlie

Identd

RE: Unable to connect to irc from windows machines
« Reply #4 on: January 12, 2000, 01:30:08 AM »
Solved, the /etc/identd.masq has to be there and you have to add a -q to the /etc/e-smith/templates/etc/inete.conf  after the in.identd -l -e.  The -q forces pidentd to read in /etc/identd.masq and everything works great !

Thanks

Adrian

RE: Unable to connect to irc from windows machines
« Reply #5 on: June 02, 2000, 05:35:45 PM »
Just to let you know that the above solutions does work on e-smith 4.0.

There are some subtle differences. These are what you need to do.
- Install pidentd-2.8.5-3+masq.i386.rpm from http://e-smith.gormand.com.au/
- Copy /usr/doc/pidentd-2.8.5/identd.masq to /etc/identd.masq
- Edit /etc/identd.masq to include your network devices using IRC

Note that:
- /etc/inetd.conf does not need to be touched
- /etc/services stays as default (see note further down)

- Then modify the /etc/rlinetd.conf file to include this:

service "auth" {
    protocol tcp;
    port "auth";
    user "root";
    exec "in.identd -e -l -q";
    server "/usr/sbin/in.identd";
}

- Restart rlinetd by this:
/etc/rc.d/init.d/rlinetd restart

Make sure that this is there (should be there by default)
/etc/services has this line "auth            113/tcp         ident"

And bingo. Works like a charm.

Jeff

RE: Unable to connect to irc from windows machines
« Reply #6 on: September 06, 2000, 02:33:39 AM »
How would i insert this into the /etc/e-smith/template/etc/rlinetd.conf/template-begin file ?
ie.  where in here does it get inserted ?

directory "/etc/rlinetd.d";

{
    if (($TelnetServerMode eq "public") || ($TelnetServerMode eq "private"))
    {
        my $result = "";
        $result .= "service \"telnet\"\n";
        $result .= "\{\n";
        $result .= "    protocol tcp;\n";
        $result .= "    port \"telnet\";\n";
        $result .= "    user \"root\";\n";
        $result .= "    exec \"in.telnetd\";\n";
        $result .= "    server \"/usr/sbin/tcpd\";\n";
        $result .= "\}\n";
        $result;
    }
    else
    {
        "";
    }
}

David

RE: Unable to connect to irc from windows machines
« Reply #7 on: September 06, 2000, 09:21:19 AM »
Does anyone know what the format is for this:
/usr/doc/pidentd-2.8.5/identd.masq  file? I can't find a copy of it ANY where.Adrian wrote:

> Just to let you know that the above solutions does work on
> e-smith 4.0.
>
> There are some subtle differences. These are what you need to
> do. - Install pidentd-2.8.5-3+masq.i386.rpm from
> http://e-smith.gormand.com.au/ - Copy
> /usr/doc/pidentd-2.8.5/identd.masq to /etc/identd.masq - Edit
> /etc/identd.masq to include your network devices using IRC
>
> Note that: - /etc/inetd.conf does not need to be touched -
> /etc/services stays as default (see note further down)
>
> - Then modify the /etc/rlinetd.conf file to include this:
>
> service "auth" { protocol tcp; port "auth";
> user "root"; exec "in.identd -e -l -q";
> server "/usr/sbin/in.identd"; }
>
> - Restart rlinetd by this: /etc/rc.d/init.d/rlinetd restart
>
> Make sure that this is there (should be there by default)
> /etc/services has this line "auth            113/tcp
> ident"
>
> And bingo. Works like a charm.
>

Jeff

RE: Unable to connect to irc from windows machines
« Reply #8 on: September 06, 2000, 09:24:40 AM »
If you go to the url and get pident w/ masq (uninstall the old pident rpm -e pident) and rpm -Uhv the new one w/ masq the file will be at /usr/doc/pidentd-2.8.5/identd.masq  


David wrote:

> Does anyone know what the format is for this:
> /usr/doc/pidentd-2.8.5/identd.masq  file? I can't find a copy
> of it ANY where.Adrian wrote:

> > Just to let you know that the above solutions does work on
> > e-smith 4.0. > > There are some subtle differences.
> These are what you need to > do. - Install
> pidentd-2.8.5-3+masq.i386.rpm from >
> http://e-smith.gormand.com.au/ - Copy >

Jeff

RE: Unable to connect to irc from windows machines
« Reply #9 on: September 06, 2000, 10:00:05 AM »
If you are trying to make the changes specified in this thread, for irc related problems, then you need pidentd+masq (masq being the key word here) to allow irc from boxes behind the e-smith gateway.