Disable GUI


Disable GUI

vi /etc/inittab

ganti "5" to "3" in the following line:
id:5:initdefault:

kemduian
id:3:initdefault:

dan restart via text mode ;)

*Config firewall

buka port 80

buka flle /etc/sysconfig/iptables:
 # nano /etc/sysconfig/iptables
 tambahkan berikut ini:
 -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
 simpan dan tutup. Restart iptables:
 # /etc/init.d/iptables restart

buka port 110

dan tambahkan perintah berikut: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 110 -j ACCEPT

buka port 143

tambahkan: -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 143 -j ACCEPT

Restart service iptables

# service iptables restart

yakinkan port nya terbuka

netstat -tulpn | less yakin kan iptable membuka port 80 / 110 / 143 koneksi: iptables -L -n

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s