Configure iptables
I'm wanting to configure iptables, but I can't seem to do so. If I can't configure iptables such as those at the competitor
Any ideas on the best ways to secure my server?
7 Replies
If you can, however, use "ufw" (Uncomplicated Firewall) developed by Ubuntu which handles the iptables stuff for you. Install it with "apt-get install ufw".
If you want to ban an IP for example:
ufw deny from 111.111.111.111
or to allow one:
ufw allow from 111.111.111.111
If I can't configure iptables such as those at the competitor but when I follow the instructions, they don't work.
FWIW I use the competitor instructions and it works fine on my Linode 'slice'
Can you explain what problem you're getting?
So I tried running apt-get install iptables, and then all the iptables commands started working.
I would have thought that iptables would have worked by default.
Why install Ubuntu and not Debian? What's in Ubuntu that's not in Debian that you could use on your node?
@A32:
Not to derail anything but I have some burning questions..
Why install Ubuntu and not Debian? What's in Ubuntu that's not in Debian that you could use on your node?
1) Ubuntu is configured to be n00b-friendly by default. Of course you can also configure Debian to behave like Ubuntu, but I mean "default" as in "out of the box".
2) Because of 1), there are a lot more resources (tutorials, etc.) on the 'net that a n00b can use to set up a Ubuntu server. By contrast, reliable tutorials involving Debian tend to focus on more advanced topics.
3) Ubuntu comes with official tech support from Canonical.
4) Debian Etch is outdated. (Etch has more RC bugs than Lenny.) And if you're a n00b you don't want to try upgrading.
BTW, I use both Debian Lenny and Ubuntu Intrepid. Not much difference really, when it comes to the server.
@sphinx:
I would have thought that iptables would have worked by default.
The distro templates contain whats needed to run sshd and the package manager.