Why does pfSense NAT re-write my SIP packet and mess up my registration?

  • Hi Everyone,

    I have NAT forwarded 5060 TCP/UDP and 10000-20000 UDP to the Asterisk server that is setting as 192.168..0.5 and I do get a registration but it shows my pfsense IP as the registration IP rather than the client's public IP which comes through the WAN interface.

    SIP Packet Example:

    --- Transmitting (NAT) to --->
    SIP/2.0 200 OK
    Via: SIP/2.0/UDP;branch=z9hG4bK-d87543-855335637-1--d87543-;received=;rport=6258
    From: 9999-Prox106-Ast16<sip:5555@>;tag=821bsd37
    To: 9999-Prox106-Ast16<sip:5555@>;tag=as7d4bdsdj37
    Call-ID: f857e8783453453</sip:5555@></sip:5555@>

    sip show peers:

    pbx*CLI> sip show peers
    Name/username              Host            Dyn Nat ACL      Port     Status     
    5555/5555                D   N   A        5060     OK (13 ms) 

    In sip_nat.conf I have:

    I do not have Siproxd installed as I understand it does just the reverse of what I need meaning it connects clients part of the pfsense to connect to outside world Asterisk rather than connecting outside world clients into the pfsense Asterisk.

    Any pointers are much appreciated.


Log in to reply