Re: Adding Configuration parts via File

2019-03-11 Thread Philipp Kolmann
Hi Jarno, On 3/8/19 4:57 PM, Jarno Huuskonen wrote: Yes(probably:), something like this might work for you: acl is_redirect_match path,map_beg(redir.map) -m found http-request redirect code 302 location %[path,map_beg(redir.map)] if is_redirect_match Thanks a lot for your help. That works fa

Re: Adding Configuration parts via File

2019-03-08 Thread Jarno Huuskonen
Hi, On Fri, Mar 08, Philipp Kolmann wrote: > On 3/8/19 2:50 PM, Patrick Hemmer wrote: > > > >You can use external files in two cases. See the following blog articles: > > > >https://www.haproxy.com/blog/introduction-to-haproxy-acls/ (search > >for "acl file") > > > >https://www.haproxy.com/blog/in

Re: Adding Configuration parts via File

2019-03-08 Thread Philipp Kolmann
On 3/8/19 2:50 PM, Patrick Hemmer wrote: You can use external files in two cases. See the following blog articles: https://www.haproxy.com/blog/introduction-to-haproxy-acls/ (search for "acl file") https://www.haproxy.com/blog/introduction-to-haproxy-maps/ Hi, thanks for the hint with th

Re: Adding Configuration parts via File

2019-03-08 Thread Philipp Kolmann
Hi Bruno, On 3/8/19 2:26 PM, Bruno Henc wrote: I don't think there is a capability to include a list of ACLs. However, you can load the ip addresses once via the -f parameter: acl is_admin src -f /etc/haproxy/admin_ip_list.txt Thanks that sounds like a solution for my IP List issue... I do

Re: Adding Configuration parts via File

2019-03-08 Thread Aleksandar Lazic
@formilux.org Betreff: Re: Adding Configuration parts via File Hello Philipp, I don't think there is a capability to include a list of ACLs. However, you can load the ip addresses once via the -f parameter: acl is_admin src -f /etc/haproxy/admin_ip_list.txt You would have to define an acl in

Re: Adding Configuration parts via File

2019-03-08 Thread Patrick Hemmer
On 2019/3/8 08:17, Philipp Kolmann wrote: > Hi, > > I have ACLs for Source-IPs for Admins for several services. These ACLs > are identical for multiple listener-sections. > > Would it be possible to have a file with several acl snipplets and > source that at the proper section of the config file

Re: Adding Configuration parts via File

2019-03-08 Thread Bruno Henc
Hello Philipp, I don't think there is a capability to include a list of ACLs. However, you can load the ip addresses once via the -f parameter: acl is_admin src -f /etc/haproxy/admin_ip_list.txt You would have to define an acl in each section, but the IP list would be the same for all rul