PDA

View Full Version : Add the VLAN (8021q) kernel module?



peolsson
2014-03-09, 14:26
I just succeeded in installing Kali on my new Utilite Standard device!

My main use will be firewalling. However I'd really need support for VLAN's in the kernel, but it doesn't seem to be compiled in.

Is there any chance to get support for this?

Everything else I need seems to be available though :)

/Peter

steev
2014-03-11, 00:25
Kali isn't really a good firewall distribution...

That being said, you could definitely create your own image using the same scripts that we do.

This is how you would go about modifying the kernel...

I'll do a simple walk through.


git clone https://github.com/offensive-security/gcc-arm-linux-gnueabihf-4.7 ~/compiler
export PATH=${PATH}:/root/compiler/gcc-arm-linux-gnueabihf-4.7/bin

mkdir ~/utilite-firewall
cd ~/utilite-firewall
git clone git://github.com/offensive-security/kali-arm-build-scripts
pushd kali-arm-build-scripts
./build-deps.sh
git clone https://gitorious.org/utilite/utilite.git kernel
cd kernel
cp ../kernel-configs/utilite.config .config
make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig

Make your changes, then exit (and save the config!)

Make sure it builds first.


make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j $(grep -c processor /proc/cpuinfo)

Assuming it builds and there are no errors occurring, then you will cp YOUR new .config to ~/utilite-firewall/kali-arm-build-scripts/kernel-configs/utilite.config

Then when you run the utilite.sh script to build a utilite image, it will build with your kernel config...


cd ~/utilite-firewall/kali-arm-build-scripts
./utilite.sh 1.0.6-firewall