Trying to setup a ARK server

General support questions
Post Reply
Lemonz
Posts: 1
Joined: 2019/09/12 09:26:39

Trying to setup a ARK server

Post by Lemonz » 2019/09/12 10:22:04

Hello, I dont have too much experience with linux, let alone fully command based stuff.
Ive done a small amount with Ubuntu and Mint but i always end back up on windows due to not knowing how to get my games working.

So im wanting to setup a CentOS for game hosting since i keep hearing that windows hosted servers are really bad.
This guide i am using https://www.servermania.com/kb/articles ... -centos-7/

currently the problems i am running into are as follows

Code: Select all

iptables -A INPUT -p udp -m udp -sport 27015 –dport 1025:65355 -j ACCEPT
Bad argument `–sport'
or
Bad argument `27015'

and next

Code: Select all

echo "fs.file-max=100000" >> /etc/sysctl.conf
sysctl -p /etc/sysctl.conf
echo -e "* soft nofile 1000000\n* hard nofile 1000000" >> /etc/security/limits.conf
First line works
sysctl: cannot stat /proc/sys/"fs/file-max: No such file or directory
fs.file-max = 100000
fs.file-max = 100000
fs.file-max = 100000

Any help would be very appreciated

User avatar
TrevorH
Forum Moderator
Posts: 26572
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Trying to setup a ARK server

Post by TrevorH » 2019/09/13 06:37:50

Bad argument `–sport'
Because it should be --sport. But that looks like a rubbish rule so I'd not use it. Also, if this is CentOS 7 then the running firewall may well be the default of firewalld in which case you shouldn't be using iptables to manipulate the rules at all.
sysctl: cannot stat /proc/sys/"fs/file-max: No such file or directory
fs.file-max = 100000
fs.file-max = 100000
fs.file-max = 100000
That looks like you ran the echo you quoted several times in a row. The >> bit of that appends the thing you echo to the end of the file so each time you run it, it adds another line saying the same thing. The error about no such file or directory is because one time you ran it, you typo'd and it included a leading quote in the content of the file. You need to edit /etc/sysctl.conf and remove the invalid line and the duplicates (except one).
CentOS 5 died in March 2017 - migrate NOW!
CentOS 6 goes EOL sooner rather than later, get upgrading!
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - General Support”