game-game 0 Report post Posted February 20, 2008 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#redirectmcm miss part redirect tu? atau tak perlu? Quote Share this post Link to post Share on other sites
mchammer 0 Report post Posted February 20, 2008 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 Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted February 20, 2008 ek.. trunasuci,kenape aku dapat error dalam link yang ko bagi tu ade cakap nak guide untuk enable ipnat ni tapi aku scroll takde.. by the time, aku search jap psl nak enable ni.haaa.. dah jmpe dah.. jap.. try jap..http://www.phildev.net/ipf/IPFfreebsd.html#freebsd10err 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.. Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 21, 2008 (edited) Oh ye, jangan lupa disable natd and ipfw dalam /etc/rc.confhmm? 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/tcpmap xl0 192.168.0.0/24 -> 0/32 portmap tcp/udp 10000:20000map xl0 192.168.0.0/24 -> 0/32List 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 February 21, 2008 by gamekiller Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 21, 2008 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 ?cmni1 <1ms <1ms <1ms 10.100.100.227bukan sepatutnye lalu ip gateway dulu ke? Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 21, 2008 aku dah try macam2 website, saje try, sume tak jadi.. huhu..http://www.readaccess.com/~lopaka/sysadmin/ipnat-info/http://justjared.buzznet.com/2008/02/19/pr...-series-finale/http://www.freebsd.org/doc/en_US.ISO8859-1...ewalls-ipf.html Quote Share this post Link to post Share on other sites
mchammer 0 Report post Posted February 21, 2008 Cuba letak lab punya gateway dekat client punya gateway configuration. Lepas tu try ping... Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 21, 2008 aku dah try letak 10.100.100.1 tak jalan gak.. huhu.. masalah nye die tak bleh nak resolve, biase sbb ape camtu ek? nat kan? Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted February 21, 2008 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 luarish.. tak dapat lagi lah.. huhu.. dalam windows output die, unknown host ble aku ping.. aku refer site ni..http://www.freebsddiary.org/natrules.php#redirectmcm 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 Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 21, 2008 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 luarcuba 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 eheheheaha..tu last option aku.. kehkehkeh.. aku dkt UPM jer ni..ko keje mane? Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted February 21, 2008 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.. Quote Share this post Link to post Share on other sites
mchammer 0 Report post Posted February 21, 2008 Tak boleh resolve kalu, try ping guna IP. Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 22, 2008 ye ke pencacat en.truna hehehe... Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 22, 2008 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.. Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 22, 2008 (edited) 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.htmlso kalau ade link lagi baik, inform aku...oh ye, yg atas cam tak complete sngatso 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.. 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 February 22, 2008 by gamekiller Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted February 22, 2008 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.htmlso kalau ade link lagi baik, inform aku...oh ye, yg atas cam tak complete sngatso 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.. 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.. Quote Share this post Link to post Share on other sites
FryShadow 90 Report post Posted February 22, 2008 gamekiller ko edit /etc/resolv.conf ke utk DNS tuh ? Quote Share this post Link to post Share on other sites
TRUNASUCI 15 Report post Posted February 22, 2008 gamekiller ko edit /etc/resolv.conf ke utk DNS tuh ?kalau yer, lain kali just edit dalam dhcpd config file je buh DNS lab tu .. Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 22, 2008 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? Quote Share this post Link to post Share on other sites
mchammer 0 Report post Posted February 23, 2008 (edited) Ikut je contoh ni:http://www.freebsd.org/doc/en_US.ISO8859-1...etwork-dns.htmlContoh /etc/namedb/named.confoptions {     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 February 23, 2008 by mchammer Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 25, 2008 (edited) 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 February 25, 2008 by gamekiller Quote Share this post Link to post Share on other sites
mchammer 0 Report post Posted February 25, 2008 (edited) Command dalam section 27.6.6.1 ( http://www.freebsd.org/doc/en_US.ISO8859-1...etwork-dns.html ) dah run? Edited February 25, 2008 by mchammer Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 25, 2008 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.. Quote Share this post Link to post Share on other sites
game-game 0 Report post Posted February 25, 2008 ni yang aku dapat.. die kate handbook tu tak updatehttp://unix.derkeiler.com/Mailing-Lists/Fr...1/msg01388.htmlhttp://www.freebsd.org/cgi/cvsweb.cgi/src/...ideattic=0#HEADaku tak paham sngat.. huhu.. Quote Share this post Link to post Share on other sites
mchammer 0 Report post Posted February 26, 2008 Cuba paste output ls /etc/namedb Quote Share this post Link to post Share on other sites