Answer the question
In order to leave comments, you need to log in
How to set up iptables VPS from firstvds, swears at COMMIT?
Subject.
I tried to set up the simplest rules:
*mangle
:PREROUTING ACCEPT [7:364]
:INPUT ACCEPT [7:364]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:POSTROUTING ACCEPT [0:0]
COMMIT
*filter
:OUTPUT ACCEPT [0:0]
:INPUT DROP [0:0]
:FORWARD ACCEPT [0:0]
-A INPUT ! -i venet0:0 -j ACCEPT
-A INPUT -p tcp -m tcp --tcp-flags ACK ACK -j ACCEPT
-A INPUT -m state --state ESTABLISHED -j ACCEPT
-A INPUT -m state --state RELATED -j ACCEPT
-A INPUT -p udp -m udp --dport 1024:65535 --sport 53 -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type echo-reply -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type destination-unreachable -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type source-quench -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type time-exceeded -j ACCEPT
-A INPUT -p icmp -m icmp --icmp-type parameter-problem -j ACCEPT
-A INPUT -p tcp -m tcp -m multiport -j ACCEPT --dports 22,80,443,10000
-A INPUT -p tcp -m tcp --dport auth -j ACCEPT
COMMIT
iptables-restore: line 39 failed
From: Alexey Atamanov - 2016-07-09 04:53:56
Hello, yes, the error occurs because the conntrack module is not enabled for virtual servers.
--
Sincerely,
Alexey Atamanov,
FirstVDS Technical Support Consultant
From: - 2016-07-09 04:55:41
And what are the solutions? )
From: Alexey Atamanov - 2016-07-09 05:02:31
Use KVM virtualization
--
Sincerely,
Alexey Atamanov,
FirstVDS Technical Support Consultant
Answer the question
In order to leave comments, you need to log in
If you can’t properly configure a firewall on a VPS, why do you need such a VPS? They don't deserve your money.
On all VPS under OpenVZ that I used (firstvds is not among them), conntrack was. I can't even think of a reason to turn it off. Maybe this is a scam like "switch to a more expensive tariff, everything works there"?
Yes, more advice. Instead of a rules file, write a script with iptables commands. That way you don't have to guess where the problem is.
PS Found on their forum: forum.firstvds.ru/viewtopic.php?f=3&t=10759
Re: iptables please enable conntrack and/or state
Message ls » Tue Mar 22, 2016 3:06 pm with a large number of connections will drop the head server
It's a shame. They don't know about nf_conntrack_max.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question