Re: Can HAProxy function as a firewall?

2022-05-04 Thread Tom Browder
On Wed, May 4, 2022 at 08:51 Shawn Heisey  wrote:
...

> Some things that I can think of that I don't think haproxy can do that
> you'd expect from a firewall:
>
> * Permit or deny any traffic other than TCP or UDP.
> ** Examples:  ICMP, IGMP, GRE, ESP.
> * Examine certain application protocols to track and automatically allow
> related connections.
> ** FTP and RPC are the examples that come to mind.


Thanks, Shawn.

Then how about using pfsense software instead in the same setup?

-Tom


Re: Can HAProxy function as a firewall?

2022-05-04 Thread Shawn Heisey

On 5/4/22 05:30, Tom Browder wrote:
From what I've seen of HAProxy's configuration, it seems it may be 
able to be used as an easy-to-configure firewall immediately 
downstream from my ISP's router and inside a small Debian computer 
feeding another router.


Does that sound feasible? Or is there a physical router available that 
incorporates HAProxy?


While this could theoretically be a possible use case for haproxy, it is 
not something I would try.  Haproxy is designed to be a proxy server and 
load balancer.  In those capacities, it is good enough for 
mission-critical deployment.


But haproxy is not designed to fill the role of a firewall.  I mean no 
disrespect to Willy or the other people that spend their valuable time 
working on haproxy when I say this.  I love haproxy  it is one of 
the best pieces of software in my problem-solving toolkit.  But for a 
software firewall, I will look elsewhere, for something that is designed 
for that role.


Some things that I can think of that I don't think haproxy can do that 
you'd expect from a firewall:


* Permit or deny any traffic other than TCP or UDP.
** Examples:  ICMP, IGMP, GRE, ESP.
* Examine certain application protocols to track and automatically allow 
related connections.

** FTP and RPC are the examples that come to mind.

TL;DR: While I am not part of the development team for this project, I 
am part of the development team for Apache Solr. Something that we are 
very often telling people on the Solr users list:  Solr is a search 
engine.  It is not a database.  It's a discussion similar to your 
question.  The response is:  When you have a software need, find 
software that is designed for the role.


Thanks,
Shawn




Re: Can HAProxy function as a firewall?

2022-05-04 Thread Tom Browder
On Wed, May 4, 2022 at 06:30 Tom Browder  wrote:

> ...

> From what I've seen of HAProxy's configuration, it seems it may be able to
> be used as an easy-to-configure firewall immediately downstream from my
> ISP's router and inside a small Debian computer feeding another router.
>

If it can function as a firewall, shouldn't I be able to use two NICs in my
Debian server and use it on the ISP router as the gateway to my intranet
with a switch hanging on the second NIC?

-Tom