Unix Technical Forum

Re: ICMP record route

This is a discussion on Re: ICMP record route within the mailing.openbsd.tech forums, part of the OpenBSD category; --> Yes Daniel, it works, I don't know why it didn't yesterday. Once, yesterday, I did notice that lingering states ...


Go Back   Unix Technical Forum > Unix Operating Systems > OpenBSD > mailing.openbsd.tech

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-18-2008, 06:32 AM
Pillai, Gopakumar
 
Posts: n/a
Default Re: ICMP record route

Yes Daniel, it works, I don't know why it didn't yesterday. Once,
yesterday, I did notice that lingering states (I am using NAT) caused me
not to forward traffic, could be a similar issue.

Now its working. I had only the rules I showed in my earlier mails.

Thanks a lot.

--Gopu

-----Original Message-----
From: Daniel Hartmeier [mailto:daniel@benzedrine.cx]
Sent: Tuesday, August 05, 2003 6:20 AM
To: Pillai, Gopakumar (Gopu)
Cc: Alain Deschamps; tech@openbsd.org
Subject: Re: ICMP record route


On Mon, Aug 04, 2003 at 03:00:11PM -0600, Pillai, Gopakumar (Gopu)
wrote:

> If I put these rules it does not forward packets.
> pass in all allow-opts
> pass out all allow-opts
>
> If I put the following it forwards:
> pass in proto icmp all allow-opts
> pass out proto icmp all allow-opts


That doesn't make sense, I suspect some other mistake in the ruleset
(like a subsequent matching rule without allow-opts in the first case).

The former should work just as well (since it also applies to ICMP
packets), assuming these rules are indeed the last matching rules of the
ruleset for all ICMP packets. pfctl -vvsr will tell you whether rules
are last matching.

> We need to add two rule if options are set, then is keep-state with
> allow-opts doing its job?


Yes, the allow-opts flag is copied from the rule to the state entry
(when the rule creates state), and honoured for all packets subsequently
matching the state.

You'll need two state entries (one for incoming packets on the internal
interface, one for outgoing packets on the external interface). Two
rules like

pass in on $int_if inet proto icmp all keep state allow-opts
pass out on $ext_if inet proto icmp all keep state allow-opts

will have that effect.

And no, there's no simpler solution. IP options are rarely needed and
often harmful, hence you need to know what you are doing when you want
to pass them. Note that allow-opts in a state entry will allow any kind
of IP option in either direction.

Daniel

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 02:43 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com