Category Archives: Linux

Squid LDAP Auth and WPAD


-System that used:
CentOS 6.2, squid v3.1x, LDAP Server, Linux DHCP server, httpd/apache server for wpad.dat

-Make sure squid can talk to LDAP server
# /usr/lib64/squid/squid_ldap_auth -b "dc=tahubachem,dc=local" -f "uid=%s" -h 192.168.10.6
Username password (Hit Enter)
(Result)

Continue reading

PDC Samba LDAP CentOS 6.2


References:
http://www.server-world.info/en/note?os=CentOS_6&p=ldap&f=1
http://www.server-world.info/en/note?os=CentOS_6&p=ldap&f=2
http://www.server-world.info/en/note?os=CentOS_6&p=samba&f=4

Very good tutorials on references link above, im just practice them..

Skenario:

IP Address Server: 192.168.10.6

I. Install OpenLDAP
# yum -y install openldap-servers openldap-clients
# vi /etc/sysconfig/ldap
Line 12: uncomment and change

# Run slapd with -h "... ldapi:/// ..."
# yes/no, default: yes
SLAPD_LDAPI=yes

 
# vi /etc/openldap/slapd.conf
Create new

pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args

 
# rm -rf /etc/openldap/slapd.d/*
# slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d

config file testing succeeded

 
Continue reading

Setup squidguard Centos 6.2


-Install squidguard & squidguard-blacklist from rpmforge repo
# yum -y --enablerepo=rpmforge install squidguard squidguard-blacklists

-Copy squidguard.cgi access denied page if you want to use it..
# cp /usr/share/doc/squidguard-1.3/squidGuard.cgi /var/www/cgi-bin/
# cp /usr/share/doc/squidguard-1.3/squidGuard-simple.cgi /var/www/cgi-bin/

Continue reading

Proxy gateway CentOS 6


I. Skenario:
Internet Router — eth0:192.168.0.11:cumi.bachem.local:eth1:192.168.10.1 — client

II. Setting Statik IP Address,DNS, etc
# system-config-network-tui

or

-Via CLI, setting ip address eth0
# cd /etc/sysconfig/network-scripts/
# vi ifcfg-eth0

DEVICE=eth0
HWADDR=32:E8:71:6C:BF:E7
NM_CONTROLLED=yes
ONBOOT=yes
IPADDR=192.168.0.11
BOOTPROTO=static
NETMASK=255.255.255.0
TYPE=Ethernet
GATEWAY=192.168.0.1
IPV6INIT=no
USERCTL=no

 
Continue reading

Example Static Route CentOS 5


References:
http://www.ehowstuff.com/how-to-add-persistent-static-routes-in-centos-5-6/
http://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-networkscripts-static-routes.html

Skenario:
-Membuat LAN kecil(30 user) untuk user hotspot PC training dan hotspot untuk tamu.

Topologi (existing):
Proxy Squid Gateway CentOS 5:eth0:192.168.0.254 — 192.168.0.240:eth1:Mikrotik RB750:eth2:192.168.88.1 — LAN Training & Hotspot
Continue reading

Install Webmin untuk memudahkan manajemen Linux CentOS


Detail:
http://www.webmin.com/rpm.html

Using the Webmin YUM repository
-Download & import webmin gpg key
# mkdir /opt/webmin
# cd /opt/webmin
# wget http://www.webmin.com/jcameron-key.asc
# rpm --import jcameron-key.asc

-Add webmin repository
# vi /etc/yum.repos.d/webmin.repo

[webmin]
name=Webmin Distribution Neutral
#baseurl=http://download.webmin.com/download/yum
mirrorlist=http://download.webmin.com/download/yum/mirrorlist
enabled=0

 
-Install webmin via yum
# yum --enablerepo=webmin install webmin

Enable port 10000
# iptables -A INPUT -p tcp -m tcp --dport 10000 -j ACCEPT
# service iptables save
# service iptables restart

-Tes akses server menggunakan webmin. Buka browser ketik: http://ip_server:10000