The FreeBSD Diary

The FreeBSD Diary (TM) Remember
I remember

 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Previous Message  |  Next Message 
 natd and mirc dcc's - solved/workaround
Author: Benjamin Lutz 
Date:   28-10-01 20:24

(posted by Dan Langille)

I am in the situation of having a FreeBSD box act as gateway for net access.
As I'm only assigned a single IP, I'm using natd for connecting my LAN to
the net (only one machine though, so its basically "redirect_address", heh). I too encountered the problem of not being able to
initiate DCC's from mIRC.

I enabled -use_sockets and -same_ports, yet this would not help. After
searching around on the net, I found this page:
<A HREF=""></A>.

Let me just quote the interesting part from it:

mIRC, a popular MS Windows-based IRC client, can determine the address
that it should use for itself in DCC-based activities in one of two
ways. It can query the OS for its address, or it can query the IRC
server. In the latter case, if the connection between the box in
question and the IRC server includes a FreeBSD box performing address
translation via ppp -alias (or other libalias-based system), then the
address returned is the address of the FreeBSD box. This means that
DCC requests from the mIRC client are sent out with the FreeBSD box's
address encoded in the request.

libalias includes a facility to examine outgoing packets for IRC DCC
packets and perform the necessary translation. However, it only
performs this if the address encoded in the DCC packet is that of a
system being aliased. In the case where the IRC client gets its
address from the server, then libalias will not perform this

Now, I'm not sure if this issue (limitation?) is natd's or mirc's fault; I
suppose both are doing their job, hehe. Anyway, the workaround is changing
mirc options from "Lookup Method: Server" to "Lookup Method: Normal". This
will change the IP mirc uses to (in my case), opposite to the IP
assigned by the ISP when using server lookup. The best thing would probably
be making mirc use the two different IP's for normal IRC stuff and DCC. I'm
gonna write mirc's author about it.

 Reply To This Message  |  Forum List  |  Flat View   Newer Topic  |  Older Topic 

 Topics Author  Date
 natd and mirc dcc's - solved/workaround   new
Benjamin Lutz 28-10-01 20:24 
 Re: natd and mirc dcc's - solved/workaround   new
gromm 09-09-02 09:33 
 Re: natd and mirc dcc's - solved/workaround   new
dot 27-01-03 11:25 
 Re: natd and mirc dcc's - solved/workaround   new
Another Solution 13-08-03 04:10 

 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Remember my login:
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum