The output should look similar to: Chain INPUT (policy ACCEPT 0 packets, 0 bytes) If iptables-persistent was already installed, reconfigure the package so that it recognizes your new rulesets: sudo dpkg-reconfigure iptables-persistentĬonfirm that your firewall rules are active: sudo iptables -vL If you don’t install this software, your firewall rules will not persist through reboots of your Linode. Import the rulesets into your firewall to activate them: sudo iptables-restore < ~/v4 Steam currently supports multiplayer play over IPv4 only, so a Steam server only needs basic IPv6 firewall rules, shown below. This Steam Support page for more information. Steam can also use multiple port ranges for various purposes, but they should only be allowed if your game(s) make use of those services. Some Steam games require a few additional rules which can be found in our A FORWARD -m limit -limit 3/min -j LOG -log-prefix "iptables_FORWARD_denied: " -log-level 7 # Reject all other inbound. A INPUT -m limit -limit 3/min -j LOG -log-prefix "iptables_INPUT_denied: " -log-level 7 # Log what was incoming but denied (optional but useful). ![]() A INPUT -m state -state ESTABLISHED,RELATED -j ACCEPT # Allow inbound traffic from established connections. ![]() A INPUT -p udp -m udp -dport 4380 -j ACCEPT A INPUT -p udp -m udp -dport 27000:27030 -j ACCEPT A INPUT -p tcp -m state -state NEW -dport 22 -j ACCEPT A INPUT -p icmp -m state -state NEW -icmp-type 8 -j ACCEPT # Allow all loopback (lo0) traffic and reject traffic # to localhost that does not originate from lo0. Iptables (which is set in Linode’s Ubuntu and Debian images by default), follow theĬonfigure your Firewall Using IPTables section.įirewalld (as in Linode’s CentOS 7 and Fedora images), follow theĬonfigure your Firewall Using FirewallD section.Ĭreate two files named v4 and v6 in your home directory to record your IPv4 and IPv6 firewall rules: Be sure to give the steam user sudo privileges. Linode’s Steam guides, as well as Valve’s official documentation. Make the username steam to coincide with the rest of Setting Up and Securing a Compute Instance guide to:Īdd a limited Linux user to your server. Game servers and clients are an especially ripe target for attack. Using GNU Screen to Manage Persistent Terminal Sessions guide. For more information about how screen works, review the rest of our ![]() Install the screen utility, which will be used later when running SteamCMD. If you have not already done so, create a Linode account and Compute Instance. If you’re not familiar with the sudo command, you can check our Commands that require elevated privileges are prefixed with sudo. This guide is written for a non-root user.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |