not sure if this is acceptable instead of changing destination ip.
[root@ve1023:Active] config b virtual bar list
virtual bar {
snat automap
pool foo
destination 172.28.19.79:514
ip protocol 17
rules myrule
}
[root@ve1023:Active] config b pool foo list
pool foo {
members 200.200.200.101:514 {}
}
[root@ve1023:Active] config b pool syslog_server_pool list
pool syslog_server_pool {
members 200.200.200.111:514 {}
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
set hsl [HSL::open -proto UDP -pool syslog_server_pool]
}
when CLIENT_DATA {
HSL::send $hsl [UDP::payload]
}
}
on 200.200.200.101
[root@centos101 ~] nc -l -u 514
<106>This is a test message generated by Kiwi SyslogGen
on 200.200.200.111
[root@centos111 ~] nc -l -u 514
<106>This is a test message generated by Kiwi SyslogGen