Re: GnuGK 2.3.4 not listening on more than 99 IP addresses.

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

 



Hi Robert,

looks like PTLib IP detection function has a hardcoded limit of 100.
Put your IPs into Home=. That will bypass the auto-detection and get
you around that limit.

Regards,
Jan


Robert Kulagowski wrote:
> I'm taking advantage of the new code in GnuGK to allow one-to-one maps
> of external IP address and internal IPs.
> 
> I have created eth1:1 through eth1:252 on my system, so that a single
> ethernet interface binds multiple IP addresses.  That part works;
> typing ifconfig shows that all of the addresses have been created,
> they can be pinged, etc.
> 
> During GnuGK startup I see:
> 
> 2010/11/17 23:44:24.157 1                 gk.cxx(608)   GNU Gatekeeper
> with ID 'gk1' started
> Gatekeeper(GNU) Version(2.3.4)
> Ext(pthreads=1,radius=1,mysql=0,pgsql=0,firebird=0,odbc=0,sqlite=0,large_fdset=0,crypto/ssl=0,h46018=1,h46023=1)
> H323Plus(1.22.0) PTLib(2
> .9.0) Build(Nov 17 2010, 13:20:49) Sys(Linux x86_64 2.6.32-24-generic)
> 
> 2010/11/17 23:44:24.158 2          singleton.cxx(27)    Create
> instance: CallTable(4)
> 2010/11/17 23:44:24.158 2                 gk.cxx(654)   GK      Total
> bandwidth not limited
> 2010/11/17 23:44:24.158 2                 gk.cxx(663)   GK
> TimeToLive for Registrations: 60
> 2010/11/17 23:44:24.161 2       ProxyChannel.cxx(207)   Q931PortRange:
> 30000-30999
> 2010/11/17 23:44:24.161 2       ProxyChannel.cxx(207)   H245PortRange:
> 31000-31999
> 2010/11/17 23:44:24.161 2       ProxyChannel.cxx(207)   T120PortRange:
> 50000-59999
> 2010/11/17 23:44:24.161 2       ProxyChannel.cxx(207)   RTPPortRange:
> 50000-59999
> 2010/11/17 23:44:24.161 2          singleton.cxx(27)    Create
> instance: Agent(5)
> 2010/11/17 23:44:24.161 4             osutil.cxx(189)   PWLib   File
> handle high water mark set: 9 Thread unblock pipe
> 2010/11/17 23:44:24.161 5           tlibthrd.cxx(423)   PTLib
> Created thread 0x25f6a90
> 2010/11/17 23:44:24.161 4           tlibthrd.cxx(583)   PTLib   Thread
> high water mark set: 3
> 2010/11/17 23:44:24.161 5                job.cxx(363)   JOB     Worker
> threads: 1 total - 1 busy, 0 idle
> 2010/11/17 23:44:24.161 4             osutil.cxx(189)   PWLib   File
> handle high water mark set: 11 Thread unblock pipe
> 2010/11/17 23:44:24.161 5           tlibthrd.cxx(423)   PTLib
> Created thread 0x25e43f0
> 2010/11/17 23:44:24.161 4           tlibthrd.cxx(583)   PTLib   Thread
> high water mark set: 4
> 2010/11/17 23:44:24.161 5           tlibthrd.cxx(499)   PTLib
> Started thread 0x25e43f0 Worker:0x1719f710
> 2010/11/17 23:44:24.161 5                job.cxx(169)   JOB     Worker
> 139655544174352 started
> 2010/11/17 23:44:24.161 5                job.cxx(189)   JOB
> Starting Job ProxyH(1) at Worker thread 139655544174352
> 2010/11/17 23:44:24.162 2           tlibthrd.cxx(140)   PTLib   No
> permission to set priority level 3
> 2010/11/17 23:44:24.161 5                job.cxx(363)   JOB     Worker
> threads: 2 total - 2 busy, 0 idle
> 2010/11/17 23:44:24.162 5           tlibthrd.cxx(499)   PTLib
> Started thread 0x25f6a90 Worker:0x171e0710
> 2010/11/17 23:44:24.162 4             osutil.cxx(189)   PWLib   File
> handle high water mark set: 13 Thread unblock pipe
> 2010/11/17 23:44:24.162 5           tlibthrd.cxx(423)   PTLib
> Created thread 0x7f0410000e60
> 2010/11/17 23:44:24.162 5                job.cxx(169)   JOB     Worker
> 139655544440592 started
> 2010/11/17 23:44:24.162 4           tlibthrd.cxx(583)   PTLib   Thread
> high water mark set: 5
> 2010/11/17 23:44:24.162 5                job.cxx(189)   JOB
> Starting Job ProxyH(0) at Worker thread 139655544440592
> 2010/11/17 23:44:24.162 2           tlibthrd.cxx(140)   PTLib   No
> permission to set priority level 3
> 2010/11/17 23:44:24.162 5                job.cxx(363)   JOB     Worker
> threads: 3 total - 3 busy, 0 idle
> 2010/11/17 23:44:24.162 4             osutil.cxx(189)   PWLib   File
> handle high water mark set: 15 Thread unblock pipe
> 2010/11/17 23:44:24.162 5           tlibthrd.cxx(423)   PTLib
> Created thread 0x7f0410001630
> 2010/11/17 23:44:24.162 5           tlibthrd.cxx(499)   PTLib
> Started thread 0x7f0410000e60 Worker:0x1715e710
> 2010/11/17 23:44:24.162 4           tlibthrd.cxx(583)   PTLib   Thread
> high water mark set: 6
> 2010/11/17 23:44:24.162 5                job.cxx(169)   JOB     Worker
> 139655543908112 started
> 2010/11/17 23:44:24.162 5                job.cxx(363)   JOB     Worker
> threads: 4 total - 4 busy, 0 idle
> 2010/11/17 23:44:24.162 5           tlibthrd.cxx(499)   PTLib
> Started thread 0x7f0410001630 Worker:0x1711d710
> 2010/11/17 23:44:24.162 5                job.cxx(169)   JOB     Worker
> 139655543641872 started
> 2010/11/17 23:44:24.162 5                job.cxx(189)   JOB
> Starting Job ProxyH(3) at Worker thread 139655543641872
> 2010/11/17 23:44:24.162 2           tlibthrd.cxx(140)   PTLib   No
> permission to set priority level 3
> 2010/11/17 23:44:24.162 5                job.cxx(189)   JOB
> Starting Job ProxyH(2) at Worker thread 139655543908112
> ....
> 
> 2010/11/17 23:44:24.312 5           tlibthrd.cxx(499)   PTLib
> Started thread 0x7f04100f87d0 Worker:0x15a4e710
> 2010/11/17 23:44:24.312 5                job.cxx(169)   JOB     Worker
> 139655519725328 started
> 2010/11/17 23:44:24.312 5                job.cxx(189)   JOB
> Starting Job TCPSrv at Worker thread 139655519725328
> 2010/11/17 23:44:24.312 2             RasSrv.cxx(820)   GK      Home =
> 38.124.39.254,38.124.39.106,38.124.39.105,38.124.39.104,38.124.39.103,38.124.39.102,38.124.39.101,38.124.39.100,38.124.39.99,38.124.39.98,38.124.39.97,38.124.39.96,38.124.39.95,38.124.39.94,38.124.39.93,38.124.39.92,38.124.39.91,38.124.39.90,38.124.39.89,38.124.39.88,38.124.39.87,38.124.39.86,38.124.39.85,38.124.39.84,38.124.39.83,38.124.39.82,38.124.39.81,38.124.39.80,38.124.39.79,38.124.39.78,38.124.39.77,38.124.39.76,38.124.39.75,38.124.39.74,38.124.39.73,38.124.39.72,38.124.39.71,38.124.39.70,38.124.39.69,38.124.39.68,38.124.39.67,38.124.39.66,38.124.39.65,38.124.39.64,38.124.39.63,38.124.39.62,38.124.39.61,38.124.39.60,38.124.39.59,38.124.39.58,38.124.39.57,38.124.39.56,38.124.39.55,38.124.39.54,38.124.39.53,38.124.39.52,38.124.39.51,38.124.39.50,38.124.39.49,38.124.39.48,38.124.39.47,38.124.39.46,38.124.39.45,38.124.39.44,38.124.39.43,38.124.39.42,38.124.39.41,38.124.39.40,38.124.39.39,38.124.39.38,38.124.39.37,38.124.39.36,38.124.39.35,38.124.39.34,38.124.39.33,38.12
 4.39.32,38.124.39.31,38.124.39.30,38.124.39.29,38.124.39.28,38.124.39.27,38.124.39.26,38.124.39.25,38.124.39.24,38.124.39.23,38.124.39.22,38.124.39.21,38.124.39.20,38.124.39.19,38.124.39.18,38.124.39.17,38.124.39.16,38.124.39.15,38.124.39.14,38.124.39.13,38.124.39.12,38.124.39.11,38.124.39.10,10.244.1.10,127.0.0.1
> 
> 
> Note that in the Home= line that GnuGK isn't binding to all of the
> addresses that exist; it's correctly gotten the lowest IP (the .10
> that's at the end of the string), but it stops at .106, but there are
> lots more addresses above .106 that exist in the ifconfig report in my
> 38.124.39.0/24 range.
> 
> There are 96 IP addresses between .106 and .10, and there are three
> more; the .254 (the native IP address of eth1), 10.244.1.10 (the
> internal IP on the other NIC), and 127.0.0.1, making 99 IPs that it's
> listening on.  Is there a hardcoded limit that I'm running into?
> 
> I didn't compile with LARGE_FDSET because I don't think it applies; I
> won't have massive number of concurrent calls, which is what the
> documentation seems to indicate it's required for.
> 
> I added a line to RasSrv to dump hsize, and I get:
> 
> 2010/11/18 00:04:52.017 5                job.cxx(189)   JOB
> Starting Job TCPSrv at Worker thread 139907292903184
> 2010/11/18 00:04:52.017 2             RasSrv.cxx(820)   GK      Home =
> 38.124.39.254,38.124.39.106,38.124.39.105,38.124.39.104,38.124.39.103,38.124.39.102,38.124.39.101,38.124.39.100,38.124.39.99,38.124.39.98,38.124.39.97,38.124.39.96,38.124.39.95,38.124.39.94,38.124.39.93,38.124.39.92,38.124.39.91,38.124.39.90,38.124.39.89,38.124.39.88,38.124.39.87,38.124.39.86,38.124.39.85,38.124.39.84,38.124.39.83,38.124.39.82,38.124.39.81,38.124.39.80,38.124.39.79,38.124.39.78,38.124.39.77,38.124.39.76,38.124.39.75,38.124.39.74,38.124.39.73,38.124.39.72,38.124.39.71,38.124.39.70,38.124.39.69,38.124.39.68,38.124.39.67,38.124.39.66,38.124.39.65,38.124.39.64,38.124.39.63,38.124.39.62,38.124.39.61,38.124.39.60,38.124.39.59,38.124.39.58,38.124.39.57,38.124.39.56,38.124.39.55,38.124.39.54,38.124.39.53,38.124.39.52,38.124.39.51,38.124.39.50,38.124.39.49,38.124.39.48,38.124.39.47,38.124.39.46,38.124.39.45,38.124.39.44,38.124.39.43,38.124.39.42,38.124.39.41,38.124.39.40,38.124.39.39,38.124.39.38,38.124.39.37,38.124.39.36,38.124.39.35,38.124.39.34,38.124.39.33,38.12
 4.39.32,38.124.39.31,38.124.39.30,38.124.39.29,38.124.39.28,38.124.39.27,38.124.39.26,38.124.39.25,38.124.39.24,38.124.39.23,38.124.39.22,38.124.39.21,38.124.39.20,38.124.39.19,38.124.39.18,38.124.39.17,38.124.39.16,38.124.39.15,38.124.39.14,38.124.39.13,38.124.39.12,38.124.39.11,38.124.39.10,10.244.1.10,127.0.0.1
> 2010/11/18 00:04:52.017 2             RasSrv.cxx(825)   hsize is 100
> 
> But I don't know enough about the code to start unraveling where that
> "100" is coming from.

-- 
Jan Willamowius, jan@xxxxxxxxxxxxxx, http://www.gnugk.org/

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_name=openh323gk-users
Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
Homepage: http://www.gnugk.org/


[Index of Archives]     [SIP]     [Open H.323]     [Gnu Gatekeeper]     [Asterisk PBX]     [ISDN Cause Codes]     [Yosemite News]

  Powered by Linux