[Asterisk-Users] problem with pf and asterisk

C. Hatton Humphrey chumphrey at gmail.com
Mon Jun 13 19:47:39 MST 2005


I took the info from here:

http://www.voip-info.org/tiki-index.php?page=Asterisk%20firewall%20rules

and ended up with the following in my pf.conf:

rdr on $ext_if proto tcp from any to ($ext_if) port 5060 -> $dmz_ip port 5060
rdr on $ext_if proto udp from any to ($ext_if) port 5060 -> $dmz_ip port 5060
rdr on $ext_if proto udp from any to ($ext_if) port 4569 -> $dmz_ip port 4569
rdr on $ext_if proto udp from any to ($ext_if) port 5036 -> $dmz_ip port 5036
rdr on $ext_if proto udp from any to ($ext_if) port 9999:20001 ->
$dmz_ip port 9999:20001
rdr on $ext_if proto udp from any to ($ext_if) port 2727 -> $dmz_ip port 2727

I also have the following lines in there:
pass  out on $ext_if all keep state
# pass incoming dmz traffic
pass in on $ext_if proto tcp from any to $dmz_ip keep state
pass in on $ext_if proto udp from any to $dmz_ip keep state

HTH
Hatton



More information about the asterisk-users mailing list