brad_scherer_11
Apr 26, 2006Nimbostratus
443 to 7678
Hi everybody. Recently I have been working with the v.9 BIgIP's quite frequently and have just started delving into the wonderful if not slightly complex world of iRules. I have read through a lot of the posts and done some searching, but I still can not find a good example of what I am trying to do.
I am by no means experienced with iRules, but more than willing to learn and contribute as I go. I have done a few http to https redirects with minimal effort, but now I have one that I can't seem to figure out.
We have a virtual server that terminates SSL connections on 443. We want to redirect them to a virtual server (same IP) on 7678 and then of course a pool with members listening on 7678.
Can I just direct them to the pool listening on 7678 or do I redirect to the virtual server?
This rule is probably no where close and does not even load correctly, but I think this is close to what I want to do:
_______________________________________________
This will redirect from 443 to 7678
when HTTP_REQUEST {
if { [TCP::local_port equals 443] }
redirect to ([TCP::local_port:7678]}
}
_______________________________________________
This is the error when I try to load it:
I would spend more time troubleshooting the error log if I knew I was on the right track.
_______________________________________________
01070151:3: Rule [SMART-SSL-Redirect] error:
line 3: [wrong args] [TCP::local_port equals 443]
line 3: [missing a script after "if"] []
line 4: [undefined procedure: TCP::local_port:7678] [TCP::local_port:7678]
line 5: [command is not valid in the current scope] [}]
_______________________________________________
Any help would be greatly appreciated.
Thanks ,
Brad