View previous topic :: View next topic |
Author |
Message |
jlmcp Tux's lil' helper
Joined: 27 Apr 2005 Posts: 134
|
Posted: Sat Feb 10, 2007 9:36 pm Post subject: Iptables/firewall: noob Q about cmdline fw's. [SOLVED] |
|
|
All,
(Fully aware that this is a noob Q.)
I have a Gentoo server that I need to add a host-based firewall to. Figured Iptables was the way to go. The amount of information and features available for Iptables is somewhat daunting for a first-timer, so I wanted to see in anyone knows of a 'Iptables for Dummies' guide out there somewhere. For now I just need the basics ... port filtering ... stateful inspection ... etc.
Can someone point me to a resource for noobs?
Thanks in advance.
Jake Lane. _________________ Dell PowerEdge :: 3.8 GHz Pentium 4 :: 1 GB RAM :: Kernel: 2.6.36-gentoo-r2
Last edited by jlmcp on Sun Feb 11, 2007 8:38 pm; edited 2 times in total |
|
Back to top |
|
|
digitall2000 Apprentice
Joined: 21 Dec 2004 Posts: 267
|
Posted: Sat Feb 10, 2007 10:09 pm Post subject: |
|
|
hey,
it's called firestarter
and it is in portage
go to their site
emerge it
lance |
|
Back to top |
|
|
jlmcp Tux's lil' helper
Joined: 27 Apr 2005 Posts: 134
|
Posted: Sat Feb 10, 2007 10:29 pm Post subject: |
|
|
Interesting. Thanks for the tip.
This would be perfect for a workstation/laptop ... but I am working on a remote server (read: only SSH access). Trying to find something I can admin from the command line.
Additional suggestions?
Jake _________________ Dell PowerEdge :: 3.8 GHz Pentium 4 :: 1 GB RAM :: Kernel: 2.6.36-gentoo-r2 |
|
Back to top |
|
|
digitall2000 Apprentice
Joined: 21 Dec 2004 Posts: 267
|
|
Back to top |
|
|
madisonicus Veteran
Joined: 20 Sep 2006 Posts: 1130
|
|
Back to top |
|
|
digitall2000 Apprentice
Joined: 21 Dec 2004 Posts: 267
|
Posted: Sun Feb 11, 2007 3:03 am Post subject: |
|
|
well i am using firestarter
you could to lean some of the arcane syntax of iptables
go to the remote machine
load firestarter
save the iptables rules that it has created
then print them out and study them
it's a working start
lance |
|
Back to top |
|
|
BitJam Advocate
Joined: 12 Aug 2003 Posts: 2513 Location: Silver City, NM
|
Posted: Sun Feb 11, 2007 3:19 am Post subject: |
|
|
I've been using a bash script called rc.firewall. Their main site is down. Perhaps they've stopped supporting it but you can still get version 2.0rc10 (which is what I'm using) from this site.
I'm a bit bummed that the main site is down because it was full of very useful tips and tricks on how to use rc.firewall in all sorts of arcane situations.
I put the script in /etc/init.d and edited it to say which ports I wanted to be open then in /etc/conf.d/net I added these lines: Code: | postup() {
if [ -x /etc/init.d/rc.firewall ]; then
/etc/init.d/rc.firewall
fi
return 0
} |
which causes the firewall script to run every time a network interface comes up. This is usually exactly what you want it to do. |
|
Back to top |
|
|
jlmcp Tux's lil' helper
Joined: 27 Apr 2005 Posts: 134
|
Posted: Sun Feb 11, 2007 8:38 pm Post subject: |
|
|
Thanks all ... appreciate the pointers in the right direction.
This is plenty to get me started.
Jake _________________ Dell PowerEdge :: 3.8 GHz Pentium 4 :: 1 GB RAM :: Kernel: 2.6.36-gentoo-r2 |
|
Back to top |
|
|
|