David_revilla_f
Nov 21, 2007Nimbostratus
Snat or nat senteces
Hi everyone,
I am composing this irule
rule subscription {
when HTTP_REQUEST {
if { [[TCP::remote_port] == 20001]] or [[TCP::remote_port] == 30001]] or [[TCP::remote_port] == 20002]] or [[TCP::remote_port] == 30002]] } {
nat { 192.168.1.51 to 172.16.50.195 }
nat { 192.168.1.52 to 172.16.50.244 }
}
}
}
when HTTP_REPLY {
if { [[TCP::remote_port] == 20001]] or [[TCP::remote_port] == 30001]] or [[TCP::remote_port] == 20002]] or [[TCP::remote_port] == 30002]] } {
nat { 192.168.1.51 to 172.16.50.195 }
nat { 192.168.1.52 to 172.16.50.244 }
}
I do not know if nat sentence is correct or i have to use snat instead. In both cases, which is the correct format for this type of sentences?
Thank you very much in advance.
David
}
}