Forum Discussion
Preserve source address from iRule
Hi
I have a VS which i'm using to duplicate SNMP traps to multiple pools. here is my very simple irule:
when CLIENT_ACCEPTED {
set pool1 [HSL::open -proto UDP -pool serverpool1]
HSL::send $pool1 [UDP::payload]
set pool2 [HSL::open -proto UDP -pool serverpool2]
HSL::send $pool2 [UDP::payload]
set pool3 [HSL::open -proto UDP -pool serverpool3]
HSL::send $pool3 [UDP::payload]
}
the traps reach each pool ok, however the source IP address on the destination server is showing as the F5 internal IP. I need it to be the original source IP, the same way a normal VS clone pool would pass the traffic.
i've tried various settings on the VS and in my irule but i'm stuck.
any pointers?
Cheers
Mick
- Rodrigo_Albuque
Cirrocumulus
Hi Mick
If this is under a VIP, just disable Automap from Virtual Server configuration.
Cheers.
Rodrigo
- Mick
Cirrus
Hi Rodrigo
yes thats one of the settings i checked, Source Address Translation is set to none, but its still using the source IP of the trap is still showing as the internal IP of the F5. Any other ideas?
- Rodrigo_Albuque
Cirrocumulus
Have you tried disabling this one (Configuration/Advanced on Virtual Server)?
- Mick
Cirrus
yeah i've tried those too, don't change anything
- eddielindsay
Nimbostratus
Hi, I am still seeing this issue on version 14 code. Does anyone know if a resolution is available?
Thanks.
Recent Discussions
Related Content
* 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