ip translation?

Alex Tuca
2004-01-18
2004-08-12
  • Alex Tuca

    Alex Tuca - 2004-01-18

    hi,
    first thanks for this great software,

    i am searching for a  ip translation functionallity in myphone, in ohphone it is set with the
    --translate ip       
    argument. arre you planning to include this?

    i am wondering if it would be possible to automate the ip translation in  association with a gatekeeper, if the myphone software starts up, it could connect to a gatkeeper, gets back the nat ip and if this is fifferent from the local, the software could automaticly could translate the ip to work behind a masqu network?
    thanks,
    alex

     
    • -=MaGGuS=-

      -=MaGGuS=- - 2004-01-19

      Yes, I am planning to add options for IT translation and network ports number selection in next version.
      About Gatekeeper IP I am not sure that Gatekeeper responds with its external IP, most likely it will be IP of the inner interface of Gatekeeper, in that case I could not just use GKs remoteAddress so GK will need additional features to provide me with the right IP.

       
    • Alex Tuca

      Alex Tuca - 2004-01-19

      i am not en expert but i sniffed the gatekeeper traffic with ethereal and found my router ip in the h.225.0 ras  gatekeeper protokoll

      also when i look at the opengatekeeper status web page, my openphone app is registered with the public ip of the router. so as i can see, the openphone software sends the public ip of my router to the gatekeeper during the openphone h225 registration request.

       
      • -=MaGGuS=-

        -=MaGGuS=- - 2004-01-20

        Ok. I'll check it.

         
    • José Luis

      José Luis - 2004-01-20

      Its a very big problem NAT/PAT & H323 (or SIP).

      - The NAT could be H323-aware, and in fact, there are a lot of appilcations that change the IP inside all the H323 packets. What is the problem? There are a big big variety od H323 packets, and maybe the NAT machine could not understand all this.
      With NAT 1 to 1, you could have only 1 endpoint for each IP public addres.

      - The PAT (1 to n) will not be H323-aware never. The only solution for this is an H323 proxy (gnugk.org is a good solution). Why is it not possible? because the PAT machine dont know the state of the communications, and when one  outside-endpoint begin to send RTP (UDP) traffic to the outside IP of PAT machine, it doesnt know to which one inside-endpoint is the destination, because PAT machine dont understand H323 protocol (and dont have the state of the calls), only make IP traslations.

      There can be a "unelegant" solution making static the RTP port of each endpoint inside (i.e on each myphone), and making a static mapping of port-inside_IP on the PAT machine.

      Thanks

       
    • -=MaGGuS=-

      -=MaGGuS=- - 2004-01-20

      Yes, you are right. All of that was discussed many times in OpenH323 mailing-list.
      http://www.openh323.org/mailman/listinfo/openh323
      Conclusion is that because of the fact that RTP based on UDP which is socketless protocol, and that cause all the problems with firewalls/proxies.

       
    • Alex Tuca

      Alex Tuca - 2004-01-20

      thats clear, nat is problem with h323, but the point is how to make it less a problem, i would be interested if it would be possible to implement something like  many p2p s software programms use, like gnutella to communicate to hosts behind a nat network.

      if a gnutela servant finds another servant behind a router with a private ip, it can initiate a download by sending him a push packet, then when the servant behind the router gets this packets, he initiates by him selfe the upload.

      so im thinking if it would be possible reduce (one party has to have a pub ip) the problem of nat by a callback system. there must be a server, this could be the gatekeepeer, where every phone is connected to. if i want to call sombody, who is behind a nat router, the gatekeeper recognises this and tells the phone software to call back.

      the phone software has to poll the gatekeeper e.g. every 10 seconds, the gatekeeper protokoll need maybe to be changed ?

      alex

       
    • -=MaGGuS=-

      -=MaGGuS=- - 2004-01-21

      Such connection initiation might help, but it would be out of H.323 standards. I suggest you to post that idea to OpenH323 mailing list.

       
    • whtech

      whtech - 2004-08-12

      I found a very strange things. My gk is gnugk ,which is also behind NAT and proxy enabled.  When I register one to gk with myphone (I call it 1001) and one with another terminal( I call it 1002), they are both behind NAT and in same LAN with gk. The strange things occurs: when 1001 call 1002, 1001 can hear 1002's voice, but 1002 can't hear 1001's voice, when 1002 call 1001 I got that the connection is cleared.

      internal IP: 192.168.100.* ,internet IP 200.193.198.11

      I got these two line from gk when 1001(myphone) registered:

      GCF|200.193.198.11|1001:dialedDigits|terminal;
      RCF|200.193.198.11:1720|1001:dialedDigits|terminal|4862_gk1;

      and these two line when 1002(other h.323 terminal) registered:

      GCF|200.193.198.11|1001:dialedDigits|terminal;
      RCF|192.168.100.155:1730|1001:dialedDigits|terminal|4861_gk1;

      the difference between these two one is that the RegistrationConfirm IP.
      and 1002(other H.323 terminal) can accept other Lan (behind NAT,too)  or internet's terminal 's calling via internet,but 1001(myphone) can't. I check other H.323 terminal base on OpenH323 that they both have the problem,such as openphone,ohphone.

      I think if I can make the RegistrationConfirm IP as internal IP(such as 192.168.100.100) not  internet IP, It can work well. But I don't know how to change it. Anybody can help me?

       
    • whtech

      whtech - 2004-08-12

      sorry , I forget the Lan setting.

      Local Lan 192.168.100.*            |     internat
      router (192.168.100.1)             |
                          |   myphone EP (1003)
      gk server 192.168.100.100(NATed)   |
                          |
      myphone EP 192.169.100.123(1001)   |
                          |
      other EP   192.168.100.11 (1003)   |
                          |

      I did some port redirect to gk server,such as 1721(TCP),1700-1800(UDP),30000-65535(UDP)
      all (1001,1002,1003) are registered to the gk server with the router's internet IP.

      when 1001 call 1002, 1001 can hear 1002's voice while 1002 can't hear 1001's voice.
      when 1002 call 1001, connection cleared.
      when 1003 call 1001, connection cleared.
      when 1003 call 1001, they can hear each other's voice.

       
    • whtech

      whtech - 2004-08-12

      Local Lan 192.168.100.*            |    internat

      router (192.168.100.1)             |
                          |    myphone EP (1003)
      gk server 192.168.100.100(NATed)   |
                          |
      myphone EP 192.169.100.123(1001)   |
                          |
      other EP   192.168.100.11 (1003)   |
                          |

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks