Re: ERROR:I'm trying to delete a VIA but it's not mine!

Colin Guthrie <gmane-D409yXkIzt2rnn0nCzrM/[email protected]> Wed, 27 Jun 2007 09:57:24 +0100
Newsgroups gmane.network.siproxd
Message-ID <[email protected]>
Thomas Ries wrote:
> Hmm, it's now yet completely clear to me how your actual setup looks
> like. Why do you use 
> 
> if_inbound  = eth1
> if_outbound = eth1
> 
> ? Do you really have your local UA's *and* the conenction to the outside
> world on the same interface (logical AND physical)?

Erm, (colin potentially get's embarrased), no.... there are two
interfaces, WAN and local, eth0 is WAN and eth1 is local/internal.

>From this comment in siproxd.conf:
#    If siproxd is not running on the host doing the masquerading
#    but on a host within the private network segment, "in front" of
#    the masquerading router: define if_inbound and if_outbound to
#    point to the same interface (the inbound interface). In *addition*
#    define 'host_outbound' to hold your external (public) IP address
#    or a hostname that resolves to that address (use a dyndns address
#    for example).

I thought it was correct to set them both to eth1 (local) as this is
"inbound" for the local SIP clients (obviously it is also inbound for
the externally initiated calls too...).

Also, in my case my server is "in between" the masquerading router,
rather than "in front".

e.g. is the comment above referring to:


                 +---------+
                 | siproxd |
                 +---------+
+------------+        |        +-------------+
| SIP Client |--------+--------| Masq Router |------- INTERWEB
+------------+                 +-------------+


Where as my setup is more like:

+------------+   +---------+   +-------------+
| SIP Client |---| siproxd |---| Masq Router |------- INTERWEB
+------------+   +---------+   +-------------+
                 eth1   eth0   Int IP     Public IP

Where:
 eth1 = 192.168.112.1
 eth0 = 192.168.0.1
 Int IP (of the router) is 192.168.0.254
 Public IP is 84.9.255.116

So I'll try with:

if_inbound = eth1 (local)
if_outbound = eth0 (WAN)

to see if that helps.

> I understand you in a way that the interface eth0 owns the IP address
> 192.168.0.1, so this IP is NOT seen as an "own" IP for siproxd, as the
> eth0 interface is not mentioned in its configuration. So make sure your
> internal UAs do use the proper internal IP address (the one where the
> if_inbound points to).

I think I covered this above.


> If you plan to deal with multiple internal subnets (without routing in
> between them) then you need a siproxd instance for each subnet (put them
> on different UDP ports, e.g 5060, 5062).

The only separate subnet is the one to the router (this is also the
wireless subnet too, but I don't care about that right now - wireless is
considered external for all intent purposes).

> However, I still would like to get a debug log file (debuglevel=-1) of
> such an event. As I understood you correctly, your siproxd machine uses
> 192.111.200.139 on eth1 and 192.168.0.1 on eth0. So it is not clear why
> both IPs are involved...

I'll turn this on now (debug file).

The IP 192.111.200.139 is that of my SIP provider
(lon-pbx-3.gradwell.net). My public IP is given above.

I'll try again with inbound/outbound more sensibly set (should have
thought about it more rather than blindly following the comment!)

> And yes, siproxd requires a DNS environment that is working. It is not
> the only component on a SIP network that relies on it. If the DNS from
> your provider / SIP registrar is not that reliable, you could:
> 
> - introduce a caching nameserver for your local network
> - use the plain IP address in siproxd config file

Yeah the weird thing is we have a caching nameserver! Go figure! I've
added the DNS to /etc/hosts just now.

Thanks again for all your help! I really appreciate it! I'm getting a
good slagging off in our office for insisting we go VoIP and the
reliability so for has been rubbish. It's getting better now I've
introduced siproxd so you are a legend in my eyes!

Col.

Col


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/