Setting Awal Router FreeBSD

1. Install FreeBSD sampek selesai

2. Masukan ip nya :

Edit file rc.conf.

roueter#ee /etc/rc.conf

contoh :

defaultrouter=”202.xxx.xxx.xxx” –> default router
gateway_enable=”YES”
hostname=”suwal.suwil.net”
ifconfig_fxp0=”inet 202.xxx.xxx.xxx netmask 255.255.255.240″ -> ke arah ISP
ifconfig_fxp1=”inet 192.168.0.3 netmask 255.255.255.0″ -> ke LAN kita
keymap=”us.iso”
sshd_enable=”YES” –> aktifkan ssh
ipnat_enable=”YES” –> aktifkan ipnat
3. Adduser

router# adduser
Username:nayla

Full name:
Uid (Leave empty for default):
Login group [gowang]: wheel
Login group is wheel. Invite gowang into other groups? []:
Login class [default]:
Shell (sh csh tcsh nologin) [sh]: tcsh
Home directory [/home/nayla]:
Use password-based authentication? [yes]:
Use an empty password? (yes/no) [no]:
Use a random password? (yes/no) [no]:
Enter password:
Enter password again:
Lock out the account after creation? [no]:
Username : nayla
Password : *****
Full Name :
Uid : 1004
Class :
Groups : wheel
Home : /home/nayla

Shell : /bin/tcsh
Locked : no
OK? (yes/no): yes
adduser: INFO: Successfully added (gowang) to the user database.
Add another user? (yes/no): no
Goodbye!

4. Buat file ipnat.rules nya

- nayla# ee /etc/ipnat.rules

conto nya : map fxp0 192.168.0.0/24 -> 202.xxx.xxx.xxx/32

5. Paling gampang reboot dulu, biar script di rc.conf nya ke load….

6. Selesa

b. Untuk limit, proxy, compile kernel dll bisa dilihat di artikel sebelumnya (kalau ada, klo gak , google aja yah…):D

~ oleh naylaady di/pada Januari 28, 2008.

Tinggalkan Balasan