Hi Folks,
Up Front: I'm not asking for a "How-to-setup-a-jail"
I'm asking for advice on how to setup the following scenario:
Local Network with a Router connecting to the evil outside world.
Currently, i have two FreeBSD12.1-p2-Servers (exactly the same install).
Right now, i'm running ProFTPd directly on both of them. Those FTP-Server(s) have to be exposed via Port-Forwarding on the Router to the evil outside world (and, yes, i'm using FTPS, and using arbitrary Port-Numbers, not the standard-ports)
In the LAN, both servers expose a Samba-Share as a Gluster-Volume, which is the DefaultRoot for the FTP-Server (chroot-ing the users to that Folder).
Currently (and probably in the Future), there will be only a limited amount of Users with Access to the FTP-Server (no Anonymous!).
As the next planned step, there will be Nextcloud coming into the equation some time into the future (but i'll open that can of worms, when i have finished the FTP)
To get it more secure, i was thinking about jailing the FTP-services.
On a Test-VM i have a working ProFTPd in a Jail (that's for me to get the kinks out of the system as well as a learning experience) with the jail having its own static IP-Address in the Address-Range of the Router. It Works, i can connect to the evil outside world.
Questions:
1) i'm considering ip4.addr=inherit for the Jail's NIC (and then to PF traffic to/from the FTP-Port), since the Hosts get their IP-Address via DHCP from the Router (and on the Router it's a static Address)
2) Leave the Jail with its own IP-Address in the IP-Range, and treat the jail as if it's a separate server in the Network.
3) give the Jail a completely different address (say 172.16.0.2 or 10.0.2.15 or whatever), and NAT everything to hell and back (i'm reading up on PF right now).
4) In any way: What's the best way, to "DefaultRoot" to that Samba-Share? Mount the Share into the Jail? Symlinking?
Good Ideas? Bad Ideas?
Any advice on "Best practice"?
I'm aware that Jails are not the "Be-all-End-All" of security, but for me it's a starting point (and in our usecase we don't have the american nuclear launching codes on the servers).
Cheers!
Up Front: I'm not asking for a "How-to-setup-a-jail"
I'm asking for advice on how to setup the following scenario:
Local Network with a Router connecting to the evil outside world.
Currently, i have two FreeBSD12.1-p2-Servers (exactly the same install).
Right now, i'm running ProFTPd directly on both of them. Those FTP-Server(s) have to be exposed via Port-Forwarding on the Router to the evil outside world (and, yes, i'm using FTPS, and using arbitrary Port-Numbers, not the standard-ports)
In the LAN, both servers expose a Samba-Share as a Gluster-Volume, which is the DefaultRoot for the FTP-Server (chroot-ing the users to that Folder).
Currently (and probably in the Future), there will be only a limited amount of Users with Access to the FTP-Server (no Anonymous!).
As the next planned step, there will be Nextcloud coming into the equation some time into the future (but i'll open that can of worms, when i have finished the FTP)
To get it more secure, i was thinking about jailing the FTP-services.
On a Test-VM i have a working ProFTPd in a Jail (that's for me to get the kinks out of the system as well as a learning experience) with the jail having its own static IP-Address in the Address-Range of the Router. It Works, i can connect to the evil outside world.
Questions:
1) i'm considering ip4.addr=inherit for the Jail's NIC (and then to PF traffic to/from the FTP-Port), since the Hosts get their IP-Address via DHCP from the Router (and on the Router it's a static Address)
2) Leave the Jail with its own IP-Address in the IP-Range, and treat the jail as if it's a separate server in the Network.
3) give the Jail a completely different address (say 172.16.0.2 or 10.0.2.15 or whatever), and NAT everything to hell and back (i'm reading up on PF right now).
4) In any way: What's the best way, to "DefaultRoot" to that Samba-Share? Mount the Share into the Jail? Symlinking?
Good Ideas? Bad Ideas?
Any advice on "Best practice"?
I'm aware that Jails are not the "Be-all-End-All" of security, but for me it's a starting point (and in our usecase we don't have the american nuclear launching codes on the servers).
Cheers!