LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 01-10-2017, 06:12 PM   #1
Norbert Szczybelski
LQ Newbie
 
Registered: Jan 2017
Posts: 1

Rep: Reputation: Disabled
How To setup Asterisk VoIP server over OpenVPN in Tor hidden service.


First create OpenSSL CA with easy-rsa or OpenSSL for OpenVPN.

This is OpenVPN server configuration file:
Code:
tls-server
port 1194
proto tcp
dev tun
ca /etc/ssl/ca.crt
cert /etc/ssl/server.crt
key /etc/ssl/server.key
dh /etc/ssl/dh2048.pem
topology subnet
server 10.0.0.0 255.255.0.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
cipher AES-256-CBC
max-clients 100
persist-key
persist-tun
status /var/log/openvpn-status.log
log /var/log/openvpn.log
log-append /var/log/openvpn-append.log
verb 3
auth SHA512
This is OpenVPN client configuration file:
Code:
client
dev tun
proto tcp
remote svntrqfgsa7jgnpm.onion 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca /home/norbert/new/ca.crt
cert /home/norbert/new/demo-norbert.crt
key /home/norbert/new/demo-norbert.key
cipher AES-256-CBC
auth SHA512
verb 3
socks-proxy 127.0.0.1 9050
remote-cert-tls server
This is Asterisk sip.conf configuration file:
Code:
[general]
transport=udp
port=5060
bindaddr=10.0.0.1
disallow=all
allow=ulaw
allow=alaw
allow=gsm
directmedia=no
nat=yes
localnet=10.0.0.0/255.255.0.0

[friends_internal](!)
type=friend
host=dynamic
context=from-internal
disallow=all
allow=ulaw
allow=alaw
allow=gsm

[demo-alice](friends_internal)
secret=password

[demo-bob](friends_internal)
secret=password

[demo-norbert](friends_internal)
secret=password
This is Asterisk extensions.conf configuration file:
Code:
[from-internal]
exten=>6001,1,Dial(SIP/demo-alice,20)
exten=>6002,1,Dial(SIP/demo-bob,20)
This is Tor hidden service server torrc configuration file:
Code:
HiddenServiceDir /usr/local/torhs/winternight/
HiddenServicePort 1194 127.0.0.1:1194
This is Tor client configuration file:
Code:
SOCKSPort 9050
That's all. It's working with 1s delay.
Enjoy.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setup VOIP server??? Fcukinyahoo Linux - Server 5 09-10-2012 06:02 AM
Looking for a distro to setup a VoIP server with P2 kyocera89 Linux - Newbie 6 09-27-2009 07:31 PM
Asterisk Predictive Dialer need VOIP adapters to Make a VOIP call... jpmaxyusuf Linux - Server 4 04-05-2009 08:12 AM
LXer: Open source telephony: a Fedora-based VoIP server with Asterisk LXer Syndicated Linux News 0 07-25-2008 11:10 AM
LXer: How to set up a VoIP service with Xorcom Rapid, Asterisk PBX and *starShop-OSS LXer Syndicated Linux News 0 09-12-2006 11:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 06:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration