iptables change destination address base on result from mysql

Posted by user1812225 on Programmers See other posts from Programmers or by user1812225
Published on 2012-11-09T13:14:52Z Indexed on 2012/11/09 17:20 UTC
Read the original article Hit count: 157

Filed under:
|

I need to change destination address of tcp/ip packets based on result of execution mysql query...

SELECT `score` FROM `reputation` WHERE `ip` = packet.source_ip

if (score < a) then packet.destination_ip = ...

else packet.destination_ip = ...

What ways of solving this problem do you see? Thanks.

P.S. this is important that destination host knows REAL ip address where packet came from, not IP address of firewall.

© Programmers or respective owner

Related posts about linux

Related posts about mysql