GRE Packet in IPSec not Inbound?
phelps at gnusto.com
Fri Jan 5 09:10:36 CET 2007
"Joshua Perry" writes:
> Ok so the problem I have is that in the interface chain for the interface
> that is connected to the internet Shorewall puts a policy match filter "--m
> policy --dir in --pol none" When the ESP packets come in it matches that
> policy because it is inbound. The GRE packet that gets excised from the ESP
> begins again at INPUT but that packet does not match that rule for some
> reason. At first I wasn't sure if this was by design or not so I manually
> put in a jump rule without the policy match which worked good.
The IPsec packet matches the vpn1_in policy because it matches this rule:
1 152 ACCEPT esp -- * * 184.108.40.206 0.0.0.0/0
It's not surprisng that the packet no longer matches this once the ESP
wrapper is stripped away. If you want to accept the packet because it
matched this rule when it first came in (which I assume is what you
want) then you need to mark it as having arrived on a secure interface.
Have a look at the LARTC HOWTO:
More information about the netfilter