To set up ACL’s based on MAC address:
Open squid.conf:
# vi /etc/squid/squid.conf
Local acl, section and append ACL as follows:
acl macf1 arp mac-address
acl macf2 arp 00:11:22:33:44:55
http_access allow macf1
http_access allow macf2
http_access deny all
Save and close the file. Restart squid server:
# /etc/init.d/squid restart
In Fedora Core and RedHat Enterprise or CentOS, edit /etc/selinux/config and change the SELINUX line to SELINUX=disabled
That’s all.
By default the size of private memory chunk used by each OpenSIPS process is 1 MB.
To increase the size of private memory you need to compile OpenSIPS from sources. Once you get the sources from SVN or the opensips.org’s download site, do the following steps:
- edit the file “config.h” and search for the next lines:
/*used only if PKG_MALLOC is defined*/
#define PKG_MEM_POOL_SIZE 1024*1024
- change the value of PKG_MEM_POOL_SIZE to desired size, for example to have 4MB of private memory:
#define PKG_MEM_POOL_SIZE 4*1024*1024
- recompile and reinstall OpenSIPS
make all; make install;
To increase the share memory size use ‘-m’ command line parameter of OpenSIPS.
opensips -m 256
# this will run OpenSIPS with 256MB of share memory
You have to download your project and place to a folder.
$ tar xzf project.tar.gz
$ cd project
$ git init-db
This will initialize your project on git.now you have to add files which will monitored via git.
$ git add .
these means git will monitor all files.
$ git commit -a
This will prompt a message to commit.
Try modifying some files, then run
$git diff
to review your changes.
December 19th, 2009
emran
You can create tar.gz file with the following command.DO NOT ENTER / after the directory name.
tar -cvzf test.tar.gz test
From the root prompt on your server, invoke the CPAN shell:
# perl -MCPAN -e shell
Once the Perl interpreter has loaded (and been configured), you can install modules with: install MODULENAME.
The first thing you should do is upgrade your CPAN:
cpan> install Bundle::CPAN
Once it is completed, type:
cpan> reload cpan
Now, enter the following command to retrieve all of the required modules:
cpan> install DateTime
Note
Be aware that after freshly installing make / gcc, your perl installation will not necessarily detect it. This means module installation will still fail during the 'make' stage. You may need to invoke the CPAN shell and run the setup routine again, to point to the location of make:
# perl -MCPAN -e shell CPAN
cpan> o conf make /usr/bin/make
cpan> o conf commit
execute this in your shell before you start Application
ulimit -c unlimited
ulimit -d unlimited
ulimit -f unlimited
ulimit -i unlimited
ulimit -n 999999
ulimit -q unlimited
ulimit -u unlimited
ulimit -v unlimited
ulimit -x unlimited
ulimit -s 244
ulimit -l unlimited