Initial commit
This commit is contained in:
14
installation/firewall.sh
Normal file
14
installation/firewall.sh
Normal file
@@ -0,0 +1,14 @@
|
||||
#!/bin/sh
|
||||
echo "Setting up firewall..."
|
||||
|
||||
apk add -u awall # important -u flag!
|
||||
apk add ip6tables iptables
|
||||
modprobe -v ip_tables
|
||||
modprobe -v ip6_tables
|
||||
modprobe -v iptable_nat #if NAT is used
|
||||
|
||||
# Register services
|
||||
rc-update add iptables
|
||||
rc-update add ip6tables
|
||||
rc-service iptables start
|
||||
rc-service ip6tables start
|
||||
Reference in New Issue
Block a user