On 19/08/2013 21:02, Karl Pielorz wrote:


--On 17 August 2013 17:32:18 +0100 Arthur Chance <free...@qeng-ho.org>
wrote:

What do you get in the jail from

sysctl net.fibs
sysctl net.my_fibnum

?

I didn't know those sysctl's existed :)

I only stumbled on them by doing

        sysctl -a | grep fib

It's often surprising what you find that way.

> If I fire up the jail, and jexec
to it, and run the above - I get:

"
root@jail:/ # sysctl net.fibs
net.fibs: 4
root@jail:/ # sysctl net.my_fibnum
net.my_fibnum: 0
"

(I have 'ROUTETABLES=4' in the Kernel, so the 4 above is correct).


That's for a jail which has:

"
jail {
     jid = 100;
     exec.fib = "1";
  ...
"

In /etc/jail.conf

So, on the surface it looks like 'exec.fib' is being ignored :( I tried
it without quotes as well, to no avail.


In the source the exec.fib parameter is given as an integer, so the quotes probably shouldn't be there, but I'm not sure whether it matters. There's definitely a setfib call in the source that's done if exec.fib exists. All I can think of right now is that you try firing up the jail using the -v verbose flag. This should show everything the jail command does as the jail is created.

--
In the dungeons of Mordor, Sauron bred Orcs with LOLcats to create a
new race of servants. Called Uruk-Oh-Hai in the Black Speech, they
were cruel and delighted in torturing spelling and grammar.

                _Lord of the Rings 2.0, the Web Edition_
_______________________________________________
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"

Reply via email to