Greetings all,
I have been building a FreeBSD pf based firewall. The FreeBSD box has an Internet facing interface ext_if, with IP address assigned by DHCP from the IPS provider, and a internal local network facing interface int_if with IP address 192.168.0.1.
For testing purposes, I connected a computer with IP address in the range of 198.168.0.2 - 254, and the firewall appears to work as intended.
The question is, how do I connect a plurality of devices, i.e., computers, printers, backup servers, and the like to the int_if, and still be able to control the access to and among the devices from the FreeBSD box.
My initial attempt was to use a a switch/router (AirLink 101), with the switch/router WAN interface set to IP address in the range of 192.168.0.xxx, e.g., 192.168.0.5 and the LAN interface with IP addresses 192.168.1.xxx. However, the problem, as I see it is, that all the LAN IP addresses 192.168.1.xxx will be translated to 192.168.0.5 and presented to the int_if. Therefore, the FreeBSD box cannot do any processing to control the access to and among the devices, because it does not have any concept of the IP addresses of the range 192.168.1.xxx.
Am I missing something due to my inexperience, or do I need a different device instead of the switch/router?
Any insight would be greatly appreciated.
Kindest regards,
M
I have been building a FreeBSD pf based firewall. The FreeBSD box has an Internet facing interface ext_if, with IP address assigned by DHCP from the IPS provider, and a internal local network facing interface int_if with IP address 192.168.0.1.
For testing purposes, I connected a computer with IP address in the range of 198.168.0.2 - 254, and the firewall appears to work as intended.
The question is, how do I connect a plurality of devices, i.e., computers, printers, backup servers, and the like to the int_if, and still be able to control the access to and among the devices from the FreeBSD box.
My initial attempt was to use a a switch/router (AirLink 101), with the switch/router WAN interface set to IP address in the range of 192.168.0.xxx, e.g., 192.168.0.5 and the LAN interface with IP addresses 192.168.1.xxx. However, the problem, as I see it is, that all the LAN IP addresses 192.168.1.xxx will be translated to 192.168.0.5 and presented to the int_if. Therefore, the FreeBSD box cannot do any processing to control the access to and among the devices, because it does not have any concept of the IP addresses of the range 192.168.1.xxx.
Am I missing something due to my inexperience, or do I need a different device instead of the switch/router?
Any insight would be greatly appreciated.
Kindest regards,
M