List Info

Thread: One way tunnel




One way tunnel
user name
2007-03-04 21:03:23
Hi all,
 
I've set-up a tunnel between an openwrt White Russian 0.9 release and debian sid with openswan 2.4.6 with a 2.6.17 kernel.
 
First digression to note is that I have had this combination working previously prior to WR 0.9.
 
The tunnel works from the wrt end, through put is perfectly stable. 
from the debian end I am unable to ping through the tunnel with errors ...reply from X.X.X.X destination net unreachable.
x.x.x.x is the next hop to the DSL router connected to the debian box, i.e. gateway to gateway.
 
This leads me to suspect that new traffic from the debian end is being forwarded unencrypted.
 ;
Other tunnels on the Debian box are OK.
 
&nbsp;Subnet A <==>DEB<=>;SHDSL <======================> CABLE MODEM<=> WRT==>Subnet B
 ;
In brief subnet B can access subnet A, but subnet A cannot access B.
Nothing trapped in firewall logs.
&nbsp;
The route table is correct... Although it should be noted that  tunnels look like they should.
 
Other thing to note is that  traceroutes to and from the wrt to the debian ends indicate&nbsp;different IP for the nexthop&nbsp;on the wrt side.
When using the alternate&nbsp;nexthop address from the debian end in both conf files, the tunnel succeeds, but automatic addition of the associated route fails at the wrt end.
Creating the route manually at the wrt end, results in successful throughput to the B subnet (wrt) to A Subnet (deb), but alas nothing from the A end to the B.
&nbsp;
Has anyone ever seen such an anomoly?
 
I'm wondering if it might have something to do with the protocol 4 bug in 2.6.17 that has been reported previously?
 
I've had to modify iptables on this box to accomodate the IP in IP protocol&nbsp;bug.
 
Running out of ideas, anyone have any suggestions?
 ;
Lew
Re: One way tunnel
country flaguser name
Netherlands
2007-03-04 22:09:17
On Mon, 5 Mar 2007, lewis shobbrook wrote:

> I've set-up a tunnel between an openwrt White Russian
0.9 release and debian
> sid with openswan 2.4.6 with a 2.6.17 kernel.
>
> First digression to note is that I have had this
combination working
> previously prior to WR 0.9.
>
> The tunnel works from the wrt end, through put is
perfectly stable.
> from the debian end I am unable to ping through the
tunnel with errors
> ...reply from X.X.X.X destination net unreachable.
> x.x.x.x is the next hop to the DSL router connected to
the debian box, i.e.
> gateway to gateway.

"destination net unreachable" means the tunnel is
not up, and the subnet=
is not reacahble. To get better logging in the openwrt, add
to config setup:

	plutostderrlog=/tmp/pluto.log

Then check the logs in /tmp/

> Other thing to note is that  traceroutes to and from
the wrt to the debian
> ends indicate different IP for the nexthop on the wrt
side.

Thats bad Point-to-point routing of ISPs assigning our dhcp
paramters which
are theoretically incorrect.

Do a route -n on the openwrt. if you see two routes to reach
your gateway,
with one pointing into the ipsec device, delete the one
pointing into the
ipsec device.

> I'm wondering if it might have something to do with the
protocol 4 bug in
> 2.6.17 that has been reported previously?

> I've had to modify iptables on this box to accomodate
the IP in IP
> protocol bug.

I have no idea what this bug is. Can you provide a link to
information?

Paul
-- 
Building and integrating Virtual Private Networks with
Openswan:
http://www.amazon.com/gp/product/1904811
256/104-3099591-2946327?n=283155
_______________________________________________
Usersopenswan.org
http
://lists.openswan.org/mailman/listinfo/users
Building and Integrating Virtual Private Networks with
Openswan: 
http://www.amazon.com/gp/product/1904811
256/104-3099591-2946327?n=283155

Re: One way tunnel
user name
2007-03-05 04:47:47
Hi Paul,
Thanks for the quick response.

On 3/5/07, Paul Wouters < paulxelerance.com">paulxelerance.com> wrote:
On Mon, 5 Mar 2007, lewis shobbrook wrote:

&gt; I've set-up a tunnel between an openwrt White Russian 0.9 release and debian
>; sid with openswan 2.4.6 with a 2.6.17 kernel.
&gt;
> First digression to note is that I have had this combination working
> previously prior to WR 0.9.
>
> The tunnel works from the wrt end, through put is perfectly stable.
&gt; from the debian end I am unable to ping through the tunnel with errors
>; ...reply from X.X.X.X destination net unreachable.
> x.x.x.x is the next hop to the DSL router connected to the debian box, i.e.
> gateway to gateway.

"destination net unreachable" means the tunnel is not up, and the subnet=
is not reacahble. To get better logging in the openwrt, add to config setup:

&nbsp; &nbsp;   ; &nbsp;plutostderrlog=/tmp/pluto.log

Then check the logs in /tmp/

Not sure how the tunnel can not be up? If  I can connect through from one subnet to another on th other end then it must be up.
Logs state IPSEC SA established at both ends. ; Routes are also modified to indicate the tunnel is up.  On the wrt the ipsec0 interface clocks rx & tx packets...

Doesn';t matter which side the tunnel is upped from.

> Other thing to note is that  traceroutes to and from the wrt to the debian
&gt; ends indicate different IP for the nexthop on the wrt side.

Thats bad Point-to-point routing of ISPs assigning our dhcp paramters which
are theoretically incorrect.

Do a route -n on the openwrt. if you see two routes to reach your gateway,
with one pointing into the ipsec device, delete the one pointing into the
ipsec device.

&gt; I'm wondering if it might have something to do with the protocol 4 bug in
> 2.6.17 that has been reported previously?

> I've had to modify iptables on this box to accomodate the IP in IP
> protocol bug.

I have no idea what this bug is. Can you provide a link to information?

I can't seem to re-find any posts, but from memory it was a netfilter connection tracking issue with ipsec.
Basically when upgrading from earlier 2.6 kernels,&nbsp; you'd start finding protocol 4 packets in your iptables logs.
I'll do a bit more digging and let you know what I can find on it.
Cheers & thanks,

Lew
Re: One way tunnel
user name
2007-03-05 07:26:10
Hi Paul/viewers,

I've done a little more testing/searching...



"destination net unreachable" means the tunnel is not up, and the subnet=
is not reacahble. To get better logging in the openwrt, add to config setup:

&nbsp; &nbsp;   ; &nbsp;plutostderrlog=/tmp/pluto.log

Then check the logs in /tmp/

Not sure how the tunnel can not be up? If  I can connect through from one subnet to another on th other end then it must be up.
Logs state IPSEC SA established at both ends. ; Routes are also modified to indicate the tunnel is up.  On the wrt the ipsec0 interface clocks rx & tx packets...

Traces from the Debian sub-net end is not routing packets, this must be a routing issue.
Packets originating on "the unsuccessful" subnet end are not going where they should.&nbsp;
For all other tunnels, when you trace from one subnet through the VPN to the subnet on the other side, you always get response from the local gateway, a row of time-outs *** & then complete at the destination.
In this instance, I see the above for traces from the subnet that is "working"&nbsp; (has full connectivity to the VPN'd subnet on the other side"), but from the "bad&quot; end the packets escape out with replies coming from the local gateway, but  additionally the nexthop (the shdsl router), and then we see the destination net unreachable from the hop after that.

> I'm wondering if it might have something to do with the protocol 4 bug in
> 2.6.17 that has been reported previously?

> I've had to modify iptables on this box to accomodate the IP in IP
> protocol bug.

I have no idea what this bug is. Can you provide a link to information?

I can't seem to re-find any posts, but from memory it was a netfilter connection tracking issue with ipsec.
Basically when upgrading from earlier 2.6 kernels,&nbsp; you'd start finding protocol 4 packets in your iptables logs.
I'll do a bit more digging and let you know what I can find on it.
Here's some entries concerning the netfilter issue, there were others that I can't seem to find still that traced to a couple of accepted bugs, with one of the id's eventually being canned as a duplicate of the other...

http://marc.theaimsgroup.com/?l=netfilter-devel&m=115395673408037&w=2
http://marc.theaimsgroup.com/?l=netfilter-devel&m=114010374229806&w=2
http://lists.netfilter.org/pipermail/netfilter-devel/2006-February/023420.html
http://lists.netfilter.org/pipermail/netfilter-devel/2006-July/025145.html

I am seeing the same problem here, unless protocol 4 is allowed to and fro the VPN endpoints we get no fun at the "good" wrt end of the tunnel.&nbsp; Regardless of whether we allow -p 4 out form the "BAD&quot; end or not makes no difference, nothing is logged as blocked/dropped, and the "wrong" route persists&nbsp; with the through VPN traces.



 
[1-4]

about | contact  Other archives ( Real Estate discussion Medical topics )