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

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


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

PostPosted: Tue Feb 12, 2008 11: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 Wed Feb 13, 2008 1:34 am; edited 1 time in total
Back to top
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3744
Location: sleeping in the bathtub

PostPosted: Wed Feb 13, 2008 12:24 am    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.
_________________
"You have to invite me in"
Back to top
View user's profile Send private message
BoneKracker
Veteran
Veteran


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

PostPosted: Wed Feb 13, 2008 1:33 am    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
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