Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Firewall?
PostPosted: Tue Sep 21, 2004 1:16 pm 
Offline
Junior Member

Joined: Sat Sep 11, 2004 11:43 pm
Posts: 49
Can anyone help me out with this? I'm looking to create a simple iptables firewall that drops all packets on ports (and doesnt let traffic out on ports) except for one that I specifically open in the firewall.

All of the iptables firewall builders I have found are either way too complicated to figure out how to use or dont work right period.



Can anyone point me in the right direction (man pages dont help with crap), or, if you want to be nice write an example firewall script? :P


thanks!


Top
   
 Post subject:
PostPosted: Tue Sep 21, 2004 2:50 pm 
Offline
Junior Member
User avatar

Joined: Wed Aug 13, 2003 1:25 pm
Posts: 27
This always works for me as a starting point, I think I got the link from some forums...

http://easyfwgen.morizot.net/gen/

-k


Top
   
 Post subject:
PostPosted: Tue Sep 21, 2004 3:07 pm 
Offline
Junior Member

Joined: Sat Sep 11, 2004 11:43 pm
Posts: 49
awesome, that was exactly what i needed.

[root@li5-11 firewall]# ./rc.firewall
Loading kernel modules ...
modprobe: Can't open dependencies file /lib/modules/2.4.26-linode31-1um/modules.dep (No such file or directory)
modprobe: Can't open dependencies file /lib/modules/2.4.26-linode31-1um/modules.dep (No such file or directory)
modprobe: Can't open dependencies file /lib/modules/2.4.26-linode31-1um/modules.dep (No such file or directory)
modprobe: Can't open dependencies file /lib/modules/2.4.26-linode31-1um/modules.dep (No such file or directory)
modprobe: Can't open dependencies file /lib/modules/2.4.26-linode31-1um/modules.dep (No such file or directory)
net.ipv4.tcp_syncookies = 1
net.ipv4.conf.all.rp_filter = 1
net.ipv4.icmp_echo_ignore_broadcasts = 1
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.secure_redirects = 1
net.ipv4.conf.all.log_martians = 1
Flushing Tables ...
Create and populate custom rule chains ...
Process INPUT chain ...
Process FORWARD chain ...
Process OUTPUT chain ...
Load rules for nat table ...
Load rules for mangle table ...


hope those kernel modules werent anything special :o

the firewall seems to work, cause its not responding to pings and i can still connect to it lol.

woot :D


Top
   
 Post subject:
PostPosted: Tue Sep 21, 2004 4:46 pm 
Offline
Senior Member
User avatar

Joined: Fri Oct 24, 2003 3:51 pm
Posts: 965
Location: Netherlands
There's no modules.dep file because there aren't any modules. Loading of kernel modules is disabled inside a Linode - if we could load modules we could compromise the host - if we were that way inclined. Caker builds everything he thinks we'll need into his kernels - and he looks favourably on sensible requests for additions. If you want to be neat, you can check to see what modprobe was trying to load, confirm that functionality is in the kernel that you're using and then comment out the modprobe code.

_________________
/ Peter


Top
   
 Post subject:
PostPosted: Wed Nov 03, 2004 3:54 am 
Offline

Joined: Wed Nov 03, 2004 3:49 am
Posts: 1
firehol is nice too: http://firehol.sourceforge.net/. super simple and powerfull.

nice feature is you can test without worrying about being locked out. it gives 30 seconds to type 'commit' and if no response is given, it reinstates previous firewall rules (if any are already applied).


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


Who is online

Users browsing this forum: dobriain and 3 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