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 03-05-2005, 12:17 PM   #1
htmlcoder
LQ Newbie
 
Registered: Feb 2005
Posts: 9

Rep: Reputation: 0
APF blocking tracerts question


Hi:
I noticed that once installed, APF blocks all tracerts to a domain by default. Is this a good idea in all cases, and how can I configure APF to allow tracerts instead?
 
Old 03-05-2005, 02:08 PM   #2
Capt_Caveman
Senior Member
 
Registered: Mar 2003
Distribution: Fedora
Posts: 3,658

Rep: Reputation: 69
Just like most networking tools (like ping for example) they have a good and bad side depending on what you're trying to use them for. Traceroute is extremely usefull in diagnosing networking errors, but at the same time can be used for hostile information gathering about your network topology. So it's a question of which one is more of a priority to you. If you decide to enable traceroute, (I'm not that familiar with APF, but I'd start by checking out the options in the /etc/apf/conf.apf.
 
Old 03-06-2005, 09:36 AM   #3
-Nw- neX
Member
 
Registered: Apr 2004
Distribution: Gentoo, RHL, CentOS, Ubuntu, FreeBSD,
Posts: 88

Rep: Reputation: 15
if you want to block the packet anyhow, you can always look into using a tool like 'hping'. it allows you to run traceroute on spesific ports.

Code:
 # hping -T -p 25 smtp.gmail.com
HPING smtp.gmail.com (eth1 64.233.171.109): NO FLAGS are set, 40 headers + 0 data bytes

[[ hops removed ]]

hop=15 TTL 0 during transit from ip=216.239.46.53 name=UNKNOWN   
hop=15 hoprtt=74.3 ms
hop=16 TTL 0 during transit from ip=216.239.46.44 name=UNKNOWN   
hop=16 hoprtt=73.8 ms
hop=17 TTL 0 during transit from ip=216.239.46.146 name=UNKNOWN   
hop=17 hoprtt=77.9 ms
hop=18 TTL 0 during transit from ip=216.239.46.78 name=UNKNOWN   
hop=18 hoprtt=80.4 ms
len=46 ip=64.233.171.109 ttl=241 id=65074 sport=25 flags=R seq=18 win=8201 rtt=74.3 ms
len=46 ip=64.233.171.109 ttl=241 id=14412 sport=25 flags=R seq=19 win=8201 rtt=76.6 ms
len=46 ip=64.233.171.109 ttl=241 id=25190 sport=25 flags=R seq=20 win=8201 rtt=77.2 ms
len=46 ip=64.233.171.109 ttl=241 id=12159 sport=25 flags=R seq=21 win=8201 rtt=77.5 ms

--- smtp.gmail.com hping statistic ---
22 packets tramitted, 22 packets received, 0% packet loss
round-trip min/avg/max = 18.1/53.3/80.4 ms
hping is VERY useful for diagnosing port connection problems.

Last edited by -Nw- neX; 03-06-2005 at 09:44 AM.
 
  


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
apf blocking ftp port 20 freebies Linux - Networking 1 05-08-2005 01:34 PM
Question about port blocking with Iptables GUIPenguin Linux - Networking 2 10-11-2004 06:25 PM
apf and nfs engnet Linux - Security 1 12-04-2003 12:30 PM
APF Firewall BlackRain Linux - Security 2 06-12-2003 08:40 AM
iptables PREROUTING and blocking question bakuretsu Linux - Security 3 09-12-2002 10:49 AM

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

All times are GMT -5. The time now is 01:42 AM.

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