Re: Wrong interface

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

 



I think I've tried that, with no luck. Maybe because both interfaces are
on the same physical interface (eth0 and eth0:1)

Boris


On Wed, 2005-06-15 at 21:26 +0800, VoIP Newbie wrote:
> If I am not wrong, the situation should reverse if eth0 was configured
> as public interface.
> 
> On 6/15/05, Boris Pavacic <boris.pavacic@xxxxxxxxxxx> wrote:
> > 
> > My GnuGk server (version 2.2.2) has two interfaces, one private (eth0,
> > 192.168.0.10) and one public IP (eth0:1). 
> > When endpoint from public internet tries to register to gatekeeper (using my
> > public IP), it always receives private IP in GCF response, to which (of
> > course) it can not connect:
> > 
> > 2005/06/14 17:08:28.011 1             RasSrv.cxx(330)   RAS     GRQ Received
> > 2005/06/14 17:08:28.011 3               gkauth.h(830)   GKAUTH  default GRQ
> > check ok
> > 2005/06/14 17:08:28.011 2             RasSrv.cxx(375)  
> > GCF|x.x.x.x|XXXXXXXXXXX:h323_ID|gateway;
> > 2005/06/14 17:08:28.012 3             RasSrv.cxx(221)   RAS     Send to
> > x.x.x.x:58438
> > gatekeeperConfirm {
> >     requestSeqNum = 274
> >     protocolIdentifier = 0.0.8.2250.0.4
> >     gatekeeperIdentifier =  10 characters {
> >       004f 0070 0065 006e 0048 0033 0032 0033   OpenH323
> >       0047 004b                                 GK
> >     }
> >     rasAddress = ipAddress {
> >       ip =  4 octets {
> >         c0 a8 00 0a                                       
> > ....
> >       }
> >       port = 1719
> >     }
> >   }
> > 
> > "c0 a8 00 0a" in GCF is 192.168.0.10
> > 
> > 
> > I tried starting GnuGk only on public interface (using Home and
> > NetworkInterfaces), but it always sends private IP ?!?
> > 
> > Same thing happens when I try to make call from the same but unregistered
> > endpoint (trough GnuGk listener at port 1721. GnuGK starts proxy mode to
> > reach another internal IP, but it again puts it's private IP address in
> > faststart elements:
> > 
> > 2005/06/11 17:37:52.128 3             gkauth.cxx(1048)  GKAUTH  default
> > Setup check ok
> > 2005/06/11 17:37:52.128 4             RasTbl.cxx(996)   Alias match for EP
> > 192.168.0.153:1720
> > 2005/06/11 17:37:52.129 2             RasTbl.cxx(2003) 
> > CallTable::Insert(CALL) Call No. 8, total sessions : 1
> > 2005/06/11 17:37:52.129 2             gkacct.cxx(982)   GKACCT  Successfully
> > logged event 1 for call no. 8
> > 2005/06/11 17:37:52.130 4       ProxyChannel.cxx(1676)  Q931s   GWRewrite
> > source for x.x.x.x:9004: setup H323 ID or E164
> > 2005/06/11 17:37:52.130 3       ProxyChannel.cxx(1741)  Q931s   Call 8 is
> > NAT type 0
> > 2005/06/11 17:37:52.130 3       ProxyChannel.cxx(628)   GK      Call 8 proxy
> > enabled
> > 2005/06/11 17:37:52.132 4       ProxyChannel.cxx(2079)  Q931
> > fastStart[0] received: {
> > 
> > ...
> > and later in connect message:
> > 
> > 2005/06/11 17:37:57.015 4       ProxyChannel.cxx(686)   Q931    Send to
> > x.x.x.x:9004 {
> >   q931pdu = {
> >     protocolDiscriminator = 8
> >     callReference = 138
> >     from = destination
> >     messageType = Connect
> >     IE: Bearer-Capability = {
> >       80 90 a5                                          
> > ...
> >     }
> > 
> >     ...
> > 
> >   }
> >   h225pdu = {
> >     h323_uu_pdu = {
> >       h323_message_body = connect {
> > 
> >         ...
> > 
> >         fastStart = 2 entries {
> >           [0]= 25 octets {
> >             00 00 01 0c 60 1d 80 11  1c 00 01 00 c0 a8 00 0a  
> > ....`...........
> >             4e f6 00 c0 a8 00 0a 4e  f7                        N......N.
> >           }
> >           [1]= 23 octets {
> >             40 00 64 06 04 01 00 4c  60 13 80 0b 0d 00 01 00  
> > @.d....L`.......
> >             c0 a8 00 0a 4e f7 00                           
> >    ....N..
> >           }
> >         }
> >         multipleCalls = FALSE
> >         maintainConnection = FALSE
> >       }
> >       h245Tunneling = TRUE
> >     }
> >   }
> > }
> > 
> > 
> > 
> > Again it sets 192.168.0.10 instead of public IP address. 
> > 
> > Can someone please help me what to do?
> > 
> > GnuGk version is 2.2.2
> > 
> > 
> > my ifconfig output and routing table:
> > 
> > # ifconfig
> > eth0      Link encap:Ethernet  HWaddr 00:50:BA:C9:4F:BD
> >           inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           RX packets:180451 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:143060 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:100
> >           RX bytes:51578201 (49.1 MiB)  TX bytes:50495539 (48.1 MiB)
> >           Interrupt:3
> > 
> > eth0:1    Link encap:Ethernet  HWaddr 00:50:BA:C9:4F:BD
> >           inet addr:y.y.y.y  Bcast:y.y.y.Y  Mask:255.255.255.240
> >           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
> >           Interrupt:3
> > 
> > lo        Link encap:Local Loopback
> >           inet addr:127.0.0.1  Mask:255.0.0.0
> >           UP LOOPBACK RUNNING  MTU:16436  Metric:1
> >           RX packets:10139 errors:0 dropped:0 overruns:0 frame:0
> >           TX packets:10139 errors:0 dropped:0 overruns:0 carrier:0
> >           collisions:0 txqueuelen:0
> >           RX bytes:734893 (717.6 KiB)  TX bytes:734893 (717.6 KiB)
> > 
> > # route -n
> > Kernel IP routing table
> > Destination     Gateway         Genmask         Flags Metric Ref    Use
> > Iface
> > y.y.y.y  0.0.0.0         255.255.255.240 U     0      0        0 eth0
> > 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
> > 0.0.0.0         192.168.0.1     0.0.0.0         UG    0      0        0 eth0
> > 
> > 
> > 
> > -- 
> Boris Pavacic, CTO
> Uniqall, Inc.
> Web: http://www.uniqall.com/
> >
> 
> 
> -------------------------------------------------------
> SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
> from IBM. Find simple to follow Roadmaps, straightforward articles,
> informative Webcasts and more! Get everything you need to get up to
> speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
> _______________________________________________________
> 
> Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
> Archive: http://sourceforge.net/mailarchive/forum.php?forum_id…49
> Unsubscribe: http://lists.sourceforge.net/lists/listinfo/openh323gk-users
> Homepage: http://www.gnugk.org/
> 
-- 
Boris Pavacic, CTO
Uniqall, Inc.
Web: http://www.uniqall.com/



-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&opМk
_______________________________________________________

Posting: mailto:Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx
Archive: http://sourceforge.net/mailarchive/forum.php?forum_id…49
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