Google Adsense

Tuesday, May 31, 2011

How to block access webconfig

you can use the software as root putty
way of setting up just a few computers that can access or configure webconfig ClearOS
how:
login using putty (CLI) as root

after login as root

type the following command => # iptables-I INPUT-p tcp - dport 81-j DROP (to block access webconfig)

and to give access rights webconfig from certain ip:

type the following command => # iptables-I INPUT-p tcp - source 192.168.1.100 - dport 81-j ACCEPT
(ip 192.168.1.100 purposes, only those who can access ip webconfig)

Port List Games Online

I want to share ports that are often used in games online.anda can configure the ports in these areas as required eg access bandwidth if the network difull ClearOS use as online games.
1.   PointBlank : tcp 39100,39110,39220,39190,49100, udp 40000-40010
2.   Ayo Dance : tcp 18901-18909
3.   FastBlack : tcp 6000-6001
4.   SealOnline : tcp 1818
5.   Dotta : tcp 6000-6152
6.   Perfect world : tcp 29000
7.   Free Style : tcp 10001-10011,40000, udp 40040-40500,1293,1479 (kayaknya blm fix nih)
8.   Lineage2 : tcp 7777
9.   GhostOnline : tcp 19101
10.   Yullgang : tcp 19000
11.   RF-Elven : tcp 27780
12.   Rohan : tcp 22100
13.   Zeus RO : tcp 5121
14.   IdolStreet : tcp 2001
15.   CrazyKart : tcp 9601-9602
16.   WOW AMPM : tcp 8085
17.   DriftCity : tcp 11011-11041
18.   GetAmped : tcp 13413
19.   RAN Online : tcp 5105
20.   CrossFire : tcp 10009, 13008, 16666, 28012, udp 12020-12080,13000 - 13080
21.   WarRock : tcp 5340-5352
22.   Rose Online : tcp 29200
23.   Return Of Warrior : tcp 10402
24.   CrazyKart 2 : tcp 9600
25.   Luna Online : tcp 15000-15002
26.   Runes Of Magic : tcp 16402-16502
27.   Fresh Ragnarok PS, www.freshro.org dst address 119.110.87.179 : 5171
28.   Tantra Online : tcp 3010 (tambahan bro s4ndy78)
29.   Heroes Of Newearth Incatamers chat server -> TCP 11031 game server -> UDP 11100-11125 VOIP -> UDP 11440-11460
30.   Atlantica : tcp 4300 , ip 203.89.147.0/24 link: http://atlantica.gemscool.com/
31.   ECO Online --> Port 12011 , 12110
32.   Cabal Indo --> Port 15001, 15002
33.   X-SHOT : tcp 7341-7350,7451 , udp 7777-7977,30000
34.   3 Kingdoms : UDP 42051-42052
35.   AVALON : tcp 9376-9377 (by Timun Group)
36.   Grand Chase : tcp 9300,9400,9700, udp 9401,9600

Thursday, May 19, 2011

Shutdown computer server with the power button

Shutdown computer server with the power button
If we ever use windows, then to menshutdown windows, enough
by pressing the power button once, then the system will shutdown normally.
In ClearOS, default if doing so is to restart the system, to change
to shutdown the system then do the following:
1. Edit the following file / etc / inittab
2. Find and change the code to be like below
...................
# Trap CTRL-ALT-DELETE
ca:: ctrlaltdel: / sbin / shutdown-h now


3. Save changes
Next, if you press the power button on the PC only once, then the system will
start routine to shutdown

Looking at the proxy server activity

Looking at the proxy server activity
To determine the course of a proxy, you can monitor squid access.log files
Press Alt + F2 to enter the CLI mode. Enter the root user and password, run
this command:

code :
# tail -f /var/log/squid/access.log



If the proxy path, you will find the display ongoing cache access during
there are clients who access the Internet.

To exit press Ctrl + C
Back to the server admin menu, press Alt + F1

Clearing the cache proxy manually

Clearing the cache proxy manually
Actually, the proxy cache is not necessary in the empty, because it will automatically
remove itself if the cache that has long reached a certain parameter, but
sometimes we want to clear the cache manually
1. Turn off the running squid

code :
#service squid stop 


2. Clear the cache of his

code :
#rm –rf /direktori_cache 
example : # rm –rf /var/spool/squid 


3. Create a swap again
code :
#squid -z

4. run squid
code :
#service squid start

Squid Delay Pools as a limiter download

Squid Delay Pools as a limiter download
If we want to limit the client in downloading the files with the extension
particular, the use squid delay pools.

How, from the server ClearOS press Alt + F2, enter user = root pwd = your root password,
we do edit via the CLI (Command Line Interface)

code
#vi /etc/squid/squid.conf 



press insert
enter the following syntax:

code:


acl lokal src 192.168.1.0/24 
acl ekstensiblok url_regex -i \.wmv \.mpg \.mpeg \.wma \.wav 
\.3gp \.3gpp \.avi \.dat \.aac \.ogg \.mp4 \.mp3 \.mov \.rar 
\.zip \.7z \.iso \.ace \.exe \.torrent \.mkv \.flv \.rm \.asf 
delay_pools 1 
delay_class 1 1 
delay_parameters 1 15000/1000000 
delay_access 1 allow ekstensiblok lokal 
delay_access 1 deny ALL 

Description:
- src is local ip address your clients, adjust themselves in the sample mean-192.168.1.1
192.168.1.254
- download the file extension you want on the block like the example above, you can reduce or
add their own
- 15000/1000000 delay parameter means that if the file is downloaded already exceed 1MB
then the download speed will drop to 15Kbyte/s.Sesuaikan own parameters according to
you.
Example: if I want to download files. mp3 the magnitude 4MB, then the first time
download will get the maximum bandwidth available, so it reaches 1MB
bandwidth will go down until rata2 15KBps aja until the download is complete.
When finished editing press the Esc
then save with: wq [enter]

restart squid
Code:

# service squid restart


Making Squid cache outside the default directory

Making Squid cache outside the default directory
Squid proxy cache server in ClearOS default located at / var / spool / squid.Jika us
want to use another partition or another hard disk as separate from the squid
system, then inevitably have to replace its cache directory.
The steps are as follows:
1. Create another partition (not a directory / folder you know, but partitions) on my hard drive, for example /    cache
2. Create a large volume, such as Ext3 12GB
3. Give access rights to the partition squidnya

code
# chown squid:squid /cache 



4. Edit the squid.conf file, the cache_dir, change its path to / cache, the other parameters do not need
replaced (if you do not understand the distribution of L1 and L2), let us change it later via
webconfig aja
5. Create swap Squid

code
# squid -z 



6. Login webconfig, adjust the parameters, but remember, the maximum cache size should not
maximized until the cache volume, make it 75% only, eg / Cache = 12GB, maximum
cache sizenya = 9GB
7. Run squid and set it to automatic re-loaded so that if a server restart. activate
transparent if necessary ...