Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Configure iptables
PostPosted: Fri Jan 23, 2009 5:14 am 
Offline
Senior Newbie

Joined: Thu Jan 22, 2009 7:20 pm
Posts: 11
Website: http://wpthoughts.com/
Location: Sydney
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?


Top
   
 Post subject:
PostPosted: Fri Jan 23, 2009 5:41 am 
Offline
Junior Member

Joined: Wed May 21, 2008 5:34 am
Posts: 46
Website: http://www.eve-razor.com/forum
Location: Austin, Tx
Explain what you mean by "you can't configure iptables"


Top
   
 Post subject:
PostPosted: Fri Jan 23, 2009 5:50 am 
Offline
Senior Member

Joined: Sun Nov 30, 2008 3:40 pm
Posts: 109
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


Last edited by dcelasun on Fri Jan 23, 2009 8:06 am, edited 1 time in total.

Top
   
 Post subject: Re: Configure iptables
PostPosted: Fri Jan 23, 2009 7:15 am 
Offline
Senior Newbie

Joined: Thu Aug 07, 2008 3:50 am
Posts: 13
[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?


Top
   
 Post subject:
PostPosted: Fri Jan 23, 2009 3:35 pm 
Offline
Senior Newbie

Joined: Thu Jan 22, 2009 7:20 pm
Posts: 11
Website: http://wpthoughts.com/
Location: Sydney
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.


Top
   
 Post subject:
PostPosted: Fri Jan 23, 2009 3:41 pm 
Offline
Senior Member

Joined: Wed May 16, 2007 12:46 am
Posts: 71
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?


Top
   
 Post subject:
PostPosted: Fri Jan 23, 2009 3:58 pm 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
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.


Top
   
 Post subject:
PostPosted: Fri Jan 23, 2009 5:00 pm 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group