wja0 / IoT-Botnet-Attack-Detection-Module

Development of Botnet Detection Module for Traffic-Based IoT Devices Using Deep Learning
13 stars 3 forks source link

a #7

Open Kim-Gang-Min opened 2 years ago

Kim-Gang-Min commented 2 years ago

iptables -A FORWARD -i eth0 -o eth1 -m state --state RELATED,ESTABLISHED -j ACCEPT iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT

cat <<'EOF' >/etc/network/if-up.d/iptables

!/bin/sh

iptables-restore < /etc/iptables/rules.v4 EOF

Kim-Gang-Min commented 2 years ago

pre-up iptables-restore < /etc/iptables.rules

pst-down iptables-save -c > /etc/iptables.rules