iptables change destination address base on result from mysql
- by user1812225
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.