Linode Forum
https://forum.linode.com/

Configure iptables
https://forum.linode.com/viewtopic.php?f=19&t=3841
Page 1 of 1

Author:  sphinx [ Fri Jan 23, 2009 5:14 am ]
Post subject:  Configure iptables

I'm running Ubuntu 8.04 LTS x86 on a Linode 360.

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 but when I follow the instructions, they don't work.

Any ideas on the best ways to secure my server?

Author:  MrRx7 [ Fri Jan 23, 2009 5:41 am ]
Post subject: 

Explain what you mean by "you can't configure iptables"

Author:  dcelasun [ Fri Jan 23, 2009 5:50 am ]
Post subject: 

I'm not sure why you can't do it, especially because those instructions are valid for all Ubuntu server setups.

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:
Code:
ufw deny from 111.111.111.111

or to allow one:
Code:
ufw allow from 111.111.111.111

Author:  MrNod [ Fri Jan 23, 2009 7:15 am ]
Post subject:  Re: Configure iptables

[quote="sphinx"]If I can't configure iptables such as those at the competitor but when I follow the instructions, they don't work.
[/quote]

FWIW I use the competitor instructions and it works fine on my Linode 'slice' ;-)

Can you explain what problem you're getting?

Author:  sphinx [ Fri Jan 23, 2009 3:35 pm ]
Post subject: 

Basically, when I entered the command 'iptables -L' it said the command iptables doesn't exist.

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.

Author:  A32 [ Fri Jan 23, 2009 3:41 pm ]
Post subject: 

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?

Author:  hybinet [ Fri Jan 23, 2009 3:58 pm ]
Post subject: 

A32 wrote:
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.

Author:  mwalling [ Fri Jan 23, 2009 5:00 pm ]
Post subject: 

sphinx wrote:
I would have thought that iptables would have worked by default.


The distro templates contain whats needed to run sshd and the package manager.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/