On Linux, installing the WAN Emulation driver depends on the system characteristics. The following process must be used as a general frame only.
Before installing the driver on Linux, it is necessary to have installed:
A common way to install and prepare kernel sources is to execute the following commands:
yum install -y kernel-devel-`uname -r`
cd /usr/src/kernels/`uname -r`
make oldconfig
make prepare
make scripts
cd <neoload>/tools/ipfw/linux
unzip ipfw-linux-src.zip -d ipfw-linux-src
cd ipfw-linux-src
make KERNELPATH=/lib/modules/`uname -r`/build
cd <neoload>/tools/ipfw/linux
cp ipfw-linux-src/ipfw/ipfw .
chmod +x ipfw
cp ipfw-linux-src/dummynet2/ipfw_mod.ko .
cd <neoload>/tools/ipfw/linux
insmod ipfw_mod.ko
Be careful with this command as it may need root privileges to be executed successfully. If it is the case, see step 5.
./ipfw list
The result should be something like: 65535 allow ip from any to any
Be careful with this command as it may need root privileges to be executed successfully. If it is the case, see step 5.
ipfw command. You have to ensure that the account running Neotys Design Studio has sufficient privileges to execute it.visudo<user> ALL=(ALL) NOPASSWD: <neoload>/tools/ipfw/linux/ipfw, /sbin/insmod, /sbin/rmmod
Make sure that there is a line like Defaults:<user> !requiretty
Replace <user> with the user launching Neotys Design Studio.
Replace <neoload> with the Neotys Design Studio installation folder.
<neoload>/conf/agent.properties:In section: [Network]:
ipfw binary in the ipfw.dir key:ipfw.dir=tools/ipfw/linux
ipfw.prefix=sudo
ipfw.mod.load=sudo insmod ipfw_mod.ko
ipfw.mod.unload=sudo rmmod ipfw_mod.ko