Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

6
  • Ok, now I understand. Thank you, your answer is clear and concise, it gives me confidence to setup my vps iptables. Commented Oct 1, 2017 at 14:25
  • @Joey excellent! Do not forget that the settings will be reset after reboot. Use iptables-save to autorestore iptables rules after reboot. Commented Oct 1, 2017 at 14:42
  • I've installed iptables-persistent to save the iptables. Please help me review the 2nd set of rules for HTTPS,DNS and HTTP (edited question) Commented Oct 2, 2017 at 8:30
  • @Joey I would be very grateful if you create a new topic Commented Oct 2, 2017 at 8:45
  • @Joey rule -A OUTPUT -o eth0 -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT accept traffic for ALL established and related connection. You do not need to add tis rule after each allowing rule Commented Oct 2, 2017 at 10:00