• Announcement: Lua.org now officially recommends this forum as a meeting place for the Lua community

Lua check if ip is in ipset (1 Viewer)

Jamesdev

Newcomer
Joined
Jan 8, 2022
Messages
1
Reaction score
0
Hi, I'm working on a secondary firewall for connections through a third-party proxy (with a forwarded ip) using lua and modsecurity. I was wondering if anyone knows if it's possible to use lua to check ipset in an efficient way? I know os.execute is possible but I feel that might be inefficient on a busy network.

I have a working lua script that can check a list of IPs stored in a text file. I'd prefer to access the Linux ipset if possible.

Any tips, clues or ideas would be greatly appreciated.

Thanks!
 
Top