Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Jun 29, 2004 8:16 am 
Offline
Junior Member

Joined: Wed Jan 14, 2004 9:55 am
Posts: 44
I am wondering what the best way to block certains IPs from a Linode would be.

Would it be best to install a full firewall product? My main concern is something like iptables seems to need a custom kernel, and I do not know anything about UML or the way the kernel works in a UML environment.

I am very comfortable re-compiling kernels on normal boxes, but I am not sure how this would affect a linode.

Anyone have any suggestions?


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 9:40 am 
Offline
Senior Member

Joined: Fri Feb 13, 2004 11:30 am
Posts: 140
Location: England, UK
iptables doesn't need a custom kernel. It's true that iptables is controlled from kernel options, but most kernels - including the standard ones on Linode - enable it by default.

I'm not quite sure how to use it myself, but I can tell you that it's enabled and works - at least on my Linode, and I haven't done anything special with iptables.


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 10:56 am 
Offline
Junior Member

Joined: Wed Jan 14, 2004 9:55 am
Posts: 44
Hmm I tried to emerge iptables in gentoo on my linode, but it would not compile because it could not access the kernel source.

Any ideas? I coudl emerge one of the various kernel sources but I would wonder if it is different the the actual kernel being used on the linode.


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 11:01 am 
Offline
Junior Member

Joined: Fri Jun 25, 2004 10:31 am
Posts: 27
iptables comesby deafult because it is required by the kernal to run (i think does on my home box) so try that i use webmin to edit my tptables rules


Top
   
PostPosted: Tue Jun 29, 2004 11:54 am 
Offline
Senior Newbie

Joined: Mon Jun 21, 2004 9:55 pm
Posts: 19
Website: http://kiwiinjection.com
Crisis wrote:
I am wondering what the best way to block certains IPs from a Linode would be.

If you already know which ips you want to block, put the ips in /etc/hosts.deny . (ALL: aaa.bbb.ccc.ddd)


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 12:32 pm 
Offline
Junior Member

Joined: Wed Jan 14, 2004 9:55 am
Posts: 44
Will /etc/hosts.deny block all traffic from those IPS (TCP, UDP, ICMP etc) ?


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 12:37 pm 
Offline
Linode Staff
User avatar

Joined: Tue Apr 15, 2003 6:24 pm
Posts: 3090
Website: http://www.linode.com/
Location: Galloway, NJ
Crisis wrote:
Hmm I tried to emerge iptables in gentoo on my linode, but it would not compile because it could not access the kernel source.

Lame bug in Gentoo. From another Linode user: "One work-around is to comment out the check_KV function in the iptables build."

All it wants is version.h...

-Chris


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 12:50 pm 
Offline
Junior Member

Joined: Wed Jan 14, 2004 9:55 am
Posts: 44
Thanks I got it installed and have been able to add rules to block IPs ;)


Top
   
 Post subject:
PostPosted: Tue Jun 29, 2004 12:58 pm 
Offline
Senior Newbie

Joined: Mon Jun 21, 2004 9:55 pm
Posts: 19
Website: http://kiwiinjection.com
Crisis wrote:
Will /etc/hosts.deny block all traffic from those IPS (TCP, UDP, ICMP etc) ?

man hosts_access


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