How to Set Up Solaris NAT in n Easy Steps ----------------------------------------- 1. Install a Linksys LNE 100TX or some other supported card. See http://garrett.damore.org/software/ethernet/support.shtml 2. Install Garrett's ethernet drivers. wget http://garrett.damore.org/software/ethernet/files/etherdrivers-1.0.0-sparc.zip unzip etherdrivers-1.0.0-sparc.zip pkgadd -d etherdrivers-1.0.0/Packages/sparc all 3. Edit config files and bring up the interface. echo "foo-int.ice.mtu.edu" > /etc/hostname.afe0 echo "192.168.60.200 foo-int.ice.mtu.edu foo-int" >> /etc/hosts echo "192.168.0.0 255.255.0.0" >> /etc/netmasks ifconfig afe0 plumb ifconfig afe0 192.168.60.200 netmask 255.255.0.0 broadcast 192.168.255.255 up 4. Configure DHCP server. Enable DHCP only on private interface (for 192.168.0.0 network). (change gateway...) /usr/sbin/dhcpconfig 5. Install IPFilter. wget http://www.maraudingpirates.org/ipfilter/archive/ipf-3.4.31-Sol8-sparc-64bit.pkg.bz2 bunzip2 ipf-3.4.31-Sol8-sparc-64bit.pkg.bz2 # add ipfx first, then ipf pkgadd -d ipf-3.4.31-Sol8-sparc-64bit.pkg 6. Configure IPFilter for NAT. # create /etc/opt/ipf/ipnat.conf map hme0 192.168.0.0/16 -> 0/32 proxy port ftp ftp/tcp map hme0 192.168.0.0/16 -> 0/32 portmap tcp/udp 10000:40000 map hme0 192.168.0.0/16 -> 0/32 # create /etc/rc2.d/S99ip_forwarding #!/sbin/sh /usr/sbin/ndd -set /dev/tcp ip_forwarding 1 chmod 744 /etc/rc2.d/S99ip_forwarding chown root:sys /etc/rc2.d/S99ip_forwarding