|
|
我办公室里的电脑都是在192.168.0这个网段的,但有些同事工作时打游戏,老总对此很不满要我禁止一部分的IP上网,就是说,只让192.168.0.1~10上网,不让192.168.0.11~254这部分IP上网,我们所有电脑都是连在一个交换机上的。
这是我的rc.local文件内容:
#!/bin/sh
#
# This script will be executed *after* all the other init scripts.
# You can put your own initialization stuff in here if you don't
# want to do the full Sys V style init stuff.
touch /var/lock/subsys/local
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
请问我该添加哪些脚本才能达到上面的目的? |
|