Stewart Nelson wrote: > Hi, > > You need to tell the GK your public IP, so it can put that > address in RAS and signaling packets. > > In gnugk 2.0.x, you can do that with: > [Gatekeeper::Main] > NetworkInterfaces=192.168.1.57/24,211.111.111.57/0 > > Unfortunately, GK behind NAT does not always work correctly > in 2.2.0. If 2.0.x will work in your application, I > suggest that you try the older version, if you still have > the problem after setting NetworkInterfaces. > > --Stewart > > ----- Original Message ----- From: <jamesxuruo@xxxxxxxxxxxxxxxx> > To: <openh323gk-users@xxxxxxxxxxxxxxxxxxxxx> > Sent: Wednesday, January 12, 2005 10:34 AM > Subject: Questions about gnugk and NAT > > >> Dear all: >> I use Debain/Linux run Gnugk 2.2.0 and ohphone. they are : >> 1)A is Debian/Linux and run Gnugk 2.2.0, it's IP is 192.168.1.57 and i >> config my gateway's firewall to make >> 192.168.1.57 map 211.111.111.57. >> 2)B is Debian/Linux and run ohphone with IP: 192.168.0.138, and i config >> my firewall not to filter any packet to this IP. >> >> now, B run: ohphone -g 211.111.111.57 -u sandy -l, it telles me that can >> not regist on gnugk. >> I use ethereal to capture packets and find these packets: >> >> 192.168.0.138 211.111.111.57 H.225.0 RAS: gatekeeperRequest >> 211.111.111.57 192.168.0.138 H.225.0 RAS: gatekeeperConfirm >> 192.168.0.138 192.168.1.57 H.225.0 RAS: registrationRequest >> 192.168.0.138 192.168.1.57 H.225.0 RAS: registrationRequest >> >> It is so strange, When B send registrationRequest to A, it should send >> to 211.111.111.57 but not 192.168.1.57. why? >> my gatekeep.ini is: >> [Gatekeeper::Main] >> Fourtytwo=42 >> Name=OpenH323GK >> >> [RoutedMode] >> GKRouted=1 >> AcceptUnregisteredCalls=1 >> SupportNATedEndpoints=1 >> H245PortRange=30000-30010 >> Q931PortRange=30011-30020 >> >> [RasSrv::ARQFeatures] >> CallUnregisteredEndpoints=1 >> >> [Proxy] >> ;Enable=1 >> RTPPortRange=5000-5010 >> >> [GkStatus::Auth] >> rule=allow >> >> [Gatekeeper::Auth] >> default=allow >> I run my GK with these commands: gnugk -r -ttt >> any ideas, thx very much > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by: Beat the post-holiday blues > Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. > It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt > > _______________________________________________________ > > List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx > Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 > Homepage: http://www.gnugk.org/ > > Dear Stewart: thanks very much for your help, this time i set my gnugk in internet, this is my enviroment: 1. A is gnugk 2.2.0 run in Debian/Linux, it is in internet and its ip is : 61.61.61.61 2. B is in LAN, and B's IP is 192.168.0.138, netmask is:255.255.255.0 3. C is in LAN, and C's IP is 192.168.1.57, netmask is: 255.255.255.0 4. both B and C is Debian/Linux. and now, i try to start Gnugk first, its gatekeeper.ini can be found above: sudo gnugk -ttt -r then, i start ohphone in C: ohphone -g 61.61.61.61 -u Who -l i can see: GCF|211.111.111.57|Who:h323_ID|terminal; RCF|211.111.111.57:1720|Who:h323_ID|terminal|2629_endp; then i start ohphone in B: ohphone -g 61.61.61.61 -u Sandy Who this time, B telles me : Sandy is calling host Who Command? "Who is not online" I use ethereal to capture packets on B: 192.168.0.138 61.61.61.61 H.225.0 RAS: gatekeeperRequest 61.61.61.61 192.168.0.138 H.225.0 RAS: gatekeeperConfirm 192.168.0.138 61.61.61.61 H.225.0 RAS: registrationRequest 61.61.61.61 192.168.0.138 H.225.0 RAS: registrationConfirm 192.168.0.138 61.61.61.61 H.225.0 RAS: admissionRequest 61.61.61.61 192.168.0.138 H.225.0 RAS: admissionConfirm 192.168.0.138 61.61.61.61 H.225.0 RAS: infoRequestResponse 192.168.0.138 61.61.61.61 H.225.0 RAS: disengageRequest 61.61.61.61 192.168.0.138 H.225.0 RAS: disengageConfirm I guess B(192.168.0.138) send infoRequestResponse to Gk and ask gk to test whether have "Who", but GK telles B don't have. but actually, C is regist with "Who" and wait for incoming calls. this is the whole info from gk by monitoring port 7000: GCF|211.111.111.57|Who:h323_ID|terminal; //C(192.168.1.57) map the real IP 211.111.111.57 using iptables. RCF|192.168.1.57:1720|Who:h323_ID|terminal|2629_endp; GCF|61.14.11.22|Sandy:h323_ID|terminal; //61.14.11.22 may the real IP of B RCF|192.168.0.138:1720|Sandy:h323_ID|terminal|2630_endp; ACF|192.168.0.138:1720|2630_endp|27397|Who:h323_ID|Sandy:h323_ID|false; DCF|61.14.11.22|2630_endp|27397|normalDrop; UCF|61.14.1.22|2630_endp; URQ|211.111.111.57:32781|2629_endp|maintenance; Why can not B call C? thx very much. ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________________ List: Openh323gk-users@xxxxxxxxxxxxxxxxxxxxx Archive: http://sourceforge.net/mailarchive/forum.php?forum_id=8549 Homepage: http://www.gnugk.org/