Gentoo Forums
Gentoo Forums
Quick Search: in
Simple shorewall question [Solved]
View unanswered posts
View posts from last 24 hours

rackathon
 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BoneKracker
l33t
l33t


Joined: 14 Mar 2006
Posts: 776
Location: U.S.A.

PostPosted: Tue Feb 12, 2008 6:45 pm    Post subject: Simple shorewall question [Solved] Reply with quote

Using shorewall for the first time.

Looking at the macros, I notice that macro.Ping contains:
Code:
###############################################################################
#ACTION SOURCE  DEST    PROTO   DEST    SOURCE  ORIGINAL        RATE    USER/
#                               PORT    PORT(S) DEST            LIMIT   GROUP
PARAM   -       -       icmp    8

But when I consult /etc/services and IANA's web site, port 8 is unassigned and ICMP Echo is assigned port 7. So why doesn't this say "7" where it says "8"?

I'm novice with respect to networking, so I am hoping someone will explain this to me.


Last edited by BoneKracker on Tue Feb 12, 2008 8:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Hopeless
Veteran
Veteran


Joined: 05 Aug 2004
Posts: 3041
Location: Ariel

PostPosted: Tue Feb 12, 2008 7:24 pm    Post subject: Reply with quote

I would imagine the "8" refers to the icmp message type rather than a port number.

Take a look at this, and check the output of iptables-save (which will only dump to stdout) to see if that "8" is the argument of an "--icmp-type" in that rule.
_________________
"They took Christmas away
Came downstairs for the shiny presents
They took the tree and the stockings, nothing left but coal
Dont look in the closet either, its greedy
Its not in the spirit of the holiday"
Back to top
View user's profile Send private message
BoneKracker
l33t
l33t


Joined: 14 Mar 2006
Posts: 776
Location: U.S.A.

PostPosted: Tue Feb 12, 2008 8:33 pm    Post subject: Reply with quote

Yes, that's it. I just logged back in to delete my question, but you answered it already! :)

From SHOREWALL-RULES( 5 ):
Quote:
DEST PORT(S) (Optional) -- {-|port-name-number-or-range[,port-name-number-or-range]...}
Destination Ports. A comma-separated list of Port names (from services(5)), port numbers or port ranges; if the protocol is icmp, this column is interpreted as the destination icmp-type(s).


I do appreciate the help.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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
You cannot vote in polls in this forum