On 2014/05/27 13:59, Швецов Михаил wrote: > Does pf have specific rules for voip, may be example of working pf_rule with > voip? > > Because for «standart rules» i have problems with voip. > > set skip on lo > > match out on pppoe0 from { em1:network } nat-to (pppoe0) > > block > > pass out > > pass in on { em1 } > > - after hanging up, the line near 3 minutes still busy (may be keep state > set to no state in rules) > > - badly hear person on the phone (quiet)
It just works<tm> for me, no special setup needed, no static-port or anything, just a standard nat-to rule. This is with various devices; snom and gigaset hardware phones, softclient on android, pjsua on OpenBSD. But the SIP servers I use are setup properly to handle natted clients...