mirror of
https://github.com/MinecraftServerControl/mscs.git
synced 2024-11-15 23:08:18 -07:00
Remove the example iptables rules from the README
This commit is contained in:
parent
8d53360e94
commit
e3c0a76398
43
README
43
README
@ -83,47 +83,8 @@ here are some things you will need to know:
|
||||
* If you wish to run multiple world servers using this script, you will
|
||||
want to open a range of ports (for example 25565 - 25575).
|
||||
|
||||
If you are using iptables, and you should be, here is a very basic ruleset
|
||||
that you can use.
|
||||
|
||||
*filter
|
||||
:INPUT DROP [0:0]
|
||||
:FORWARD DROP [0:0]
|
||||
:OUTPUT DROP [0:0]
|
||||
|
||||
# Handle loopback addresses
|
||||
-A INPUT -i lo -j ACCEPT
|
||||
-A OUTPUT -o lo -j ACCEPT
|
||||
|
||||
# Allow outbound packets if state related, and inbound if established
|
||||
-A OUTPUT -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
|
||||
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
|
||||
# Drop stealth scans
|
||||
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags FIN,SYN,RST,PSH,ACK,URG NONE
|
||||
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags SYN,FIN SYN,FIN
|
||||
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags SYN,RST SYN,RST
|
||||
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags FIN,RST FIN,RST
|
||||
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags ACK,FIN FIN
|
||||
-A INPUT -i eth0 -p tcp -m tcp --tcp-flags ACK,URG URG
|
||||
|
||||
# Allow ICMP pings
|
||||
-A OUTPUT -p icmp -m state --state NEW,ESTABLISHED,RELATED -j ACCEPT
|
||||
-A INPUT -p icmp -m state --state ESTABLISHED,RELATED -j ACCEPT
|
||||
|
||||
# Allow port 22 for SSH
|
||||
-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT
|
||||
|
||||
# Allow port 80 for HTTP
|
||||
-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT
|
||||
|
||||
# Allow port 443 for HTTPS
|
||||
-A INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT
|
||||
|
||||
# Allow ports 25565 - 25575 for Minecraft world servers
|
||||
-A INPUT -m state --state NEW -m tcp -p tcp --dport 25565:25575 -j ACCEPT
|
||||
|
||||
COMMIT
|
||||
See the iptables.rules file for a very basic set of rules that you can use
|
||||
with the Iptables filewall.
|
||||
|
||||
|
||||
Usage
|
||||
|
Loading…
Reference in New Issue
Block a user