opensim-tools – Diff between revs 21 and 25

Subversion Repositories:
Rev:
Only display areas with differencesIgnore whitespace
Rev 21 Rev 25
1 #!/bin/bash 1 #!/bin/bash
2 ########################################################################### 2 ###########################################################################
3 ## Copyright (C) Wizardry and Steamworks 2012 - License: GNU GPLv3 ## 3 ## Copyright (C) Wizardry and Steamworks 2012 - License: GNU GPLv3 ##
4 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## 4 ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ##
5 ## rights of fair usage, the disclaimer and warranty conditions. ## 5 ## rights of fair usage, the disclaimer and warranty conditions. ##
6 ########################################################################### 6 ###########################################################################
7   7  
8 iptables -F 8 iptables -F
9 iptables -X 9 iptables -X
10 iptables -t nat -F 10 iptables -t nat -F
11 iptables -t mangle -F 11 iptables -t mangle -F
12 iptables -t mangle -X 12 iptables -t mangle -X
-   13  
-   14 # SSH Guard
-   15 iptables -N sshguard
-   16 ip6tables -N sshguard
-   17 iptables -A INPUT -j sshguard
13   18 ip6tables -A INPUT -j sshguard
14 # Drop by default 19 # Drop by default
15 iptables -P INPUT DROP 20 iptables -P INPUT DROP
16 # Always accept loopback 21 # Always accept loopback
17 iptables -A INPUT -i lo -j ACCEPT 22 iptables -A INPUT -i lo -j ACCEPT
18 # Accept related 23 # Accept related
19 iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT 24 iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
20 # SSH 25 # SSH
21 iptables -A INPUT -i eth0 -p tcp --dport 54377 -j ACCEPT 26 iptables -A INPUT -i eth0 -p tcp --dport 54377 -j ACCEPT
22 # OpenSim 27 # OpenSim
23 iptables -A INPUT -i eth0 -p tcp --dport 9000:9004 -j ACCEPT 28 iptables -A INPUT -i eth0 -p tcp --dport 9000:9004 -j ACCEPT
24 iptables -A INPUT -i eth0 -p udp --dport 9000:9004 -j ACCEPT 29 iptables -A INPUT -i eth0 -p udp --dport 9000:9004 -j ACCEPT
25 # Web 30 # Web
26 iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT 31 iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT
27 # Samba 32 # Samba
28 iptables -A INPUT -i eth0 -p tcp --dport 445 -j ACCEPT 33 iptables -A INPUT -i eth0 -p tcp --dport 445 -j ACCEPT
29   34  
30 # Save 35 # Save
31 iptables-save > /etc/iptables/rules.v4 36 iptables-save > /etc/iptables/rules.v4
32   37