Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - mycanaletto

#1
Merci !

I'm using IPv6, so the export doesn't work.

root@OPNsense:/usr/local/opnsense/scripts/custom # csh haproxy-alias.sh Geo_France
exit: Badly formed number.


If I uncheck IPv6 in the alias it exports IPv6, but the next time I download MaxMind it won't take IPv6...

To use this in HAProxy, don't search for GEO IP but for Source IP matches... and put the name of the list in Source IP, I suppose ?
#2
Hello,
I have created a GEO alias for France.

But this script does not execute, either in cron or manually via the shell. Impossible to go further in HAProxy...

#!/bin/csh
if ( $#argv == 0 ) exit 1
configctl filter list table "$1" > "/var/haproxy/$1.lst"
chown 80:80 "/var/haproxy/$1.lst"
exit 0


sh haproxy-alias.sh
haproxy-alias.sh: 2: Syntax error: word unexpected (expecting "then")


So in the aliases in /var/haproxy it's impossible to go any further.

Thanks for your help ;-)

lionel