Installing Tsurugi Linux for DFIR Work
Security and Pentest Home Lab Environment
In this module, we are going to set up Tsurugi Linux, an OS pre-configured with many Digital Forensics & Incident Response tools. Before deploying the VM, weโll create a new interface in pfSense
named SECURITY
. This segment will isolate DFIR tools from the rest of the network.
โ Add New Interface in VirtualBox
VirtualBox only allows 4 adapters via the GUI, but we can add more using the command-line. Before proceeding:
- Ensure your pfSense VM is powered off
- Confirm the VM name (e.g.,
"pfSense"
)
๐ง Create the Interface via PowerShell
Run the following in PowerShell:
1
2
3
4
5
6
7
8
9
10
11
# Attach a new internal network
VBoxManage modifyvm "pfSense" --nic6 intnet
# Set adapter type to virtio-net
VBoxManage modifyvm "pfSense" --nictype6 virtio
# Name the internal network "LAN 4"
VBoxManage modifyvm "pfSense" --intnet6 "LAN 4"
# Mark the interface as connected
VBoxManage modifyvm "pfSense" --cableconnected6 on
๐งฎ Assign Interface in pfSense
- Start the pfSense VM
- At the terminal prompt, press
1
to Assign Interfaces - When asked about VLANs โ type
n
Assign the interfaces:
- WAN:
vtnet0
- LAN:
vtnet1
- OPT1:
vtnet2
- OPT2:
vtnet3
- OPT3:
vtnet4
- OPT4:
vtnet5
Type y
to confirm and onboard the new interface.
๐ Configure Interface IP
- Back at the pfSense terminal, press
2
to Set interface(s) IP address - Choose interface 6 (OPT4)
Configure the settings:
- IPv4 Address:
10.10.10.1
- Subnet Bit Count:
24
- Skip upstream gateway (just press Enter)
- IPv6: Disabled
Enable DHCP Server:
- Start Range:
10.10.10.11
- End Range:
10.10.10.243
Decline HTTP switch: n
OPT4 is now active and ready for segmentation.
โ๏ธ Rename OPT4 to SECURITY
- Log in to the pfSense web UI
- Navigate to: Interfaces โ OPT4
- Set Description to:
SECURITY
- Scroll down โ Click Save
- Click Apply Changes when prompted
๐ก๏ธ SECURITY Interface โ Firewall Rules
Go to: Firewall โ Rules โ SECURITY
๐ฅ Rule 1 โ Block WAN Access
- Action: Block
- Address Family: IPv4+IPv6
- Protocol: Any
- Source: SECURITY net
- Destination: WAN net
- Description: Block access to WAN
Click Save. Ignore popup for now.
๐ฅ Rule 2 โ Block LAN Access
- Action: Block
- Address Family: IPv4+IPv6
- Protocol: Any
- Source: SECURITY net
- Destination: LAN net
- Description: Block access to LAN
Click Save. Ignore popup.
โ Rule 3 โ Allow Internet & Internal Traffic
- Action: Pass
- Address Family: IPv4+IPv6
- Protocol: Any
- Source: SECURITY net
- Destination: Any
- Description: Allow general traffic
Click Save, then Apply Changes on the popup.
๐ Reboot pfSense
To apply the firewall changes:
- Navigate to Diagnostics โ Reboot
- Click Submit
After reboot, pfSense will return to the login page, confirming changes have been applied.
๐ฅ Download Tsurugi Linux
- Visit the official download page: Tsurugi Linux - Downloads
- Choose one of the mirror links and download the latest ISO (e.g.,
tsurugi-linux-2023.2.iso
)- The ISO is ~16GB, so allow time for download.
- Once complete, youโll have a
.iso
image file ready for VM creation.
๐ป Create Tsurugi Linux VM
- In VirtualBox, click Tools โ New.
- Name the VM and select the downloaded
.iso
as the startup disk. Click Next. - Set Base Memory to
4096MB
โ Click Next. - Set Hard Disk size to
150GB
- โ ๏ธ Tsurugi will fail to install with less than 110GB of storage.
- Click Finish once the summary looks correct.
๐ Organize the VM into Groups
- Right-click the VM โ Move to Group โ New
- Right-click the new group โ Rename Group โ
Security
- Right-click the
Security
group โ Move to Group โHome Lab
- Final structure should look like:
โ๏ธ Configure the VM
- Select the VM โ Settings โ System โ Motherboard
- Boot Order: Ensure
Hard Disk
is first, followed byOptical
- Uncheck
Floppy
- Boot Order: Ensure
- โ
For Tsurugi Linux 2024.1+, enable
Enable EFI
under Motherboard - Go to Network โ Adapter 1
- Attached to:
Internal Network
- Name:
LAN 4
- Attached to:
- Click OK to save.
๐ Install Tsurugi Linux
- Start the VM โ Press
Enter
to boot into GUI mode. - On the desktop, double-click
Displays
โ set resolution to1600x1050
โ Apply โ Keep This Configuration- ๐ This is required to view installer buttons.
- Double-click
Install Tsurugi Linux 2023.2
to launch the installer. - Scroll down in the window โ Choose Language โ Continue
- Select Keyboard โ Continue
- Enable:
Install third-party software for graphics and Wi-Fi hardware and additional media features
โ Click Continue
- Click Install Now โ Continue to write changes
- Set timezone โ Continue
- Create user and password โ Continue
- After installation completes, click Restart Now
If prompted with a removal message, just press Enter
to continue. Login with the configured credentials.
๐ง Post-Install Configuration
๐ฆ Install Guest Additions
- Go to Devices โ Insert Guest Additions CD Image
- Authenticate with your password when prompted.
- Click the CD icon in the top-right โ Select
Mount VBox_GAs
- If the icon doesnโt appear on the desktop, double-click the CD icon from the file manager
- Select Tools โ
Open Current Folder in Terminal
- Run the install command:
1
sudo ./VBoxLinuxAdditions.run
๐งฉ Finalizing Setup
๐ฅ๏ธ Enter Fullscreen Mode
After Guest Additions installation:
- Press
Right Ctrl + F
to enter Fullscreen Mode.- Press the same keys again to exit fullscreen.
- The VM display will scale automatically to your monitor size.
- In the top-right corner of the VM window, click the CD icon โ Select Eject VBox_GAs to safely remove the Guest Additions ISO.
โป Shutdown the System
To properly shut down the VM:
- Click the power icon next to the clock
- Select Shut Down from the menu
- Confirm by clicking Shut Down again
๐ System Update
Keeping Tsurugi up to date is essential for tool compatibility and security.
- Open the Terminator terminal app from the desktop.
- Run the following command:
1
sudo apt update && sudo apt full-upgrade
If prompted during the update:
- Press
Enter
to begin the installation - Enter your password when requested
This will ensure your Tsurugi system is fully up-to-date with the latest packages and patches.
๐งท Creating a VM Snapshot
Before proceeding to the next lab module, itโs good practice to save your VMโs current state.
- Shut down the Tsurugi VM
- Click the hamburger menu next to the VM name โ choose Snapshots
- Click Take
- Enter a descriptive name like
Tsurugi Clean Install
- Click OK
- Return to the main view via the Details tab
Creating a snapshot lets you quickly revert to this clean baseline if needed.
โญ๏ธ Whatโs Next?
In the next module, weโll set up:
- Ubuntu Linux
- Download and install Splunk
- Deploy the Splunk Universal Forwarder on the Domain Controller
This integration allows us to collect event logs and security telemetry from Windows systems in our Active Directory environment.