Previous Step

Why am I Creating this Network?
I am creating this network, because I want a LAN where I can put VMs to have Internet access while not being able to talk to any other devices other than Kali.
Adding the Interface





cyber-range-sec-egress > OK
cyber-range-sec-egress LAN SegmentConfigure pfSense VM
Start up the pfSense VM...

Should VLANs be set up now [y|n]? : n
Enter the WAN interface name or ‘a’ for auto-detection: em0
Enter the LAN interface name or ‘a’ for auto-detection: em1
Enter the Optional 1 interface name or ‘a’ for auto-detection: em2
Enter the Optional 2 interface name or ‘a’ for auto-detection: em3
Enter the Optional 3 interface name or ‘a’ for auto-detection: em4











Additional Configurations
Change the Interface Name


Add Some Firewall Rules

Click Add ⬆️
- Action: Pass
- Interface: SEC_EGRESS
- Address Family: IPv4
- Protocol: Any
- Source: SEC_EGRESS subnets
- Destination: SEC_EGRESS address
- Description: Allow traffic out the gateway
Click Save
Click Add ⬇️
- Action: Pass
- Interface: SEC_EGRESS
- Address Family: IPv4
- Protocol: Any
- Source: SEC_EGRESS net
- Destination: Single host or alias = 10.0.0.2 (Kali VM IP)
- Description: Allow packets to Kali VM
Click Save
Click Add ⬇️
- Action: Pass
- Interface: SEC_EGRESS
- Address Family: IPv4
- Protocol: Any
- Source: SEC_EGRESS net
- Destination: ✅Invert Match - Single host or alias = RFC1918
- Description: Allow to any non-private IPv4 address
Click Save
Click Add ⬇️
- Action: Block
- Interface: SEC_EGRESS
- Address Family: IPv4 + IPv6
- Protocol: Any
- Source: Any
- Destination: Any
- Description: Block packets to everything else
Click Save and Apply Changes
Firewall Rules Desired End State

SEC_EGRESS interface to the list of subnets that should not be allowed to access the firewall management ports.
Test the New Interface

cyber-range-sec-egresssudo systemctl restart networkingRun this command to reload the networking stack on Kali

10.10.10.0/24 subnet

cyber-range-LAN when finished and re-run the sudo systemctl restart networking command.Deleting an Interface
If for some reason you want to delete the interface, you really only need to reverse your steps.
- Shutdown the pfSense VM
- Right-click the pfSense VM
- Delete the target network adapter
- Network Adapter 5 in this example
Next Step


