Author: adnim Language: text
Description: BSD Router Project video (v2) Timestamp: 2018-12-07 23:38:08 +0000
View raw paste Parent paste by: Adam - Child paste by: adnim Reply
  1. My name is Adam, Network Administrator and Computer Security Instructor at Alamance Community College.  I starred on the Linux Action Show with my boss, Winfield Henry, about a year ago discussing Proxmox VE (Open source Virtualization Platform) with Chris Fisher.  
  3. I tried out the BSD Router Project which was discussed in the BSDNow episode titled, "The Gateway Drug".  It took five minutes to setup and test in virtualbox given my familiarity with Cisco IOS, *NIX (UNIX, Linux, and BSD), Virtualization, etc!
  5. I have plans on implementing this project in development environments at the college and if successful, into production.  Should be an easy fit for any network admin with Cisco IOS experience.
  7. Here is a link to my 16 min. video tutorial on how to setup the BSD Router Project in VirtualBox hosted on an Owncloud instance I've installed for our faculty/staff:
  9. [removed and rehosted so we don't hammer their bandwidth]
  11. Please keep up the awesome work guys!
  15. Tutorial Notes
  16. ==========
  17. 1) Download BSD Router Project Hard Disk image (x64, i386).  Be certain to pick the vga edition, not serial as you'll be using the terminal in Virtualbox to configure the BSD Router:
  19. 2) Extract the archive and use the following command to covert the BSD Router Project image file into a .vdi (VirtualBox Hard Disk image file)
  20. VBoxManage convert BSDRP-1.5-full-amd64-vga.img BSDRP-1.5-full-amd64-vga.vdi
  21. 3) Create FreeBSD 64-bit vm, attach BSDRP-1.5-full-amd64-vga.vdi as a virtual hard disk, create two network interfaces (one that bridges to the physical LAN, the second that uses a VirtualBox Internal LAN [intnet])
  22. 4) Boot BSD Router Project VM, log in as root, no password
  23. 5) Set root password using passwd
  24. 6) Enter Quagga (Cisco IOS clone) by typing in cli
  25. 7) Enter configuration mode by typing:
  26. configuration terminal
  27. 8) Once in Quagga configure em0 (interface bridged with LAN) by typing:
  28. interface em0
  29. ip address
  30. 9) configure em1 (interface on VirtualBox Internal Network) with its own private network address on a different subnet:
  31. interface em1
  32. ip address
  33. 10) Create default route to forward all traffic to the physical router upstream (for example my pfSense router)
  34. ip route
  35. 11) From the VirtualBox host ping the address that is on the interface which is bridged to the physical LAN to confirm BSD Router Project VM can communicate with Physical LAN:
  36. ping
  37. 12) Create another VM and also set its network to use the same VirtualBox Internal network interface as used on the em1 in the BSD Router Project VM (intnet), in my tutorial I used OpenBSD
  38. 13) Set IP address in same subnet as address assigned to em1 in the BSD Router Project VM (Should be setup in OpenBSD install script):
  40. 14) Set BSD Router Project em1 interface IP address as default gateway on OpenBSD VM (For some reason OpenBSD install script didn't save gateway, fixed on next reboot with the following command):
  41. echo "" > /etc/mygate
  42. 15) Ping gateway address to confirm that OpenBSD can communicate with em1 on BSD Router Project VM, confirming it can communicate with the router:
  43. ping
  44. 16) Ping Google, confirming static route to sending all traffic to physical router (pfsense []) works:
  45. ping
  46. 17) If all went well you have a basic router configuration setup on the BSD Router Project VM, go back to BSD Router Project VM, exit configuration mode and save running-config to startup-config by typing:
  47. exit
  48. write memory
  50. **Note, I did have to configure a reverse route to via on my physical pfSense router (General -> Routes).  Also, I modified the following default pfSense rule on my LAN interface:
  53. to
  56. This allows both private IP subnets both on the physical (192,168.15.30) and virtual ( to be forward to my WAN interface on pfSense.
View raw paste Parent paste by: Adam - Child paste by: adnim Reply