win32sux |
05-13-2010 07:34 PM |
Quote:
-A POSTROUTING -s 192.168.4.6 -p tcp -m tcp --dport 9111 -j SNAT --to-source 202.152.251.6
|
This rule says: If this is a TCP packet, with source address 192.168.4.6, and destination port 9111, change the source address to 202.152.251.6.
Quote:
-A POSTROUTING -s 192.168.5.0/255.255.255.0 -j MASQUERADE
|
This rule says: If this packet has a source address within the 192.168.5.0/255.255.255.0 netblock, change the source address to whatever the primary IP of the outbound interface is.
|