LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 05-31-2011, 03:55 PM   #1
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Rep: Reputation: 0
site to site vpn between vyatta and zywall


hi, i built an ipsec site to site vpn between zywall and vyatta both with 2 interfaces (wan and lan) and 1 public ip like this:

vyatta wan 172.20.1.252/29
vyatta lan 192.168.1.250/24

zywall wan 150.25.63.10/29
zywall lan 192.168.0.253/24

the tunnel is up, no nat traversal and from the zywall's lan i can reach all the vyatta's lan and the tunnel works perfectly, but i can not reach even the zywall's lan interface from vyatta, and i if try to do a traceroute from vyatta to 192.168.0.253 i see the packet passtrhough internet

hop 1 public adsl router ip
hop 2 public isp
hop 3 public isp............

the vpn ipsec local network and remote network is right in both configurations; i'm thinking i've to insert a default route in vyatta to 192.168.0.0/24 but what will be the gateway for vpn tuneel? should the route to 192.168.0.0/24 be implicit? whi the vyatta can not reach the remote lan when the zywall can perfectly reach the vyatta's lan?

Thanks
 
Old 06-02-2011, 11:11 AM   #2
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,209

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by framacomputer View Post
hi, i built an ipsec site to site vpn between zywall and vyatta both with 2 interfaces (wan and lan) and 1 public ip like this:

vyatta wan 172.20.1.252/29
vyatta lan 192.168.1.250/24

zywall wan 150.25.63.10/29
zywall lan 192.168.0.253/24

the tunnel is up, no nat traversal and from the zywall's lan i can reach all the vyatta's lan and the tunnel works perfectly, but i can not reach even the zywall's lan interface from vyatta, and i if try to do a traceroute from vyatta to 192.168.0.253 i see the packet passtrhough internet

hop 1 public adsl router ip
hop 2 public isp
hop 3 public isp............

the vpn ipsec local network and remote network is right in both configurations; i'm thinking i've to insert a default route in vyatta to 192.168.0.0/24 but what will be the gateway for vpn tuneel? should the route to 192.168.0.0/24 be implicit? whi the vyatta can not reach the remote lan when the zywall can perfectly reach the vyatta's lan?

Thanks
Things to check.

1) route on each machine. You want the packets for the other guy's LAN to go thru the tunnel, not over the internet.
Code:
/sbin/route -n
2) is packet forwarding turned on? You want packets that come in from the tunnel to be forwarded to the LAN.
Code:
cat /proc/sys/net/ipv4/ip_forward
3) iptables rules. If you're running iptables, then make sure it isn't blocking your packets.
 
Old 06-03-2011, 04:37 AM   #3
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
the problem should be in the routing configuration, because also the vyatta can not reach the zyxel's lan network or lan interface of the zyxel

/sbin/route -n

the result is:

Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 11.22.33.230 0.0.0.0 UG 0 0 0 eth0
11.22.33.228 0.0.0.0 255.255.255.248 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1

cat /proc/sys/net/ipv4/ip_forward
1
 
Old 06-04-2011, 05:53 PM   #4
smallpond
Senior Member
 
Registered: Feb 2011
Location: Massachusetts, USA
Distribution: Fedora
Posts: 4,209

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Quote:
Originally Posted by framacomputer View Post
the problem should be in the routing configuration, because also the vyatta can not reach the zyxel's lan network or lan interface of the zyxel

/sbin/route -n

the result is:

Code:
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         11.22.33.230    0.0.0.0         UG    0      0        0 eth0
11.22.33.228    0.0.0.0         255.255.255.248 U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1
cat /proc/sys/net/ipv4/ip_forward
1
You're missing the tunnel entries. Here's my output while connected to the VPN.

Code:
 /sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
22.22.51.24     0.0.0.0         255.255.255.248 U     0      0        0 eth3
10.202.0.0      10.202.0.2      255.255.255.0   UG    0      0        0 tun0
192.9.201.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
10.201.0.0      0.0.0.0         255.255.0.0     U     0      0        0 eth2
172.16.0.0      10.202.0.2      255.240.0.0     UG    0      0        0 tun0
0.0.0.0         22.22.51.25     0.0.0.0         UG    0      0        0 eth3
Note that the remote LAN 10.202.0.x and 172.16.x.x are thru the tunnel.
I use openvpn which adds the extra routes automatically when you connect.
Check the state of the tunnel with:
Code:
ifconfig tun0
also put "code" tags around your computer output to make it more readable in your posts.
 
Old 06-05-2011, 05:45 AM   #5
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
Thanks for the reply but open vpn does not work with zywall (or i do not know how to do it, i can't find anything about it on google) i need to use the standard site to site vyatta configuration, do you know how can zywall can work with openvpn?
 
Old 06-06-2011, 02:55 PM   #6
framacomputer
LQ Newbie
 
Registered: Jan 2010
Posts: 25

Original Poster
Rep: Reputation: 0
I solved the one way vpn problem excluding the remote network from the nat rules, and everything is working properly.
Now i have a big problem, because we use the vpn for to use a lan messenger across the vpn who needs to do a broadcast request on address 192.168.0.255 and 192.168.1.255 and i see only the local network users on both internal networks, i'm thinking vyatta is not forwarding udp broadcast packets (when we had the zywalls for vpn tunnel lan messenger was working well, in zywall i have the flaggable option allow netbios broadcast traffic across vpn, but still can't find this option in vyatta) i tryed to use bcrelay but i do not know hou to configure it.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Site to Site VPN Cisco Router karnac01 Linux - Networking 3 09-14-2010 09:55 PM
site to site vpn racoon with cisco asa 5505 routing issues wastingtime Linux - Networking 1 04-02-2010 12:26 PM
Question on a Site to Site VPN Plaethos Linux - Networking 1 09-23-2009 06:52 PM
site to site vpn cbt... shahg_shahg Linux - Networking 1 04-28-2009 08:00 AM
Site to Site VPN - Internet browsing bence8810 Linux - Networking 2 04-19-2008 11:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:32 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration