Forum Discussion
Bilal_9919
Dec 03, 2011Nimbostratus
iRule to change Destination IP
Hello Team,
I am using clone pool to duplicate the syslog packets to syslog-ng. I see packets been duplicated on F5 and forwarded to host on clone pool by wiresharking on syslog-ng and also ...
nitass
Dec 04, 2011Employee
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
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects