Saturday, February 17, 2007

Proxy

This summary is not available. Please click here to view the post.

PC Routing

Step by step making a Pc Routing

created by : clownx_master w/ his beautyslave : Shina

1. buat ip berbeda d setiap eth0 dan eth1 mis:192.168.0.2 & 192.168.1.2
2. masuk konsole dan ketik "route add default gw 192.168.0.2 "
3. edit file di "/etc/sysconfig/network-scripts/ifcfg-eth0 dan eth1"
4. tambain baris device=eth0, bootproto=static, onboot=yes, ipaddr=192.168.0.2, netmask=/24, broad=192.168.0.255, network=192.168.0.0--------> eth0
5. tambain baris device=eth0, bootproto=static, onboot=yes,ipaddr=192.168.1.2, netmask=/24, broad=192.168.1.255, network=192.168.1.0--------> eth1
6. vi file di /etc/sysconfig/network
7. muncul file window n tambain gatewaydev=eth0, forward_ipv4=yes, networking=yes, gateway=192.168.0.2---> save file itu
8. #service network restart
9. u/ NAT :#modprobe iptables_nat
#modprobe ip_conntrack_ftp etho eth1
#modprobe ip_conntrack_irc eth0 eth1
#modprobe ip_nat_ftp eth0 eth1
#modprobe ip_nat_irc eth0 eth1
10. u/ mengaktifkan ip forwarding : #echo 1 > /proc/sys/net/ipv4/ip_forward
11. u/ membolehkan masquerade : #iptables -t nat -A PREROUTING -s 192.168.0.0/24 -j MASQUERADE
12. u/ membolehkan ip forwarding melewati firewall : #iptables -A FORWARD -s 192.168.0.0/24 -J ACCEPT
13. #iptables-save

Sunday, December 31, 2006

Linux : Fedora Core 5 as a server

now we meet again,.,,

here i will guide you trough to the easy step making your own server,,,, here we go...
I make this in a part...
===========================================================
All configuration here use mc and running on Fedora Core 5

##########################################################

enter console and type mc

##########################################################

dhcpd.conf

============================

ddns-update-style none;

subnet 192.168.0.0 netmask 255.255.255 {
option routers 192.168.0.1;
option subnet-mask 255.255.255.0;

option domain-name "clownx.net";
option domain-name-server 192.168.0.1;
option netbios-name-server 192.168.0.1;
option nis-domain "clownx.net";

range dynamic-bootp 192.168.0.2 192.168.0.10;
default-lease-time 21600;
max-lease-time 43200;
}
=====================================
save with F10
and test with comman dhcpd chk
then start with service dhcpd restart
=====================================

Named.conf
===============================================
add new zone by entering string like this one :
===============================================
zone "clownx.net" IN {
type master;
file "rs.db";
};

zone "0.168.192" IN {
type master;
file "rv.db";
};
==========================================================
Under /var/named/chroot/var/named, make file rs.db & rv.db
==========================================================
touch rs.db
and then edit that file :

$TTL 86400;
@ IN SOA @ root.clownx.net.(
1 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ); minimum cache ttl

IN NS ns.clownx.net.
IN MX 1 mx.clownx.net.

@ IN A 192.168.0.1
pop IN A 192.168.0.1
smtp IN A 192.168.0.1
www IN A 192.168.0.1
ftp IN A 192.168.0.1
mx IN A 192.168.0.1
mail IN CNAME mx.clownx.net.
=============
save with F10
=============
============================
make file rv.db
touch rv.db
and then edit that file :
============================
$TTL 86400
@ IN SOA @ root.clownx.net.(
1 ; serial
3H ; refresh
15M ; retry
1W ; expiry
1D ); minimum cache ttl

IN NS clownx.net.
IN MX 1 mail.clownx.net.
1 IN PTR ww.clownx.net.
================================
save with F10
start with service named restart
================================