Arsip untuk fedora

Configuring VLANs Under Fedora

Posted in LiNUX, Tutorsial dengan kaitan (tags) , , on Agustus 12, 2007 by Ronald Gautama

The configuration of VLANs under FC/RHEL/CentOS is something that I always end up looking in the “ifup” script and experimenting around with. This is made worse by there being two different conventions that can be used for the interface naming. Here’s how I set up VLANs.

First of all, the base interface needs to be configured. Usually, it’s already got at least a stub file, which needs to be modified to have the following elements:

DEVICE=eth0 # use real interface name here
BOOTPROTO=static
HWADDR=AA:17:31:9C:8D:BC # use real MAC address here
ONBOOT=no
TYPE=Ethernet
IPADDR=0.0.0.0
NETMASK=255.255.255.0

In this example, I am configuring the device “eth0″ (the file /etc/sysconfig/network-scripts/ifcfg-eth0″, with the MAC address of “AA:17:31:9C:8D:BC”. You will need to plug in your system’s values for these two lines, and the rest should be left the same.

For “vlanX” Interfaces
If you want your interfaces named “vlanX”, use this section. The next section describes how to set it up for interfaces named “eth0.X”. The benefit of vlanX naming is that if you only have one VLAN name-space, you don’t have to care about which interface has the VLAN tagging enabled on it. If you move the physical interface, the vlan interface names stay the same, so you don’t have to modify firewall rules, etc…
Baca selebihnya »

Static Route Fedora

Posted in LiNUX, Tutorsial dengan kaitan (tags) , on Februari 27, 2007 by Ronald Gautama

Pada RedHat versi lawas untuk membuat static route, kita dapat menambahkan entry di file /etc/sysconfig/static-routes
misalnya untuk meroute 192.168.0.0/24 to 192.168.6.240 kita tambahkan entry sbg berikut :
eth0 net 192.168.0.0 netmask 255.255.255.0 gw 192.168.6.240

Untuk membuat Static Route di Fedora, kita akan buat file di /etc/sysconfig/network-scripts untuk setiap ethernet interface dimana kita akan mengadakan static route.

touch /etc/sysconfig/network-scripts/route-eth0

syntax untuk file ini berbeda dengan cara tradisional yg digunakan pada /etc/sysconfig/static-routes.
Redhat has yet to document the change on their web site as of June 2003.
Syntax based on a usenet post go to /etc/sysconfig/network-scripts, make a file called route-devicename (ex: route-eth0) and populate it with your static routes for that device.

so kalo kita ingin membuat static route ke network 192.168.0.0/24 melalui 152.3.182.5 type:

192.168.0.0/24 via 152.3.182.5

Mengkonfigurasi Squid di Fedora

Posted in LiNUX, Tutorsial dengan kaitan (tags) , , on Februari 27, 2007 by Ronald Gautama

Ini tutorial sederhana teruntuk Mr Inoex @ Merauke, Papua, manual ini dibuat dengan tergesa-gesa. jadi
mohon maaf bila setelah membaca anda menjadi terganggu jiwanya.
OKE let get started

Squid standard dng ACL berbasis IP

Pada instalasi Fedora sebaiknya matikan fitur SELinux dan firewall, kecuali anda sudah mengerti bagaimana mengkonfigurasi firewall (iptables)

pastikan paket squid sudah terinstall di system anda, (cek dng rpm)

# rpm -qa | grep squid

Langkah pertama adalah mengkonfigurasi squid.conf

#vi /etc/squid/squid.conf (atau gunakan editor favorit anda)

sesuaikan tag-tag berikut ini sesuai dengan kebutuhan anda File konfigurasi ini disetting berurutan dari atas kebawah

Baca selebihnya »