Tuesday, December 7
Shadow

membuat solaris sebagai router/NAT

enable IP fowarding

svcadm enable svc:/network/ipv4-forwarding
svcadm enable svc:/network/ipv6-forwarding

check IP fowarding:

svcs -a | grep -i forwarding

display routing features:

routeadm

edit IP NAT

vi /etc/ipf/ipnat.conf
map rtls1 192.168.92.0/24 -> 0/32

enable packet filter to an interface

vi /etc/ipf/pfil.ap
e1000g0  -1  0 pfil

restart daemon:

svcadm enable svc:/network/ipfilter
svcadm enable svc:/network/pfil
svcadm restart svc:/network/ipfilter
svcadm restart svc:/network/pfil

apply NAT:

ipnat -CF -f /etc/ipf/ipnat.conf

monitor:

ipnat -l
ipmon –o N

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.