Raised This Month: $ Target: $400
 0% 

[Tut] Linux Iptables


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 08-04-2011 , 17:45   Re: [Tut] Linux Iptables
Reply With Quote #7

Quote:
Originally Posted by Obsidian View Post
Denyhosts is worth a mention as well.

Also, ufw may be simpler for a newcomer to the server admin world to understand; it's a syntax sweetener for iptables, and much more straightforward to work with. I know there's quite a few tuts on Ubuntu's forums about it, so no need to go over it, just link to them.
Ya UFW is great for new linux admins BUT it is only on Ubuntu by default. And it does not allow for some of the more complex rules. here is a list of things it can do

https://wiki.ubuntu.com/UncomplicatedFirewall

Also on that page is links to the manuals if you are using those versions of Ubuntu.

As for Denyhosts that is great for stopping people who keep attacking you but i rather just use iptables to only allow my IP to access SSH. I also have a port knocking set up just in case my ip changes.

I will add links to UFW to the tut for Ubuntu users tho thanks for the info.


Quote:
Originally Posted by Rizla View Post
what i meant by changing the ports, obv you should still use a firewall, but it makes it more easy to secure.
Like i said before changing to port just makes it so alot of automated scripts do not see SSH running on 22 but if they run a port scan they can still see the SSH banner. The best way to make SSH secure is the following.
  • Use Protocol 2 ONLY
  • Do not ForwardX11 unless you have a GUI installed (Should not on servers)
  • Use AllowUsers
  • Turn PAsswordAuthentication off
  • Prevent Root Login
  • Change Port

I would not allow external connections tell that is at least done there is more you can do with chroot and PAM. But that will keep most script kiddies out.

+ ?
__________________

Last edited by Mavrick4283; 08-04-2011 at 17:54.
Mavrick4283 is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:38.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode