Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - xerse

#1
23.1 Legacy Series / NAT issue with VoIP/SIP/RTP
March 22, 2023, 11:15:28 AM
Hello, I really hope someone may help in somethig is struggling me:

Unfortunately I had to reinstall some VM. I moved from an old ESXi 6.5 to ESXi 7u2 and I installed a new OPNsense VM from the scratch as my old v22 VM where damaged and I've not a backup.

Than OK There are many things that I could miss or that I could configured wrong, but something works really strange.

In brief I've a SIP server on an OPT network. I configured two port forward rules from one VirtualIP to the Server IP (one for SIP 5060 port, the other for voice RTP range 10000:65535)

They looks like:

WAN   TCP/UDP  VoIP_Auth    *   pub.pub.pub.181   5060 (SIP)    opt.opt.opt.181   5060 (SIP)
WAN   UDP         VoIP_Auth    *   pub.pub.pub.181   Ports_RTP     opt.opt.opt.181   Ports_RTP     


At the same time I have an Outbound NAT rule, to be sure that my server communicate thru the Public IP I use for incoming:

Interface   Source                    Src Port  Dest  Dst Port          NAT Address        NAT Port   Static Port      
WAN          opt.opt.opt.181/32        *         *     *           pub.pub.pub.181         *            NO


I'm pretty sure this setup worked on version 22 but I eperiencing a lot of problems in RTP audio from when I'm using the new installation v23.

After spending a lot of time and a lot of nights on this issue It seems related to something wrong in NAT operations.

First, from packet captures made on both WAN and OPT interfaces, I could decode audio streams and confirm that two-way audio is present.

Just to make everything complex, sometime (rarely) audio looks works (i.e 1 test call over 50 calls)


Anyway, after many other tests and nights I found that as soon as I create a 1:1 NAT rule like the followinig, Voice pass correctly.

Interface   External IP           Internal IP                Destination IP         
WAN          pub.pub.pub.181/32   opt.opt.opt.181            *               


My problem is that I'm not able to understand why Nat forward+Nat outbound does not works. It have no sense. It have no sense also because nothing strange  appear analyzing packets 
And, of course, using a NAT 1:1 introduce potential security risks.

In brief even if the signaling SIP works correctly, the voice sent from my internal server to the outside does not arrive if I did not introduce the NAT 1:1 rule.

Please help me.
Thanks
#2
Hello,
V.23 looks more and more annoying. I could understand a new major version but I can't all differences I see from the old 22 configuration.

My old VOIP Inbound NAT tell to create a forward from UPD port range 1024-65535 to range 1024-65535.
Now I see that it seems no more supported. In v23 inbound nat did not allow for a destination port range.

Why? How should I configure it? 
#3
Hello,
I'm sorry if what I'm writing is wrong, but unfortunately I had to rebuild a new OPNsense installation. I installed the following version:   OPNsense 23.1.1_2-amd64 - FreeBSD 13.1-RELEASE-p6 -OpenSSL 1.1.1t 7 Feb 2023

I'm struggling during the past days because some NAT (incoming and outgoing rules) does not works as on my old configuration. Unfortunately I've not the latest backup and than I spent time in checking my configuration.

Well today I notice something strange: Outgoing nat configuration not have anymore virtual IPs (that I had in version OPNsense 22.1.7_1-amd64 - FreeBSD 13.0-STABLE - OpenSSL 1.1.1o 3 May 2022). I notiche this during configuration using an old backup (virtual IP if modified take a /128 subnet), but I don't care enough at beginning.

Now It could be possible that something is not working as it should and I would like to have your opinion.

There's another strange behaviour that I'll test better tomorrow. Hard to explain, but as one of my nat problem is related to voip I tryed to do a packet capture. Well not only some packet are not recorded, but it seems that when packet capure is active, my nat problem disappear... OK probably I'm too tired  ;D

Anyway, I really appreciate your opinion.

Thanks