Setting Mulai Awal Router FreeBSD
1. Install FreeBSD sampek selesai
2. Masukan ip nya :
Edit file rc.conf.
- suwal#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
suwal# adduser
Username: gowang
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/gowang]:
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 : gowang
Password : *****
Full Name :
Uid : 1004
Class :
Groups : wheel
Home : /home/gowang
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
- suwal# 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. Selesai
0 komentar:
Posting Komentar