Forum Discussion
nitass
Jan 05, 2012Employee
e.g.
[root@ve1023:Active] config b virtual bar list
virtual bar {
ip forward
destination any:any
mask 0.0.0.0
}
[root@ve1023:Active] config b snat snat_all list
snat snat_all {
automap
snatpool none
origins default inet
}
200.200.200.101 is translated to 172.28.19.80 (selfip).
[root@ve1023:Active] config tcpdump -nni 0.0 icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on 0.0, link-type EN10MB (Ethernet), capture size 108 bytes
10:23:04.381704 IP 200.200.200.101 > 8.8.8.8: ICMP echo request, id 63498, seq 1, length 64
10:23:04.383676 IP 172.28.19.80 > 8.8.8.8: ICMP echo request, id 63498, seq 1, length 64
[root@ve1023:Active] config b virtual bar list
virtual bar {
ip forward
destination any:any
mask 0.0.0.0
rules myrule
}
[root@ve1023:Active] config b snat snat_all list
snat snat_all {
automap
snatpool none
origins default inet
}
[root@ve1023:Active] config b rule myrule list
rule myrule {
when CLIENT_ACCEPTED {
snat none
}
}
after applying the irule, 200.200.200.101 is not translated.
[root@ve1023:Active] config tcpdump -nni 0.0 icmp
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on 0.0, link-type EN10MB (Ethernet), capture size 108 bytes
10:24:32.153696 IP 200.200.200.101 > 8.8.8.8: ICMP echo request, id 64266, seq 1, length 64
10:24:32.153863 IP 200.200.200.101 > 8.8.8.8: ICMP echo request, id 64266, seq 1, length 64