07-29-2010, 09:20 PM
ini original source saat bejamz menggunakan mesin fedora di alienware na
kebetulan masih ada sesuai rekuest langsung saya copas
chek this out
Menggunakan Fedora Sebagai Router
Pasang Ethernet Card Kali Ini Kami Menggunakan TL-3200 dari Tp Link
Instal Driver (karena driver bawaanya masih beruba source code C kita harus menginstal compiler C dulu beserta dependensinya agar bisa kita compile dan instal)
Setting Modem ADSL Speedy dengan ppoe
Konfigurasikan Ip eth0 (Lan Card Yang Kita Gunakan Ke Modem ADSL)
buat sebuah file di
/etc/sysconfig/network-scripts/ifcfg-eth0
Lalu isikan dengan
# bejamz
DEVICE=eth0
HWADDR=00:E0:4D:8A:1A:00
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
PREFIX=24
GATEWAY=192.168.1.1
DNS1=203.130.208.18
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
ONBOOT=yes
USERCTL=no
Kemudian Setting Dns di
etc/resolv.conf
nameserver 203.130.208.18
Setting Ip Forwading
/etc/sysctl.conf
rubah net.ipv4.ip_forward = 0 menjadi net.ipv4.ip_forward = 1
Restart Network Dengan Perintah
/etc/init.d/network
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Test Dengan Ping Pada Gateway Atau Coba Browsing.
=====================================================================
Setting Auto_eth1 (Ethernet Card Yang Akan Dihubungkan Ke Client)
Sama Seperti Diatas
Buka /etc/sysconfig/network-scripts/ifcfg-eth1
Isi Dengan
HWADDR=00:27:19:F0:99:6A
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.6.100
PREFIX=24
DNS1=203.130.208.18
NAME="eth1"
UUID=75ecf8ab-f3f7-48f4-884e-37d19eb4f8a3
ONBOOT=yes
USERCTL=no
Restart Network Lagi
Matikan Iptables
/etc/init.d/iptables stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
Tambahkan Ip Tables Untuk Source nat Sesuai Dengan Settingan eth0 tadi
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.6.0/24 -j SNAT --to-source 192.168.1.2
Save Iptables
/sbin/iptables-save > /etc/sysconfig/iptables
Restart Iptables
/etc/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules: [ OK ]
Lalu Setting Client Jika Menggunakan Hub Atau Langsung Kabel LAN
Lansgung Aja gateway Nya Ke Ip Router Fedora Kami
Tapi Disini Kami Menambahkan Router Wifi Agar Bisa Dijadikan Hotspot
Catatan :
1.Kami membedakan Subnet Dengan Tujuan Agar Klient Tidak Bisa Masuk Modem Secara Langsung
2.Monitoring Bandwith
# yum -y install bwm-ng
# bwm-ng
3.Kami Juga menginstal Samba Untuk memudahkan Client Mengcopy File Dan Print Ke server
==============================================
Install apache, php, mysql dan phpmyadmin
Pertamaxzzz
yum list installed *httpd*
[root@lapoetra yum.repos.d]# yum list *httpd*
Loaded plugins: presto, refresh-packagekit
Installed Packages
httpd.i686 2.2.13-4.fc12 @rawhide
httpd-tools.i686 2.2.13-4.fc12 @rawhide
Available Packages
anyterm-httpd.i686 1.1.29-8.fc12 fedora
ebhttpd.i686 1.0-7.fc12 fedora
httpd.i686 2.2.14-1.fc12 updates
httpd-devel.i686 2.2.14-1.fc12 updates
httpd-manual.noarch 2.2.14-1.fc12 updates
httpd-tools.i686 2.2.14-1.fc12 updates
libmicrohttpd.i686 0.4.2-2.fc12 fedora
libmicrohttpd-devel.i686 0.4.2-2.fc12 fedora
libmicrohttpd-doc.noarch 0.4.2-2.fc12 fedora
lighttpd.i686 1.4.26-2.fc12 updates
lighttpd-fastcgi.i686 1.4.26-2.fc12 updates
lighttpd-mod_geoip.i686 1.4.26-2.fc12 updates
lighttpd-mod_mysql_vhost.i686 1.4.26-2.fc12 updates
mantis-config-httpd.noarch 1.1.8-3.fc12 updates
mogstored-backend-lighttpd.noarch 2.30-3.fc12 fedora
ocaml-ocamlnet-nethttpd.i686 2.2.9-15.fc12 fedora
ocaml-ocamlnet-nethttpd-devel.i686 2.2.9-15.fc12 fedora
system-config-httpd.noarch 5:1.4.6-1.fc12 fedora
tclhttpd.i686 3.5.1-21.fc12 fedora
thttpd.i686 2.25b-23.fc12 fedora
viewvc-httpd.noarch 1.1.5-1.fc12 updates
[root@lapoetra yum.repos.d]#
[root@lapoetra yum.repos.d]# yum info httpd
Loaded plugins: presto, refresh-packagekit
Installed Packages
Name : httpd
Arch : i686
Version : 2.2.13
Release : 4.fc12
Size : 2.7 M
Repo : installed
From repo : rawhide
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
Available Packages
Name : httpd
Arch : i686
Version : 2.2.14
Release : 1.fc12
Size : 804 k
Repo : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
Konfiguration apache
[root@lapoetra lapoetra]# /etc/init.d/httpd start
Starting httpd: [ OK ]
Buat menjadi Otomatis Service Berjalan Di Startt up
chkconfig httpd on
Instal PHP
yum install php
Instal Mysql
yum install mysql mysql-server
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql i686 5.1.46-1.fc12 updates 896 k
mysql-server i686 5.1.46-1.fc12 updates 8.6 M
Installing for dependencies:
perl-DBD-MySQL i686 4.013-2.fc12 fedora 153 k
perl-DBI i686 1.609-3.fc12 fedora 688 k
Jalankan service Mysql
/etc/init.d/mysqld start
menjadikan service berjalan tiap kali booting
chkconfig mysqld on
membuat username dan password mysql
mysqladmin -u root password bejamz
instal phpmyadmin
yum install phpmyadmin
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
phpMyAdmin noarch 3.2.5-1.fc12 updates 2.7 M
Installing for dependencies:
libmcrypt i686 2.5.8-9.fc12 fedora 90 k
php-mcrypt i686 5.3.2-2.fc12 updates 27 k
php-mysql i686 5.3.2-2.fc12 updates 72 k
php-pdo i686 5.3.2-2.fc12 updates 69 k
Restart Web Server
/etc/init.d/httpd restart
Apache Mysql Dan Phpmyadmin Siap Digunakan
DNS Server
yum install bind bind-libs bind-utils bind-chroot
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bind i686 32:9.6.2-3.P1.fc12 updates 3.3 M
bind-chroot i686 32:9.6.2-3.P1.fc12 updates 63 k
Updating:
bind-libs i686 32:9.6.2-3.P1.fc12 updates 794 k
bind-utils i686 32:9.6.2-3.P1.fc12 updates 169 k
Installing for dependencies:
dnssec-conf noarch 1.21-8.fc12 updates 51 k
python-dns noarch 1.7.1-2.fc12 fedora 175 k
Edit /etc/httpd/conf/httpd.conf
Buat Virtualhost Agar Klient Dapat Mengakses Localhost Kita
Instal FTP
yum install proftpd-mysql
kebetulan masih ada sesuai rekuest langsung saya copas
chek this out
Menggunakan Fedora Sebagai Router
Pasang Ethernet Card Kali Ini Kami Menggunakan TL-3200 dari Tp Link
Instal Driver (karena driver bawaanya masih beruba source code C kita harus menginstal compiler C dulu beserta dependensinya agar bisa kita compile dan instal)
Setting Modem ADSL Speedy dengan ppoe
Konfigurasikan Ip eth0 (Lan Card Yang Kita Gunakan Ke Modem ADSL)
buat sebuah file di
/etc/sysconfig/network-scripts/ifcfg-eth0
Lalu isikan dengan
# bejamz
DEVICE=eth0
HWADDR=00:E0:4D:8A:1A:00
TYPE=Ethernet
BOOTPROTO=static
IPADDR=192.168.1.2
PREFIX=24
GATEWAY=192.168.1.1
DNS1=203.130.208.18
NAME="System eth0"
UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
ONBOOT=yes
USERCTL=no
Kemudian Setting Dns di
etc/resolv.conf
nameserver 203.130.208.18
Setting Ip Forwading
/etc/sysctl.conf
rubah net.ipv4.ip_forward = 0 menjadi net.ipv4.ip_forward = 1
Restart Network Dengan Perintah
/etc/init.d/network
Shutting down interface eth0: [ OK ]
Shutting down loopback interface: [ OK ]
Disabling IPv4 packet forwarding: [ OK ]
Setting network parameters: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: [ OK ]
Test Dengan Ping Pada Gateway Atau Coba Browsing.
=====================================================================
Setting Auto_eth1 (Ethernet Card Yang Akan Dihubungkan Ke Client)
Sama Seperti Diatas
Buka /etc/sysconfig/network-scripts/ifcfg-eth1
Isi Dengan
HWADDR=00:27:19:F0:99:6A
TYPE=Ethernet
BOOTPROTO=none
IPADDR=192.168.6.100
PREFIX=24
DNS1=203.130.208.18
NAME="eth1"
UUID=75ecf8ab-f3f7-48f4-884e-37d19eb4f8a3
ONBOOT=yes
USERCTL=no
Restart Network Lagi
Matikan Iptables
/etc/init.d/iptables stop
Flushing all chains: [ OK ]
Removing user defined chains: [ OK ]
Resetting built-in chains to the default ACCEPT policy: [ OK ]
Tambahkan Ip Tables Untuk Source nat Sesuai Dengan Settingan eth0 tadi
/sbin/iptables -t nat -A POSTROUTING -o eth0 -s 192.168.6.0/24 -j SNAT --to-source 192.168.1.2
Save Iptables
/sbin/iptables-save > /etc/sysconfig/iptables
Restart Iptables
/etc/init.d/iptables restart
Flushing all current rules and user defined chains: [ OK ]
Clearing all current rules and user defined chains: [ OK ]
Applying iptables firewall rules: [ OK ]
Lalu Setting Client Jika Menggunakan Hub Atau Langsung Kabel LAN
Lansgung Aja gateway Nya Ke Ip Router Fedora Kami
Tapi Disini Kami Menambahkan Router Wifi Agar Bisa Dijadikan Hotspot
Catatan :
1.Kami membedakan Subnet Dengan Tujuan Agar Klient Tidak Bisa Masuk Modem Secara Langsung
2.Monitoring Bandwith
# yum -y install bwm-ng
# bwm-ng
3.Kami Juga menginstal Samba Untuk memudahkan Client Mengcopy File Dan Print Ke server
==============================================
Install apache, php, mysql dan phpmyadmin
Pertamaxzzz
yum list installed *httpd*
[root@lapoetra yum.repos.d]# yum list *httpd*
Loaded plugins: presto, refresh-packagekit
Installed Packages
httpd.i686 2.2.13-4.fc12 @rawhide
httpd-tools.i686 2.2.13-4.fc12 @rawhide
Available Packages
anyterm-httpd.i686 1.1.29-8.fc12 fedora
ebhttpd.i686 1.0-7.fc12 fedora
httpd.i686 2.2.14-1.fc12 updates
httpd-devel.i686 2.2.14-1.fc12 updates
httpd-manual.noarch 2.2.14-1.fc12 updates
httpd-tools.i686 2.2.14-1.fc12 updates
libmicrohttpd.i686 0.4.2-2.fc12 fedora
libmicrohttpd-devel.i686 0.4.2-2.fc12 fedora
libmicrohttpd-doc.noarch 0.4.2-2.fc12 fedora
lighttpd.i686 1.4.26-2.fc12 updates
lighttpd-fastcgi.i686 1.4.26-2.fc12 updates
lighttpd-mod_geoip.i686 1.4.26-2.fc12 updates
lighttpd-mod_mysql_vhost.i686 1.4.26-2.fc12 updates
mantis-config-httpd.noarch 1.1.8-3.fc12 updates
mogstored-backend-lighttpd.noarch 2.30-3.fc12 fedora
ocaml-ocamlnet-nethttpd.i686 2.2.9-15.fc12 fedora
ocaml-ocamlnet-nethttpd-devel.i686 2.2.9-15.fc12 fedora
system-config-httpd.noarch 5:1.4.6-1.fc12 fedora
tclhttpd.i686 3.5.1-21.fc12 fedora
thttpd.i686 2.25b-23.fc12 fedora
viewvc-httpd.noarch 1.1.5-1.fc12 updates
[root@lapoetra yum.repos.d]#
[root@lapoetra yum.repos.d]# yum info httpd
Loaded plugins: presto, refresh-packagekit
Installed Packages
Name : httpd
Arch : i686
Version : 2.2.13
Release : 4.fc12
Size : 2.7 M
Repo : installed
From repo : rawhide
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
Available Packages
Name : httpd
Arch : i686
Version : 2.2.14
Release : 1.fc12
Size : 804 k
Repo : updates
Summary : Apache HTTP Server
URL : http://httpd.apache.org/
License : ASL 2.0
Description: The Apache HTTP Server is a powerful, efficient, and extensible
: web server.
Konfiguration apache
[root@lapoetra lapoetra]# /etc/init.d/httpd start
Starting httpd: [ OK ]
Buat menjadi Otomatis Service Berjalan Di Startt up
chkconfig httpd on
Instal PHP
yum install php
Instal Mysql
yum install mysql mysql-server
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
mysql i686 5.1.46-1.fc12 updates 896 k
mysql-server i686 5.1.46-1.fc12 updates 8.6 M
Installing for dependencies:
perl-DBD-MySQL i686 4.013-2.fc12 fedora 153 k
perl-DBI i686 1.609-3.fc12 fedora 688 k
Jalankan service Mysql
/etc/init.d/mysqld start
menjadikan service berjalan tiap kali booting
chkconfig mysqld on
membuat username dan password mysql
mysqladmin -u root password bejamz
instal phpmyadmin
yum install phpmyadmin
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
phpMyAdmin noarch 3.2.5-1.fc12 updates 2.7 M
Installing for dependencies:
libmcrypt i686 2.5.8-9.fc12 fedora 90 k
php-mcrypt i686 5.3.2-2.fc12 updates 27 k
php-mysql i686 5.3.2-2.fc12 updates 72 k
php-pdo i686 5.3.2-2.fc12 updates 69 k
Restart Web Server
/etc/init.d/httpd restart
Apache Mysql Dan Phpmyadmin Siap Digunakan
DNS Server
yum install bind bind-libs bind-utils bind-chroot
================================================================================
Package Arch Version Repository Size
================================================================================
Installing:
bind i686 32:9.6.2-3.P1.fc12 updates 3.3 M
bind-chroot i686 32:9.6.2-3.P1.fc12 updates 63 k
Updating:
bind-libs i686 32:9.6.2-3.P1.fc12 updates 794 k
bind-utils i686 32:9.6.2-3.P1.fc12 updates 169 k
Installing for dependencies:
dnssec-conf noarch 1.21-8.fc12 updates 51 k
python-dns noarch 1.7.1-2.fc12 fedora 175 k
Edit /etc/httpd/conf/httpd.conf
Buat Virtualhost Agar Klient Dapat Mengakses Localhost Kita
Instal FTP
yum install proftpd-mysql
Code:
mencuri secara tidak langsung berarti memiliki




![[Image: hn-1.gif]](http://i733.photobucket.com/albums/ww337/biaz/hn-1.gif)


![[Image: v3ch4j.gif]](http://v3ch4j.com/v3/v3ch4j.gif)


![[Image: f8-infinity-banner-boundaries.png]](http://fedora.nicubunu.ro/banners/images/f8-infinity-banner-boundaries.png)
![[Image: Alzeanet.1.gif]](http://feeds.feedburner.com/Alzeanet.1.gif)

