LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 12-09-2010, 11:13 AM   #1
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Rep: Reputation: 30
Help with fine-tuning Firestarter


Hello Group,

I need to allow ICMP ping for one host only... I found out how to enable it to all hosts (ICMP Filtering, check ping) but I would like to reduce the scope to one host...

I know I can add rules in the user_post script but I can't find the correct iptables command ...

thanks!
 
Old 12-09-2010, 11:27 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
To allow the Firestarter host to ping one host (example):
Code:
iptables -A OUTPUT -p ICMP --icmp-type 8 -d 192.168.45.217 -j ACCEPT
To allow the Firestarter host to pinged by one host (example):
Code:
iptables -A INPUT -p ICMP --icmp-type 8 -s 192.168.45.217 -j ACCEPT
 
Old 12-09-2010, 12:53 PM   #3
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by win32sux View Post
To allow the Firestarter host to pinged by one host (example):
Code:
iptables -A INPUT -p ICMP --icmp-type 8 -s 192.168.45.217 -j ACCEPT
Hello, tried that already and it won't work... It look like firestarter has some special filtering rules for ICPM...
 
Old 12-09-2010, 01:10 PM   #4
LuggerHouse
Member
 
Registered: May 2004
Location: Montreal,QC,Canada
Distribution: Fedora Core 7
Posts: 210

Original Poster
Rep: Reputation: 30
Got it!!

I added

$IPT -A INPUT -p icmp --icmp-type echo-request -m limit --limit 1/s -s 192.168.20.1 -j ACCEPT
$IPT -A FORWARD -p icmp --icmp-type echo-request -m limit --limit 1/s -s 192.168.20.1 -j ACCEPT

in the /etc/firestarter/user_pre...

I was always using user_post file...

Well It works now

P.S. 192.168.20.1 is not the Ip I used ;-)
 
Old 12-09-2010, 05:49 PM   #5
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
Actually, the user-post file would work fine (just use -I instead of -A in your rules).
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fine tuning monitor sunils1973 Linux - Hardware 1 08-19-2008 03:24 AM
Fine tuning my MTU cwwilson721 Linux - Networking 2 05-24-2006 10:40 AM
Fine-tuning samba TomalakBORG Linux - Networking 5 01-31-2006 11:34 PM
KDE fine-tuning LazyP Linux - General 3 01-26-2006 10:24 AM
mandrake 9.1 fine tuning oobe Mandriva 15 09-08-2003 03:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration