Posts

Showing posts from February, 2009

Howto install crossbow in opensolaris

"Crossbow provides the building blocks for network virtualization and resource control by virtualizing the stack and NIC around any service (HTTP, HTTPS, FTP, NFS, etc.), protocol or Virtual machine." More info about crossbow project here First, you need to install BFU. Download it from here here root@opensolarais:~/work# tar xfv SUNWonbld-20060828.i386.tar.bz2 root@opensolarais:~/work# cd onbld If you have an old version of BFU uninstall it first root@opensolarais:~/work# pkgrm SUNWonbld If not just, install it in your system using pkgadd command. root@opensolarais:~/work# pkgadd -d . SUNWonbld If everything is ok, you should have in opt the following: root@opensolaris:/opt/onbld# pwd /opt/onbld root@opensolaris:/opt/onbld# ls bin env etc gk lib man Anyway, the bfu command is not in your path, so you must add the following lines in your .profile file root@opensolaris:~# vi .profile [..] export PATH=/opt/onbld/bin:/opt/onbld/bin/i386: export FASTFS=/opt/onbld/bin/i386/f...

NAT in opensolaris

Firt, you must enable ip forwarding in your opensolaris box. Let's suppose thet we have two network adapters, one is elxl0(80.xxx.xxx.xxx), this is connect to the internet, and the second one is e1000g0 connected to the intranet (172.16.16.1) ipnat.conf file can be located anyware on the system, in /etc/ipnat.rules, /usr/local/etc/ipnat.rules, or /etc/opt/ipf/ipnat.rules In opensolaris, /network/ipv4-forwarding service is using /etc/ipf/ipnat.conf file cd /etc/ipf echo >> ipnat.conf (if it's missing) Insert in ipnat.conf file this line map elxl0 172.16.16.0/24 -> 0/32 The easiest way to load a NAT rule set is: ipnat -CF -f /etc/ipnat.conf To test if the rules from ipnat.rules are loaded, type from root account: ipnat -l The output look like this root@freya:/etc/ipf# ipnat -l List of active MAP/Redirect filters: map elxl0 172.16.16.0/24 -> 0.0.0.0/32 [...] List of active sessions: MAP 172.16.16.2 12769 80.xxx.xxx.xxx 12769 [86.xxx.21.xxx 53] Finally, ...

Freya

Like I said in an old post , my old server is dead. So I bought a new one, and it's running opensolaris(SunOS 5.11) for about 8 days now. Stay tuned for some new posts about network, nat, portforwarding and other interesting stuff from opensolaris