<html>Dear All,<br /><br />I am evaluating the kamailio proxy 5.2 server with rtpproxy on an internal network.<br />Everything are ok.<br /><br />Now, I would like to evalute Kamailio proxy from outside (internet) but I have some difficulties to setup my PfSense firewall to enable inbound & outbound rules, network settings and kamailio.cfg.<br /><br />The issues are :<br /><br />Setup correctly Network files :<ul><li>/etc/hostname </li></ul><blockquote><p>127.0.0.1 localhost<br />ip_private codecsip.mydomain codecsip<br />ip_public codecsip.mydomain codecsip</p></blockquote><ul><li>/etc/hosts file</li></ul><blockquote><p>codesip</p></blockquote><ul><li>dns</li></ul><blockquote><p> </p></blockquote><ul><li>/etc/resolv.conf</li></ul><blockquote><p>nameserver 8.8.8.8</p></blockquote>Setup /etc/kamailio/kamailio.cfg :<blockquote><pre>#!define WITH_MYSQL
#!define WITH_AUTH
#!define WITH_USRLOCDB
#!define WITH_NAT
#!define WITH_TLS

/* uncomment the next line to disable the auto discovery of local aliases
   based on reverse DNS on IPs (default on) */
#auto_aliases=no

/* add local domain aliases */
alias="codecsip.mydomain"

#!ifdef WITH_NAT
# ----- rtpproxy params -----
# modparam("rtpproxy", "rtpproxy_sock", "udp:127.0.0.1:7722")
modparam("rtpproxy", "rtpproxy_sock", "unix:/var/run/rtpproxy/rtpproxy.sock")</pre></blockquote><br />Setup etc/default/rtpproxy :<br /> <blockquote><p><code>CONTROL_SOCK=udp:127.0.0.1:7722<br />EXTRA_OPTS="-l <IP-address>"</code></p></blockquote><p>Where <IP-address> is the external IP address of your host.</p><br /><br />Regarding the firewall rules, it will be great to identify which rules I need to create : Inbound and outbound rules and NAT 1:1 ?<br /><br /><br />If anyone have any information it could be great<br /><br />Best regards,<br /><span style="font-size:11pt"><span style="font-family:Calibri, sans-serif"><b><span lang="EN-US" style="font-size:10.0pt"><span style="font-family:"Verdana",sans-serif"><span style="color:#1f497d">Youssef</span></span></span></b></span></span></html>