ClusterPack Index of Tutorial Sections
ClusterPack Index of Tutorial Sections
ClusterPack Index of Tutorial Sections
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
% man 8 ipf<br />
� List the input output filter rules<br />
Setup the NAT rules<br />
% ipfstat -hio<br />
In this section, we will walk through the steps <strong>of</strong> setting up HP-UX IPFilter that translate the source IP<br />
addresses <strong>of</strong> all packets from the compute private subnet to the IP address <strong>of</strong> the gateway node. For addin<br />
more sophisticated NAT rules, please refer to the IPFilter documentation.<br />
1. Create a file with NAT rules.<br />
Example 1: Map packets from all Compute Nodes in the 192.168.0.x subnet to a single IP<br />
address 15.99.84.23<br />
% cat /tmp/nat.rules<br />
# lan0 -- interface to the external network<br />
# NAT IP interface: 15.99.84.23<br />
map lan0 192.168.0.0/24 -> 15.99.84.23/32 portmap tcp/udp<br />
40000:60000<br />
map lan0 192.168.0.0/24 -> 15.99.84.23/32<br />
EOF<br />
% cat /tmp/nat.rules<br />
# lan0 -- interface to the external network<br />
# NAT IP interface: 15.99.84.23<br />
map lan0 192.168.0.0/24 -> 15.99.84.23/32 portmap tcp/udp<br />
40000:60000<br />
map lan0 192.168.0.0/24 -> 15.99.84.23/32<br />
Example 2: Map packets from specific Compute Nodes (192.168.0.3 and 192.168.0.4) to<br />
a single IP address 15.99.84.23<br />
% cat /tmp/nat.rules<br />
# lan0 -- interface to the external network<br />
# NAT IP interface: 15.99.84.23<br />
map lan0 192.168.0.3/32 -> 15.99.84.23/32 portmap tcp/udp<br />
40000:60000<br />
map lan0 192.168.0.3/32 -> 15.99.84.23/32<br />
map lan0 192.168.0.4/32 -> 15.99.84.23/32 portmap tcp/udp<br />
40000:60000<br />
map lan0 192.168.0.4/32 -> 15.99.84.23/32<br />
EOF<br />
% cat /tmp/nat.rules<br />
# lan0 -- interface to the external network<br />
# NAT IP interface: 15.99.84.23<br />
map lan0 192.168.0.3/32 -> 15.99.84.23/32 portmap tcp/udp<br />
40000:60000<br />
map lan0 192.168.0.3/32 -> 15.99.84.23/32