(I'm not sure if this belongs here or to the networking section. I think this section is more appropriate because it's a routing question first and then a firewall one.)
I have one FreeBSD machine in my local network with one Ethernet card. I'm using this machine as a torrent box, FTP server (listens to LAN and WAN), LAN Samba server, generic downloader (wget(1), curl(1), lftp(1)), and general UNIX playbox to satisfy my need for command line, and at some point it will be used as an OpenVPN server. The machine is open 24/7 and pf(4) helps me keep the private services (like Samba) private.
I have one switch that acts as the "backbone" of my home network. All the machines in the house (a desktop, the FreeBSD machine, the DSL modem, sometimes a laptop a friend might bring) connect to that switch. It's a star-shaped network.
I was wondering if I could keep this star connectivity but *also* use the FreeBSD machine as some short of gateway to block outgoing traffic to specific hosts and IPs.
Why? I'm about to upgrade into Windows 10 and the only assured way I have found to avoid the telemetry stuff is to blackhole a number of Microsoft hosts. Or if I decide to go hardcore, the whole IP range Microsoft owns (apparently I'll have to forget OS updates, Skype, and outlook.com unless I can tell my browser or the Skype client not to go through the FreeBSD machine).
So I want to redirect the traffic of my desktop to the FreeBSD machine, and then the FreeBSD machine to redirect this traffic to my DSL modem, *except* for a number of hosts and IPs that I shall provide (pf(4) is currently the firewall of my choice).
Can I use the FreeBSD machine to do this filtering without interrupting the other services it performs?
If what I want is possible then please provide me of some keywords or links.
I have already found a number of tutorials but they solve very different scenarios.
I have one FreeBSD machine in my local network with one Ethernet card. I'm using this machine as a torrent box, FTP server (listens to LAN and WAN), LAN Samba server, generic downloader (wget(1), curl(1), lftp(1)), and general UNIX playbox to satisfy my need for command line, and at some point it will be used as an OpenVPN server. The machine is open 24/7 and pf(4) helps me keep the private services (like Samba) private.
I have one switch that acts as the "backbone" of my home network. All the machines in the house (a desktop, the FreeBSD machine, the DSL modem, sometimes a laptop a friend might bring) connect to that switch. It's a star-shaped network.
I was wondering if I could keep this star connectivity but *also* use the FreeBSD machine as some short of gateway to block outgoing traffic to specific hosts and IPs.
Why? I'm about to upgrade into Windows 10 and the only assured way I have found to avoid the telemetry stuff is to blackhole a number of Microsoft hosts. Or if I decide to go hardcore, the whole IP range Microsoft owns (apparently I'll have to forget OS updates, Skype, and outlook.com unless I can tell my browser or the Skype client not to go through the FreeBSD machine).
So I want to redirect the traffic of my desktop to the FreeBSD machine, and then the FreeBSD machine to redirect this traffic to my DSL modem, *except* for a number of hosts and IPs that I shall provide (pf(4) is currently the firewall of my choice).
Can I use the FreeBSD machine to do this filtering without interrupting the other services it performs?
If what I want is possible then please provide me of some keywords or links.
I have already found a number of tutorials but they solve very different scenarios.