opensim-tools – Blame information for rev 84
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
21 | eva | 1 | #!/bin/bash |
2 | ########################################################################### |
||
3 | ## Copyright (C) Wizardry and Steamworks 2012 - License: GNU GPLv3 ## |
||
4 | ## Please see: http://www.gnu.org/licenses/gpl.html for legal details, ## |
||
5 | ## rights of fair usage, the disclaimer and warranty conditions. ## |
||
6 | ########################################################################### |
||
7 | |||
8 | iptables -F |
||
9 | iptables -X |
||
10 | iptables -t nat -F |
||
26 | eva | 11 | iptables -t nat -X |
21 | eva | 12 | iptables -t mangle -F |
13 | iptables -t mangle -X |
||
14 | |||
25 | eva | 15 | # SSH Guard |
16 | iptables -N sshguard |
||
17 | iptables -A INPUT -j sshguard |
||
18 | ip6tables -A INPUT -j sshguard |
||
21 | eva | 19 | # Drop by default |
20 | iptables -P INPUT DROP |
||
21 | # Always accept loopback |
||
22 | iptables -A INPUT -i lo -j ACCEPT |
||
80 | vero | 23 | # Measure idle for suspend |
84 | vero | 24 | iptables -A INPUT -i eth0 -p tcp --dport 9000 -j IDLETIMER --timeout 600 --label spectacledowl |
81 | vero | 25 | # Shaping traffic |
26 | iptables -t mangle -A PREROUTING -p tcp --dport 9000 -j TOS --set-tos Minimize-Delay |
||
83 | vero | 27 | iptables -t mangle -A PREROUTING -p udp --dport 9000 -j TOS --set-tos Minimize-Delay |
82 | vero | 28 | iptables -t mangle -A PREROUTING -p tcp --sport 9000 -j TOS --set-tos Minimize-Delay |
83 | vero | 29 | iptables -t mangle -A PREROUTING -p udp --sport 9000 -j TOS --set-tos Minimize-Delay |
21 | eva | 30 | # Accept related |
31 | iptables -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT |
||
32 | # SSH |
||
33 | iptables -A INPUT -i eth0 -p tcp --dport 54377 -j ACCEPT |
||
34 | # OpenSim |
||
27 | eva | 35 | iptables -A INPUT -i eth0 -p tcp --dport 9000:9000 -j ACCEPT |
36 | iptables -A INPUT -i eth0 -p udp --dport 9000:9000 -j ACCEPT |
||
21 | eva | 37 | # Web |
38 | iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT |
||
39 | # Samba |
||
40 | iptables -A INPUT -i eth0 -p tcp --dport 445 -j ACCEPT |
||
41 | |||
42 | # Save |
||
43 | iptables-save > /etc/iptables/rules.v4 |