Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Fri Oct 08, 2010 12:01 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
I've just setup a new Linode running Debian 5/Drupal 6.x.

Is the Linode "Basic Firewall for Debian Lenny" a good one to use? Are linodes all wide open on the public IP? If so I've got to get something up asap.

Any recommendations would be awesome! I promise to post what I end up doing and any issues. THANKS.

http://library.linode.com/networking/se ... bian-lenny

_________________
kyler d. boudreau
theatereleven.com


Top
   
PostPosted: Fri Oct 08, 2010 12:32 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
theatereleven wrote:
Any recommendations would be awesome!

Shorewall

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Fri Oct 08, 2010 12:59 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Cool thanks!

So are linodes really wide open on the public IP? Is there any NAT going on or anything?

_________________
kyler d. boudreau

theatereleven.com


Top
   
 Post subject:
PostPosted: Fri Oct 08, 2010 1:13 pm 
Offline
Senior Member
User avatar

Joined: Sat Aug 30, 2008 1:55 pm
Posts: 1739
Location: Rochester, New York
There isn't even a screen door on the hatch of the ol' networking submarine, much less something as debilitating as NAT. That's what an Internet connection is... a connection to the Internet. :-)

_________________
Code:
/* TODO: need to add signature to posts */


Top
   
 Post subject:
PostPosted: Fri Oct 08, 2010 3:28 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
theatereleven wrote:
So are linodes really wide open on the public IP? Is there any NAT going on or anything?

There's some port filtering at the Atlanta data center (done by the provider, not by Linode) and Linode does some filtering in the network layer (OSI 3) to stop wayward or malicious Linodes from seeing/sending traffic to/from IPs that they don't own.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Sat Oct 09, 2010 5:32 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Tried to setup Shorewall, but the documentation doesn't match up. There is supposed to an /etc/shorewall directory and I have none.

Removed shorewall by typing:

apt-get remove --purge shorewall-common

Then I rebooted and typed:

apt-get install shorewall-common shorewall-shell

And now /sbin/shorewall version -a says 4.0.15

BUT I then look for configuration files in /etc/shorewall, and there isn't even a shorewall directory. ARGH. so frustrating. Anyone else run into this on Debian?

_________________
kyler d. boudreau

theatereleven.com


Last edited by theatereleven on Sat Oct 09, 2010 6:07 pm, edited 2 times in total.

Top
   
 Post subject:
PostPosted: Sat Oct 09, 2010 6:05 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
shorewall should pull in shorewall-shell, which should pull in shorewall-common. That last one comes with, among other files,
/etc/shorewall/Makefile
/etc/shorewall/shorewall.conf

http://packages.debian.org/lenny/all/sh ... n/filelist

So, if it isn't the case for you, something's seriously screwed >.>


Top
   
 Post subject:
PostPosted: Sat Oct 09, 2010 6:07 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
Just noticed that if I look in WinSCP I see a Shorewall folder under /etc but with Putty, it says that the directory does not exist.

A directory listing in Putty shows it, so I just tried going to the directory again and it is working. I must have been using the CD command like in DOS as opposed to Linux.

THANKS!

The docs say in Lenny to copy all of the files from user/share/doc/shorewall-common/default-config to my /etc/shorewall folder - am I reading this right?

Thanks again man.

_________________
kyler d. boudreau

theatereleven.com


Top
   
 Post subject:
PostPosted: Sat Oct 09, 2010 7:46 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Seems like an overkill for just one LAMP box.

What does Shorewall provide that IPTABLES doesn't?

IPTABLES and FAIL2BAN should be MORE then enough protection, and way less overhead to install/config/maintain/run.

Block everything.
Then allow PUBLIC access to your website (80, 443 if needed).
Then allow PUBLIC or LIMITED access to 25 (for your MTA)
Then allow PUBLIC or LIMITED access to whatever port you setup SSH on.

Simple and secure.

Too simple? Then add FAIL2BAN so that anyone that pounds on one of your services gets auto-dropped via a automagically added IPTABLES rule.


Top
   
 Post subject:
PostPosted: Sat Oct 09, 2010 7:47 pm 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
theatereleven wrote:
The docs say in Lenny to copy all of the files from user/share/doc/shorewall-common/default-config to my /etc/shorewall folder - am I reading this right?

Thanks again man.


I don't know if you're reading it right, I'm perfectly happy with Arno's firewall. ;) But I wouldn't be surprised if they were saying something in style of "The debian default is to (block|allow) everything. To get a config like when you install shorewall from source, copy the default-config files to /etc.". Just read them until they make sense...

And no problem... no problem...

(Good luck!)

PS. vonskippy... I know you like to state your opinions aggressively... but please... cut it down a bit... I agree, partially - a big package like shorewall doesn't seem necessary. On the other hand, "raw" iptables is quite a bit of manual work, and if you're a newb like me and the OP, it's quite dangerous to mess with.
That's why I'd actually recommend going with arno's, which has been linked above. It's not much more than a nice SIMPLE debconf-configurable frontend to iptables, with really nice throttled logging.


Top
   
 Post subject:
PostPosted: Sun Oct 10, 2010 10:53 am 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
rsk wrote:
That's why I'd actually recommend going with arno's, which has been linked above. It's not much more than a nice SIMPLE debconf-configurable frontend to iptables, with really nice throttled logging.


I use firehol for that same reason. It's a script that sets up iptables nicely for you.


Top
   
 Post subject:
PostPosted: Sun Oct 10, 2010 3:43 pm 
Offline
Senior Member

Joined: Wed Jan 21, 2009 7:13 pm
Posts: 126
Location: Portugal
What about csf firewall? Any comments on this?


Top
   
 Post subject:
PostPosted: Sun Oct 10, 2010 7:14 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
glg wrote:
I use firehol for that same reason. It's a script that sets up iptables nicely for you.

I'll throw a second vote in for Firehol. I ended up choosing it when working with some distributions other than Ubuntu (where I had initially just started with ufw), and then started using it on Ubuntu too. I found it among the simplest to configure of the various iptables overlays.

I like that it's configuration is a single bash script, so easily commented, you can add logic if you need to, yet for the basics it's a really simple syntax.

-- David


Top
   
 Post subject:
PostPosted: Mon Oct 11, 2010 1:20 pm 
Offline
Senior Member

Joined: Tue Sep 28, 2010 12:05 pm
Posts: 90
Website: http://www.theatereleven.com
AOL: theatereleven
Location: Santa Monica, CA
rsk and others - thanks for the feedback.

based on these comments I'm definitely ditching shorewall and probably will do a lighter setup. I do just need to block the morons on the NET and Fail2Ban sounds cool too.

I'll post details on what I do for any other newbies out there.

_________________
kyler d. boudreau

theatereleven.com


Top
   
 Post subject:
PostPosted: Mon Oct 11, 2010 2:21 pm 
Offline
Senior Member

Joined: Sat Mar 28, 2009 4:23 pm
Posts: 415
Website: http://jedsmith.org/
Location: Out of his depth and job-hopping without a clue about network security fundamentals
fail2ban and lighter setup don't mix. I dropped it due to its resource consumption.


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


Who is online

Users browsing this forum: No registered users and 4 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