background preloader

Campeonato Nacional

Facebook Twitter

Basic Configuration Howto. Always start with the "default" configuration.

Basic Configuration Howto

It will work everywhere, and do almost everything you need. The only change you will need to make is to define users and passwords. Making a lot of changes to the configuration files is the best way to break the server. Don't do that. Define a Client IP For initial testing from localhost with radtest, the server comes with a default definition for 127.0.0.1 and ::1 For testing from external machines, edit /etc/raddb/clients.conf and add an entry. Client NAME { ipaddr = IPADDRESS secret = SECRET } Define a User and Password Edit /etc/raddb/users and create an example user account as the first entry. i.e. at the top of the file, such as: testing Cleartext-Password := "password" Start the server in debugging mode At this point you should be able to manually start radiusd.

. $ radiusd -X The location and the name of the FreeRADIUS server executable may vary, for example it could be /usr/sbin/freeradius. NAT with Linux and iptables - Tutorial (Introduction) Introduction Network Address Translation generally involves "re-writing the source and/or destination addresses of IP packets as they pass through a router or firewall" (from This tutorial should explain what Network Address Translation is about, what to use it for and how to configure it under Linux (or more generally Unix-derivates).

NAT with Linux and iptables - Tutorial (Introduction)

This introduction does not claim to be complete or covering all details, its main purpose is to provide the reader a feeling for what is possible and meaningful in modern computer networks and what is not. First of all the structure of an IP-packet will be considered. After a short overview of the possibilities of the (Linux-)kernel I will jump right into the main area of application of NAT, namely the connection of a private subnet to the internet using a router (in our case a linux machine with iptables). Packets within a network Before we start to manipulate packets we have to take at look at their main attributes.

Linux and Netfilter. Asterisk config sip.conf. Tap here to compare the top VoIP providers Tap here to hide the top VoIP Providers Configuration file for AsteriskSIP channels, for both inbound and outbound calls.

Asterisk config sip.conf

Starting with Asterisk v1.2.0: The global option "port" in 1.0.X that is used to set which port to bind to has been changed to "bindport" to be more consistent with the other channel drivers and to avoid confusion with the "port" option for users/peers. Starting with Asterisk v1.6.0: The previously deprecated options "insecure=very" and "insecure=yes" have now been removed.

"insecure=invite,port" is the equivalent of "insecure=very" [tammari] type=friend callerid="Tuomas Tammisalo" <1000> username=tammari host=dynamic secret=******** regcontext=tammari-internal regexten=1005 dtmfmode=rfc2833 insecure=invite,port canreinvite=yes nat=yes qualify=yes context=merus-sipphone pickupgroup=1 callgroup=1 mailbox=1000@default In sip.conf under [general] add a register definition: orregister => fromuser@fromdomain:secret@host. Asterisk cmd Dial. Synopsis Attempts to establish a new outgoing connection on a channel, and then link it to the existing input channel.

Asterisk cmd Dial

Description Dial(type/identifier, timeout, options, URL)fo Dial(type1/identifier1[&type2/identifier2[&type3/identifier3... ] ], timeout, options, URL) RetryDial(announce|sleep|loops|Technology/resource[&Technology2/resource2...] [|[timeout][|[options][|URL]]]) Attempts to "dial out" on all the specified channels (each specified by a type and identifier) simultaneously. Note that on a successful connection, in the absence of the g and G modifiers (below), the Dial command does not return to allow execution of further commands for that extension in that context. Note: Up until and including Asterisk 1.2 the length of the Dial string cannot exceed about 240 characters (any exceeding characters will be truncated). VoiceMailMain (dialplan application) Version 1.0.9 and above.

VoiceMailMain (dialplan application)

Asterisk PBX configurations NOTE: This is only an example of what for you can use this application. Of course you can use it and for other things. iax.conf Configurations We need one registered user in iax.conf file. So, we have registered the user user1Type=friend means that this user can make and receive calls. Voicemail.conf Configurations We will create two contexts. Extensions.conf Configurations On the picture above you can see our extensions.conf file. 1) Variant 1 In this variant, when somebody dials 5455, the call will be answered by the Answer application. 2) Variant 2 In this variant, when somebody dials 5455, the call will be answered by the Answer application. 3) Variant 3 In this case, when somebody dials 5455, the call will be answered by the Answer application.

Why do iptables rules disappear when restarting my Debian system? WSKILLS.