Mengedit firewall Linux Centos agar Dapat mengakses Webmin dari non localhost

Saya menggunakan Linux Centos 5.5. Setelah menginstal WebMin, ternyata webmin hanya dapat diakses melalui local host.

Setelah cari-cari, ternyata port 10000 belum dibuka. Untuk membuka port tersebut, petunjuk berikut yang saya lakukan :

Buka file /etc/sysconfig/iptables

Code:
# Firewall configuration written by system-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 25 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT

sebelum 2 baris terakhir :
A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited

silakan tambahkan baris berikut :
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 10000 -j ACCEPT
Baris diatas akan membuka port 10000

Installasi LAMP (Linux, Apache, MySQL, PHP) di CentOS 5.5

Update
Pertama, pastikan bahwa semua modul atau paket adalah versi yang terakhir dengan cara :
yum check-update
yum update

Apache
Selanjutnya, kita akan menginstal Apache, set untuk berjalan pada startup, dan akhirnya benar-benar memulai servis tersebut:
yum install httpd
chkconfig --add httpd
service httpd start

MySQL
Instalasi MySQL sangat mirip dengan menginstal Apache, kecuali kita memiliki langkah tambahan menjalankan wizard setup dasar. Ketika diminta oleh mysql_secure_installation, saya sarankan menghapus pengguna anonim, pelarangan login root remote, menghapus database test.
yum install mysql mysql-server
chkconfig --add mysqld
service mysqld restart
mysql_secure_installation

PHP
Akhirnya, kita akan menginstal modul PHP dan PHP untuk MySQL:
yum install php php-mysql

Tidak mau Edan bersama Three

Terima kasih. Biaya Harian Rp99/hari untuk menikmati program Tarif Edan, Rp99/menit ke semua operator, telah berhasil kami kenakan dari nomor anda. Info 200

Ada-ada saja. Mengajak edan tidak tanya-tanya! Inilah perilaku kebanyakan operator saat ini. Kasih tarif murah, lha, kok jadi edan. Belum lagi oparator yang satu dengan julukan “monyet” dan “gila”-nya.

Mengapa mereka semua suka istilah-istilah yang negatif? Apakah begitu bobroknya, sehingga kata-kata jorok dan kotor, tidak lagi terasa janggal di telinga?

Berhenti dari EDAN:

  1. Ketik MAU<spasi>BAYAR1, kirim ke 123.
    Anda akan menerima balasan “Ketentuan: Semua Bonus Pulsa Anda akan hangus. Pulsa Utama tetap.Kirim MAU<spasi>BAYAR1OK ke 123.Info 200
  2. KETIK MAU<spasi>BAYAR1OK, kirim ke 123 (itu bukan sepuluh, tetapi 1 dan huruf “O”).
    Anda akan mendapat balasan “Registrasi Anda berhasil!Cukup Nelpon2X ke sesama (Rp.399/Mnt+PPN) dan stlhnya Gratis 120 menit seharian ke semua TRI.Pemakaian wajar.Info200“. Mungkin balasan terkhir ini akan berbeda, sesuai dengan PROMO THREE.

Jangan mau jadi EDAN, GILA atau jadi Monyet ya….!

 

 

 

How to turn on automatic logon in Windows


Use Registry Editor to turn on automatic logon

Important This
section, method, or task contains steps that tell you how to modify the
registry. However, serious problems might occur if you modify the registry
incorrectly. Therefore, make sure that you follow these steps carefully. For
added protection, back up the registry before you modify it. Then, you can
restore the registry if a problem occurs. For more information about how to back
up and restore the registry, click the following article number to view the
article in the Microsoft Knowledge Base:


322756
How to back up and
restore the registry in Windows



To use Registry Editor (Regedt32.exe) to turn on automatic logon, follow these
steps:

  1. Click Start,
    and then click Run.
  2. In the Open box,
    type Regedt32.exe, and then press ENTER.
  3. Locate the
    following subkey in the registry:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows
    NT\CurrentVersion\Winlogon
  4. Double-click
    the DefaultUserName entry,
    type your user name, and then click OK.
  5. Double-click
    the DefaultPassword entry,
    type your password, and then clickOK.NOTE:
    If the DefaultPassword value
    does not exist, it must be added. To add the value, follow these steps:


    1. On the Edit menu,
      click New,
      and then point to String
      Value
      .
    2. Type DefaultPassword,
      and then press ENTER.
    3. Double-click DefaultPassword.
    4. In the Edit
      String
      dialog, type your
      password and then click OK.

    NOTE: If no DefaultPassword
    string is specified, Windows automatically changes the value of the AutoAdminLogon key
    from 1 (true) to 0 (false), disabling the AutoAdminLogon feature.


  6. On the Edit menu,
    click New,
    and then point to String
    Value
    .
  7. Type AutoAdminLogon,
    and then press ENTER.
  8. Double-click AutoAdminLogon.
  9. In the Edit
    String
    dialog box, type 1 and
    then click OK.
  10. Quit
    Registry Editor.
  11. Click Start,
    click Shutdown,
    and then type a reason in the Comment text
    box.
  12. Click OK to
    turn off your computer.
  13. Restart your
    computer. You can now log on automatically.

Source : http://support.microsoft.com/kb/324737

Date and Time Format Patterns

Date and Time Format Patterns

Copas from :

http://authors.aspalliance.com/aspxtreme/sys/globalization/demos/ DateTimeFormatInfoGetAllDateTimePatterns.aspx

All the patterns:

0

MM/dd/yyyy

09/15/2010

1

dddd, dd MMMM yyyy

Wednesday, 15 September
2010

2

dddd, dd MMMM yyyy HH:mm

Wednesday, 15 September
2010 00:35

3

dddd, dd MMMM yyyy hh:mm
tt

Wednesday, 15 September
2010 12:35 AM

4

dddd, dd MMMM yyyy H:mm

Wednesday, 15 September
2010 0:35

5

dddd, dd MMMM yyyy h:mm
tt

Wednesday, 15 September
2010 12:35 AM

6

dddd, dd MMMM yyyy
HH:mm:ss

Wednesday, 15 September
2010 00:35:07

7

MM/dd/yyyy HH:mm

09/15/2010 00:35

8

MM/dd/yyyy hh:mm tt

09/15/2010 12:35 AM

9

MM/dd/yyyy H:mm

09/15/2010 0:35

10

MM/dd/yyyy h:mm tt

09/15/2010 12:35 AM

11

MM/dd/yyyy HH:mm:ss

09/15/2010 00:35:07

12

MMMM dd

September 15

13

MMMM dd

September 15

14

yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss.fffffffK

2010-09-15T00:35:07.4151985-04:00

15

yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss.fffffffK

2010-09-15T00:35:07.4151985-04:00

16

ddd, dd MMM yyyy
HH’:’mm’:’ss ‘GMT’

Wed, 15 Sep 2010 00:35:07
GMT

17

ddd, dd MMM yyyy
HH’:’mm’:’ss ‘GMT’

Wed, 15 Sep 2010 00:35:07
GMT

18

yyyy’-‘MM’-‘dd’T’HH’:’mm’:’ss

2010-09-15T00:35:07

19

HH:mm

00:35

20

hh:mm tt

12:35 AM

21

H:mm

0:35

22

h:mm tt

12:35 AM

23

HH:mm:ss

00:35:07

24

yyyy’-‘MM’-‘dd
HH’:’mm’:’ss’Z’

2010-09-15 00:35:07Z

25

dddd, dd MMMM yyyy
HH:mm:ss

Wednesday, 15 September
2010 00:35:07

26

yyyy MMMM

2010 September

27

yyyy MMMM

2010 September

Continue reading “Date and Time Format Patterns” »

RSS
Follow by Email
Facebook
Twitter
Visit Us
Follow Me
INSTAGRAM