Jump to content
Sign in to follow this  
game-game

Dhcp Server Dalam Freebsd

Recommended Posts

map je, redirect tak perlu.

Cuba ikut contoh yg encik trunasuci bagi tu (ganti ex0 dgn xl0). Lepas tu paste output ipnat -l.

Oh ye, jangan lupa disable natd and ipfw dalam /etc/rc.conf

Share this post


Link to post
Share on other sites

ek.. trunasuci,

kenape aku dapat error

dalam link yang ko bagi tu ade cakap nak guide untuk enable ipnat ni tapi aku scroll takde.. :wacko:

by the time, aku search jap psl nak enable ni.

haaa.. dah jmpe dah.. jap.. try jap..

http://www.phildev.net/ipf/IPFfreebsd.html#freebsd10

err kalu tak silap la.. link tu guide untuk NetBSD.. so kat rc.conf ada "lain cikit".. ko kene follow rc.conf yg aku paste kat jawapan sebelum ni, bukan ikut sebijik guide tu.. sebab tuh untuk NetBSD.. :)

Share this post


Link to post
Share on other sites

Oh ye, jangan lupa disable natd and ipfw dalam /etc/rc.conf

hmm? mmg takde ipfw, so aku tak perlu edit pape.. tapi aku commentkan dulu natd_enable, natd_interface, natd_flags,

output kat bawah,

List of active MAP/Redirect filters:

map xl0 192.168.0.0/24 -> 0/32 proxy port ftp ftp/tcp

map xl0 192.168.0.0/24 -> 0/32 portmap tcp/udp 10000:20000

map xl0 192.168.0.0/24 -> 0/32

List of active sessions:

still tak bleh.. huhu.. so, any idea? hmm.. aku rase, aku stuck kat firewall atau nat jer skrang ni.. aku assume jer r.. tak tau btol ke tak.. haha..

erm.. satu lagi.. aku try tracert www.google.com dari win pc, output die mcm unable to resolve..

ni ade satu lagi nak tambah,

ble aku ping dari windows client, aku ping card xl0, 10.100.100.227 bleh plak.. huhu..

Edited by gamekiller

Share this post


Link to post
Share on other sites

Ni latest question yang aku nak tanye,

dari pc windows client , kenape aku tracert 10.100.100.227 output die takde 192.168.0.1 ?

cmni

1 <1ms <1ms <1ms 10.100.100.227

bukan sepatutnye lalu ip gateway dulu ke?

Share this post


Link to post
Share on other sites

hmm? mmg takde ipfw, so aku tak perlu edit pape.. tapi aku commentkan dulu natd_enable, natd_interface, natd_flags,

output kat bawah,

still tak bleh.. huhu.. so, any idea? hmm.. aku rase, aku stuck kat firewall atau nat jer skrang ni.. aku assume jer r.. tak tau btol ke tak.. haha..

erm.. satu lagi.. aku try tracert www.google.com dari win pc, output die mcm unable to resolve..

ni ade satu lagi nak tambah,

ble aku ping dari windows client, aku ping card xl0, 10.100.100.227 bleh plak.. huhu..

kalu ikut2 la, mmg patutnya dah jalan tu.. tp nampak mcm sangkut kat DNS saja.. cuba setkan DNS untuk client tu ( via manual ataupun DHCP ) ikut DNS yg nic xl0 dpt dr DHCP lab.. kadang2 firewall route issue gak dia taknak local pi direct ke DNS server luar/port 53, tp nak thru DNS dalaman saja..

try yg tuh then try ping/nslookup ip luar

ish.. tak dapat lagi lah.. huhu.. dalam windows output die, unknown host ble aku ping..

aku refer site ni..

http://www.freebsddiary.org/natrules.php#redirect

mcm miss part redirect tu? atau tak perlu?

cuba buang nih ( kalau ada )dari rc.conf:

firewall_enable="YES"

firewall_type="OPEN"

cuba paste fully ko punye rc.conf :)

atau kalau payah2 sgt meh aku pi tpt ko ( kalu KL le ) dan tgk sendiri.. tp kos perjalanan kene tanggung la ehehehe

Share this post


Link to post
Share on other sites

kalu ikut2 la, mmg patutnya dah jalan tu.. tp nampak mcm sangkut kat DNS saja.. cuba setkan DNS untuk client tu ( via manual ataupun DHCP ) ikut DNS yg nic xl0 dpt dr DHCP lab.. kadang2 firewall route issue gak dia taknak local pi direct ke DNS server luar/port 53, tp nak thru DNS dalaman saja..

try yg tuh then try ping/nslookup ip luar

cuba buang nih ( kalau ada )dari rc.conf:

firewall_enable="YES"

firewall_type="OPEN"

cuba paste fully ko punye rc.conf :)

orait, no problem, esok aku cont aku punyer kerje.. harap2 ok jer.. tapi kalau tak silap aku,aku ade try letak dns dhcp lab, cam tak ok gak..

atau kalau payah2 sgt meh aku pi tpt ko ( kalu KL le ) dan tgk sendiri.. tp kos perjalanan kene tanggung la ehehehe
aha..tu last option aku.. kehkehkeh.. aku dkt UPM jer ni..ko keje mane?

Share this post


Link to post
Share on other sites

orait, no problem, esok aku cont aku punyer kerje.. harap2 ok jer.. tapi kalau tak silap aku,aku ade try letak dns dhcp lab, cam tak ok gak..

aha..tu last option aku.. kehkehkeh.. aku dkt UPM jer ni..ko keje mane?

Kije KL :).. takyah la sebut nama company ke jawatan apa ke.. pecacai paling bawah je.. :)

Share this post


Link to post
Share on other sites

eh eh.. dah boleh la.. haha.. aku letak DNS lab ni kat dalam pc client aku.. patut r.. rpenye kene resolve dulu baru bleh keluar.. camtu ke? so, mchammer, camne next step? dhcp..

Share this post


Link to post
Share on other sites

hmm...skrang ni aku tgh install dhcp apps plak, ni step aku, kalau salah, guide ye..

- cd /usr/ports/net/isc-dhcp3

- make install clean

....tunggu jap...tgh install....

hmmm. dah settle dah...

aku skrang ikut guide ni..

http://www.onlamp.com/pub/a/bsd/2003/05/01...BSD_Basics.html

so kalau ade link lagi baik, inform aku...

oh ye, yg atas cam tak complete sngat

so aku gne yang bawah ni,

http://wpram.com/log/2005/04/08/installing_dhcp/

hasilnye? yes, akhirnye jadi gak dhcp server aku.. thanks rakan2.. sangat2 berterima kasih.. :rolleyes:

hmm.. aku nak tanye lagi, kalau nak setup dns kat dalam pc yang same bleh ke? aku nak dns aku sndiri, taknak gne lab punyer.. ape pndapat korang?

p/s: kalau rase dah lari dari tajuk bgtau ye, aku ingat nak tukar tajuk dhcp server dalam freebsd kepada pc server je.. so bleh r jadi ref mase depan..

Edited by gamekiller

Share this post


Link to post
Share on other sites

hmm...skrang ni aku tgh install dhcp apps plak, ni step aku, kalau salah, guide ye..

- cd /usr/ports/net/isc-dhcp3

- make install clean

....tunggu jap...tgh install....

hmmm. dah settle dah...

aku skrang ikut guide ni..

http://www.onlamp.com/pub/a/bsd/2003/05/01...BSD_Basics.html

so kalau ade link lagi baik, inform aku...

oh ye, yg atas cam tak complete sngat

so aku gne yang bawah ni,

http://wpram.com/log/2005/04/08/installing_dhcp/

hasilnye? yes, akhirnye jadi gak dhcp server aku.. thanks rakan2.. sangat2 berterima kasih.. :rolleyes:

hmm.. aku nak tanye lagi, kalau nak setup dns kat dalam pc yang same bleh ke? aku nak dns aku sndiri, taknak gne lab punyer.. ape pndapat korang?

p/s: kalau rase dah lari dari tajuk bgtau ye, aku ingat nak tukar tajuk dhcp server dalam freebsd kepada pc server je.. so bleh r jadi ref mase depan..

kalu DNS, tuh cerita panjang.. tapi kalu DNS biasa2 as resolver je senang gakla.. mmg satu server boleh taruk mcm2.. even aku pun besa wat camtu.. satu server as dialer, firewall, email, web, DNS, DHCP, SAMBA shares untuk installer/av updates utk windows, FTP, squid cache dan macam2..

pentiumII..64/128mb ram.. FreeBSD 4.x/5.x/6.x..

Share this post


Link to post
Share on other sites
gamekiller ko edit /etc/resolv.conf ke utk DNS tuh ?
hmmm...aku tak edit pape lg untuk dns tu.. sbb mcm mchammer cakap, dns tu buat kemudian..err..camne nak edit dns tu? aku mmg nak buat dns biase je.. just taknak ade lab punye dns, so nmpak sket r sume ip tu lain dari lab.. hmm.. trunasuci, ape dns 'luar biase' selain dari resolver je?

Share this post


Link to post
Share on other sites

Ikut je contoh ni:

http://www.freebsd.org/doc/en_US.ISO8859-1...etwork-dns.html

Contoh /etc/namedb/named.conf

options {
    directory   "/etc/namedb";
    pid-file    "/var/run/named/pid";
    dump-file   "/var/dump/named_dump.db";
    statistics-file "/var/stats/named.stats";
    listen-on   { 127.0.0.1; 192.168.0.1};
    forward only;

    // Sila letak DNS lab
    forwarders {
        10.10.10.1;
    };
};

zone "." {
    type hint;
    file "named.root";
};

zone "0.0.127.IN-ADDR.ARPA" {
    type master;
    file "master/localhost.rev";
};

// RFC 3152
zone "1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.
0.0.0.0.IP6.ARPA" {
    type master;
    file "master/localhost-v6.rev";
};

Edited by mchammer

Share this post


Link to post
Share on other sites

orait.. dah edit dah.. pastu ape nak kene tukar lagi? camne nak test dns aku? jadi ke tak?

aku dah restart /etc/rc.d/named force restart..

tapi kuar error could not configure root hints from 'name.root': file not found.

p/s: aku cbe buat sndiri dulu.. yang atas tu just nak bagitau je ape error yang aku dapat.. so, nampak lah aku ni mcm tak 'disuap' je.. hehehehe...

Edited by gamekiller

Share this post


Link to post
Share on other sites

yang sh make-localhost? tak dapat r..

'Cant open make-localhost:No such file or directory'

aku pelik gak..patut ade dalam /etc/namedb..

aku type locate make-localhost pon tak jumpe..

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...