#!/bin/bash RETVAL=0 initialize() { # Initialize $TYPE tables echo -n $" $TYPE tables: " if [ -r /etc/sysconfig/ebtables.$TYPE ]; then /sbin/ebtables -t $TYPE --atomic-file /etc/sysconfig/ebtables.$TYPE --atomic-commit > /dev/null || RETVAL=1 else echo -n "not configured" fi if [ $RETVAL -eq 0 ]; then echo -n $"[ OK ]" echo -ne "\r" else echo -n $"[FAILED]" echo -ne "\r" fi } case $1 in start) # Initialize filter tables TYPE=filter initialize # Initialize NAT tables echo TYPE=nat initialize # Initialize broute tables echo TYPE=broute initialize ;; stop) /sbin/ebtables -t filter --init-table || RETVAL=1 /sbin/ebtables -t nat --init-table || RETVAL=1 /sbin/ebtables -t broute --init-table || RETVAL=1 for mod in $(grep -E '^(ebt|ebtable)_' /proc/modules | cut -f1 -d' ') ebtables; do /sbin/rmmod $mod || RETVAL=1 done if [ $RETVAL -eq 0 ]; then echo -n $"[ OK ]" echo -ne "\r" else echo -n $"[FAILED]" echo -ne "\r" fi ;; save) echo -n $"Saving Ethernet bridge filtering (ebtables): " /sbin/ebtables -t filter --atomic-file /etc/sysconfig/ebtables.filter --atomic-save || RETVAL=1 /sbin/ebtables -t nat --atomic-file /etc/sysconfig/ebtables.nat --atomic-save || RETVAL=1 /sbin/ebtables -t broute --atomic-file /etc/sysconfig/ebtables.broute --atomic-save || RETVAL=1 if [ $RETVAL -eq 0 ]; then echo -n $"[ OK ]" echo -ne "\r" else echo -n $"[FAILED]" echo -ne "\r" fi ;; *) echo "usage: ${0##*/} {start|stop|save}" >&2 exit 1 ;; esac # vim:set ts=2 sw=2 ft=sh et:
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
awk | Folder | 0755 |
|
|
coreutils | Folder | 0755 |
|
|
dbus-1 | Folder | 0755 |
|
|
dovecot | Folder | 0755 |
|
|
gcc | Folder | 0755 |
|
|
getconf | Folder | 0755 |
|
|
git-core | Folder | 0755 |
|
|
grubby | Folder | 0755 |
|
|
imunify-notifier | Folder | 0755 |
|
|
initscripts | Folder | 0755 |
|
|
kcare | Folder | 0755 |
|
|
linux-boot-probes | Folder | 0755 |
|
|
man-db | Folder | 0755 |
|
|
microcode_ctl | Folder | 0755 |
|
|
openldap | Folder | 0755 |
|
|
openssh | Folder | 0755 |
|
|
os-probes | Folder | 0755 |
|
|
p11-kit | Folder | 0755 |
|
|
plymouth | Folder | 0755 |
|
|
selinux | Folder | 0755 |
|
|
smartmontools | Folder | 0755 |
|
|
sudo | Folder | 0755 |
|
|
tuned | Folder | 0755 |
|
|
utempter | Folder | 0755 |
|
|
chrony-helper | File | 6.37 KB | 0755 |
|
ebtables | File | 1.66 KB | 0755 |
|
exim.daemon | File | 758 B | 0755 |
|
gam_server | File | 90.73 KB | 0755 |
|
generate-rndc-key.sh | File | 546 B | 0755 |
|
glib-pacrunner | File | 15.73 KB | 0755 |
|
gnupg-pcsc-wrapper | File | 19.3 KB | 0755 |
|
gpg-check-pattern | File | 102.95 KB | 0755 |
|
gpg-preset-passphrase | File | 86.39 KB | 0755 |
|
gpg-protect-tool | File | 185.57 KB | 0755 |
|
gpg2keys_curl | File | 44.81 KB | 0755 |
|
gpg2keys_finger | File | 61.34 KB | 0755 |
|
gpg2keys_hkp | File | 53 KB | 0755 |
|
gpg2keys_ldap | File | 61.02 KB | 0755 |
|
grepconf.sh | File | 253 B | 0755 |
|
mlx4-setup.sh | File | 2.48 KB | 0755 |
|
newns | File | 7.03 KB | 0755 |
|
nm-dhcp-helper | File | 15.12 KB | 0755 |
|
nm-dispatcher | File | 47.7 KB | 0755 |
|
nm-iface-helper | File | 839.36 KB | 0755 |
|
nm-ifdown | File | 155 B | 0755 |
|
nm-ifup | File | 153 B | 0755 |
|
platform-python | File | 6.98 KB | 0755 |
|
rdma-init-kernel | File | 5.59 KB | 0755 |
|
rdma-set-sriov-vf | File | 3.05 KB | 0755 |
|
report-command-error | File | 7.29 MB | 0755 |
|
run-with-intensity | File | 9.14 MB | 0755 |
|
tcawmgr.cgi | File | 19.56 KB | 0755 |
|
truescale-serdes.cmds | File | 8.5 KB | 0755 |
|
urlgrabber-ext-down | File | 2.54 KB | 0755 |
|
virt-what-cpuid-helper | File | 7.02 KB | 0755 |
|