fux-kern ebtables regel zusammengefasst in eine Datei

This commit is contained in:
Andre Schmidt 2020-04-17 12:36:08 +02:00
parent cf30c70749
commit e12c8a266e
3 changed files with 4 additions and 2 deletions

View file

@ -1,10 +1,11 @@
# Put your custom commands here that should be executed once # Put your custom commands here that should be executed once
# the system init finished. By default this file does nothing. # the system init finished. By default this file does nothing.
CLOUD_IPV4=/lib/gluon/ebtables/109-local-forward-allow-cloud CLOUD_IPV4=/lib/gluon/ebtables/109-local-forward-allow-speicher
if [ ! -f $CLOUD_IPV4 ]; then if [ ! -f $CLOUD_IPV4 ]; then
echo "Installing cloud IPv4 rule" echo "Installing cloud IPv4 rule"
echo "rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.238/32 -j RETURN')" > $CLOUD_IPV4 echo "rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.238/32 -j RETURN')" > $CLOUD_IPV4
echo "rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.237/32 -j RETURN')" >> $CLOUD_IPV4
/etc/init.d/gluon-ebtables start $CLOUD_IPV4 /etc/init.d/gluon-ebtables start $CLOUD_IPV4
else else
echo "Cloud IPv4 rule already exists" echo "Cloud IPv4 rule already exists"
@ -19,3 +20,4 @@ else
fi fi
exit 0 exit 0

View file

@ -1 +0,0 @@
rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.238/32 -j RETURN')

View file

@ -1 +1,2 @@
rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.238/32 -j RETURN')
rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.237/32 -j RETURN') rule('LOCAL_FORWARD -p IPv4 --ip-src 193.96.224.237/32 -j RETURN')