doktor5000 wrote:How do you want to exclude users? From logging in via a specific interface, or from using it from the inside?
REJECT $FW net:eth1 - - - - - user1
REJECT $FW net:eth1 - - - - - user2
REJECT $FW net:eth1 - - - - - user3
REJECT $FW net:eth1 - - - - - user4
ah7013 wrote:Is shorewall enabled on eth1? If so, you could just modify /etc/shorewall/rules and append some rules to block the specific users. For example adding:
- Code: Select all
REJECT $FW net:eth1 - - - - - user1
REJECT $FW net:eth1 - - - - - user2
REJECT $FW net:eth1 - - - - - user3
REJECT $FW net:eth1 - - - - - user4
to that file would reject any outgoing packets from user1, user2, user3 and user4 on eth1. Once you have modified the file just restart shorewall (systemctl restart shorewall.service)
ACCEPT $FW net:eth0
ACCEPT $FW net:eth2
ACCEPT $FW net:eth3
ACCEPT $FW net:eth4
ACCEPT $FW net:eth5
Users browsing this forum: No registered users and 1 guest