Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm often on my corporate network but also need to be on another network simultaneously. At the moment I have to manually switch back and forth between the two. I'm using ubuntu 10.04. I've come across an excellent document that explains how to do this: "Linux Advanced Routing & Traffic Control HOWTO" by Bart Hubert. He mentions:

make sure that your kernel is compiled with the "IP: advanced router" and "IP: policy routing" features

I've downloaded the kernel sources, but I don't find any config options with names like these in them.

sudo apt-get build-dep --no-install-recommends linux-image-$(uname -r)
sudo apt-get source linux-image-$(uname -r)

Searching doesn't reveal anything

~/kernelBuild/linux-2.6.35/debian.master$ grep -iR policy . | grep -i routing

So my question can I tell if the kernel I have has these config options. Failing that, how do I build a kernel that does support these things?

Additional use cases for this knowledge. (1) At work with desktop computer plugged into corporate network. Plug 3g phone into USB port. My corporate network wont allow me to access my external servers over ssh, but the 3g phone will. (2) At home on the corporate VPN, but would like to access my other local network computers.

share|improve this question
When linking a corporate network to some other network, the corporation would usually want a firewall. – RedGrittyBrick Sep 9 '11 at 8:57
If ip rule list returns a list of default rules, the feature is enabled. If it returns an error message -- not. – grawity Sep 9 '11 at 9:00
up vote 2 down vote accepted


grep CONFIG_IP_ADVANCED_ROUTER /boot/config-$(uname -r)
grep CONFIG_IP_MULTIPLE_TABLES /boot/config-$(uname -r)

The compilation of your own kernel is rather broad theme, and there are plenty of manuals on the internet about it.

share|improve this answer
That did it, thx! Now hopefully, I can come back here after I've got it setup and put the instructions on how to do multi-interfaces here too. – ftravers Sep 11 '11 at 3:53

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.