Steps to create test environment
- Created a new vswitch called NAT
- Installed a new VM (very small, 512mb ram and 5G disk) called pfsense where I’ve installed the pfsense[0] firewall
- Configured pfsense to have the LAN interface on the vswitch NAT and the WAN interface on ARDITI Lan.
- Pfsense WAN ip is 192.168.6.46 (via dhcp, didn’t set It static)
- Pfsense LAN ip is 192.168.1.1/24 (static)
- connect to Pfsense: https://192.168.6.46 user: admin, password: pfsense
- NAT FORWARD rules from pfsense was created (see below)
[0] https://www.pfsense.org/
Test machines
- Clone Hera, reduced the RAM to 1GB -> Hera-Clone
- Changed Hera-Clone LAN ip to 192.168.1.23
- Clone Azevinho, reduced the RAM to 1GB -> Azevinho-Clone
- Changed Azevinho-Clone LAN ip is 192.168.1.27
Router (pfsense) NAT configuration
Port Forward
Dest. Ports
|
NAT IP
|
NAT Ports
|
Description
|
4444
|
192.168.1.23
|
4444
|
Zentyal
|
587
|
192.168.1.23
|
587
|
SMTP Submission
|
143
|
192.168.1.23
|
143
|
IMAP
|
2222
|
192.168.1.23
|
22
|
SSH
|
445
|
192.168.1.23
|
445
|
SMB
|
2443
|
192.168.1.23
|
443
|
HTTPS (access to webmail)
|
1443
|
192.168.1.27
|
443
|
HTTPS (access to Nextcloud)
|
Notes