var sidebar_align = 'right';
var content_container_margin = parseInt('350px');
var sidebar_width = parseInt('330px');
Restricting IPs from the Shell
HI - was hoping someone could help me with this ..
Im running FreeBSD6.1 and have about 10 IPs binded using /etc/rc.conf
I want to be able to add a new user account for someone to use - but restrict them to using only one IP address.
So if they try to bind to the other 9 IPS on the box - it will fail.
Is this kind of setup possible?
You would want to be using IPFW for this. I suggest recompiling your kernel, however you can load it as a module using:
WARNING - If you type that command, it will lock you out of your server. Either run it locally, or run something like kldload ipfw && ipfw add allow ip from any to any
I'm not going to give you a tutorial on IPFW, but you can use the "uid x" suffix on your commands to form a rule such as:
And then at the end of the list, make it deny any rules that did not match.
ipfw add 1000 allow ip from 188.8.131.52 to any out xmit em0 uid yourusername
Thanks - I was thinking IPFW would be my only hope - im a big fan of pf and was hoping there would be some utility out there rather then firewall.
Guess not - thanks for your reply though!