<HTML>
<HEAD>
<TITLE>Re: [Freeswitch-users] FreeSWITCH on Raspberry Pi - OpenVPN gateway, B2BUA</TITLE>
</HEAD>
<BODY>
<FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Hey Peter have you seen SwitchPI.org?<BR>
<BR>
<BR>
On 3/26/13 3:52 AM, &quot;Peter P GMX&quot; &lt;<a href="Prometheus001@gmx.net">Prometheus001@gmx.net</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'> &nbsp;&nbsp;For those who might be interested:<BR>
&nbsp;<BR>
&nbsp;During the last days we built a B2BUA based on Freeswitch and Raspberry PI Ver B which connects to a central server via OpenVPN in order to encrypt voice traffic and circumvent NAT issues. We plan to use it during travelling and to have VPN access in the home office. The costs for this are relatively low (~75$).<BR>
&nbsp;<BR>
&nbsp;We installed<BR>
&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT><UL><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Raspbian 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Freeswitch compiled native from GIT (this really takes a while) 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>OpenVPN 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>Dnsmasq for eth1 side 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>isc-dhcp-server for eth1 side 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>tftpd-hpa for eth1 side 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>a second LAN interface eth1 was done by a Delock USB 2.0 to LAN interface (about 20$), works out of the box
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'> 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>iptables firewall for NAT traversal
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'> <BR>
</SPAN></FONT></UL><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'> <BR>
&nbsp;This worked pretty well. We were not sure beforehand, whether the USB to LAN interface would work nicely, but in fact it did.<BR>
&nbsp;<BR>
&nbsp;CPU usage during a single call is<BR>
&nbsp;</SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>top - 10:47:34 up 39 min, &nbsp;1 user, &nbsp;load average: 0,64, 0,40, 0,24<BR>
&nbsp;Tasks: &nbsp;70 total, &nbsp;&nbsp;1 running, &nbsp;69 sleeping, &nbsp;&nbsp;0 stopped, &nbsp;&nbsp;0 zombie<BR>
&nbsp;%Cpu(s): &nbsp;6,5 us, 12,1 sy, &nbsp;0,0 ni, 64,9 id, &nbsp;0,0 wa, &nbsp;0,0 hi, 16,5 si, &nbsp;0,0 st<BR>
&nbsp;KiB Mem: &nbsp;&nbsp;&nbsp;448776 total, &nbsp;&nbsp;&nbsp;94656 used, &nbsp;&nbsp;354120 free, &nbsp;&nbsp;&nbsp;13096 buffers<BR>
&nbsp;KiB Swap: &nbsp;&nbsp;102396 total, &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;0 used, &nbsp;&nbsp;102396 free, &nbsp;&nbsp;&nbsp;42464 cached<BR>
&nbsp;<BR>
&nbsp;&nbsp;&nbsp;PID USER &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;PR &nbsp;NI &nbsp;VIRT &nbsp;RES &nbsp;SHR S &nbsp;%CPU %MEM &nbsp;&nbsp;&nbsp;TIME+ &nbsp;COMMAND<BR>
&nbsp;&nbsp;2785 root &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;-2 -10 28328 &nbsp;14m 4844 S &nbsp;&nbsp;5,3 &nbsp;3,2 &nbsp;&nbsp;0:30.45 freeswitch<BR>
&nbsp;&nbsp;2651 root &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20 &nbsp;&nbsp;0 &nbsp;5800 3052 1848 S &nbsp;&nbsp;3,0 &nbsp;0,7 &nbsp;&nbsp;0:07.73 openvpn<BR>
&nbsp;&nbsp;3051 pi &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;20 &nbsp;&nbsp;0 &nbsp;5096 1256 &nbsp;968 R &nbsp;&nbsp;0,7 &nbsp;0,3 &nbsp;&nbsp;0:01.97 top<BR>
&nbsp;<BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'> 4 GB CF card was about 75%. Codec was G711. <BR>
&nbsp;The load was mainly generated by the USB-to-LAN adapter. Maybe someone has a better solution for this?<BR>
&nbsp;<BR>
&nbsp;At the end we were impressed, how easy this was to set up.<BR>
&nbsp;So now we have an easy VPN-Router/B2BA which allows us to<BR>
&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT><UL><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>connect a PC somewhere and tunnel all traffic via VPN 
</SPAN></FONT><LI><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>connect a SIP phone somewhere and tunnel all VoIP traffic via VPN <BR>
</SPAN></FONT></UL><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'> <BR>
&nbsp;We did this with an OpenWRT Box before, but this is much more easy to handle.<BR>
&nbsp;<BR>
&nbsp;Best regards<BR>
&nbsp;Peter<BR>
&nbsp;&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
<HR ALIGN=CENTER SIZE="3" WIDTH="95%"></SPAN></FONT><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'>_________________________________________________________________________<BR>
Professional FreeSWITCH Consulting Services:<BR>
<a href="consulting@freeswitch.org">consulting@freeswitch.org</a><BR>
<a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><BR>
<BR>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<BR>
<a href="http://www.cudatel.com">http://www.cudatel.com</a><BR>
<BR>
Official FreeSWITCH Sites<BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
<a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><BR>
<a href="http://www.cluecon.com">http://www.cluecon.com</a><BR>
<BR>
FreeSWITCH-users mailing list<BR>
<a href="FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><BR>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><BR>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><BR>
<a href="http://www.freeswitch.org">http://www.freeswitch.org</a><BR>
</SPAN></FONT></FONT></BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Consolas, Courier New, Courier"><SPAN STYLE='font-size:10pt'><BR>
</SPAN></FONT></FONT><FONT FACE="Monaco, Courier New"><SPAN STYLE='font-size:11pt'>-- <BR>
Ken<BR>
<FONT COLOR="#0000FF"><U><a href="http://www.FreeSWITCH.org">http://www.FreeSWITCH.org</a><BR>
<a href="http://www.ClueCon.com">http://www.ClueCon.com</a><BR>
<a href="http://www.OSTAG.org">http://www.OSTAG.org</a><BR>
</U></FONT>irc.freenode.net #freeswitch<BR>
</SPAN></FONT>
</BODY>
</HTML>