Wednesday, August 17

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:


edit IP NAT

vi /etc/ipf/ipnat.conf
map rtls1 -> 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


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.