VPN Routing Issues
From: Shane Almeida (almeida.spam.is.evil_at_spam.is.evil.mindless.com)
Date: 11/16/05
- Next message: Cory C. Albrecht: "Re: binary upgrade 3.7 to 3.8"
- Previous message: Olaf Fokke: "change mac address of carp interface"
- Next in thread: Shane Almeida: "Re: VPN Routing Issues"
- Reply: Shane Almeida: "Re: VPN Routing Issues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 15 Nov 2005 18:05:22 -0600
I had a VPN set up with automatic keying between two OpenBSD machines, one
running 3.7 and the other a snapshot of 3.7-current from June. The setup
was basically lifted from the vpn(8) man page and it worked fine. I just
upgraded the 3.7-current machine to 3.8, and now I'm having problems with
my VPN. Nothing was changed on the other end (still running 3.7 with same
config), and I copied all the old config files (isakmp and pf) to the new
3.8 end.
The two isakmpd daemons seem to be communicating:
18:48:04.529929 host1.isakmp > host2.isakmp: isakmp v1.0 exchange ID_PROT
cookie: 0808e7ce7c1bae84->5f72d182eb5b5492 msgid: 00000000 len: 228
18:48:04.546026 host2.isakmp > host1.isakmp: isakmp v1.0 exchange INFO
cookie: 87afe5a861c374db->0000000000000000 msgid: 00000000 len: 40 [tos 0x20]
In the previous setup, I found that I had to manually create routes in
order for the gateways to be able to communicate to the remote networks.
On this end, I did this:
route -n add -net -inet 192.168.1/24 192.168.2.1
And on the other end, I did this:
route -n add -net -inet 192.168.2/24 192.168.1.1
I'm not sure if that's the proper way to do it, but it worked fine for me
for many months. After upgrading, the routing between the two ends seems broken. If I try
to ping the remote gateway from my gateway, ping just hangs. tcpdump
shows that the traffic is trying to get out the internal interface instead
of the external interface. The same thing happens from the other side.
If I remove those two routes and try to ping, I get "sendto: No route to
host" because I have a pf rule that blocks RFC 1918 traffic on the
external interface.
The man page says that netstat should show routes between the two
gateways, but my table is empty.
# netstat -rn -f encap
Routing tables
Encap:
Source Port Destination Port Proto SA(Address/Proto/Type/Direction)
So, is the tunnel not being created? Anyone have any ideas? The verbose
output from isakmpd doesn't make sense to me, put I can provide it if it
will help.
Thanks.
- Next message: Cory C. Albrecht: "Re: binary upgrade 3.7 to 3.8"
- Previous message: Olaf Fokke: "change mac address of carp interface"
- Next in thread: Shane Almeida: "Re: VPN Routing Issues"
- Reply: Shane Almeida: "Re: VPN Routing Issues"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|