Selasa, 09 Februari 2010

router freebsd

1. Setelah selesai instalasi

2. Masukan ip nya :

Edit file rc.conf.

- FreeBSD#ee /etc/rc.conf

contoh :

defaultrouter=”202.xxx.xxx.xxx” –> default router

gateway_enable=”YES”

hostname=”core.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

FreeBSD# adduser

Username: admin

Full name:

Uid (Leave empty for default):

Login group [admin]: wheel

Login group is wheel. Invite admin into other groups? []:

Login class [default]:

Shell (sh csh tcsh nologin) [sh]: tcsh

Home directory [/home/admin]:

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 : admin

Password : *****

Full Name :

Uid : 1004

Class :

Groups : wheel

Home : /home/admin

Shell : /bin/tcsh

Locked : no

OK? (yes/no): yes

adduser: INFO: Successfully added (admin) to the user database.

Add another user? (yes/no): no

Goodbye!

4. Buat file ipnat.rules nya

- FreeBSD# ee /etc/ipnat.rules

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

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

6. Selesaihttp://althov.co.cc/?p=197

sumber :http://althov.co.cc/?p=19/?p=197


Tidak ada komentar:

Posting Komentar