VPN site to site / peer to peer router non working
-
Hi, I'm trying to setup a vpn between a pfSense 2.1.5 and a Zeroshell 3.8.0.
It took me some time to figure out the Encryption algorithm to use: BF-CBC (128bit).VPN is up a show by the logs[1].
There's olny a warning about ifconfig.I thing there's some issue with routes.
This is the schema of my configuration:192.168.6.106 -- 192.168.6.101 192.168.2.254 -- 192.168.2.27 server 192.168.158.1 -- 192.168.158.2 pc pfSense Zeroshell
In the vpn configuration page page I set
IPv4 Tunnel Network = 192.168.158.0/24
IPv4 Local Network/s = 192.168.6.0/24
IPv4 Remote Network/s = 192.168.2.0/24I was expecting this to automaticaly create a route for network 192.168.2.0/24 but I don't see any in Diagnostic / route.
This is what doesn't work:
From server ping 192.168.158.1: ok ping 192.168.158.2: ok ping 192.168.2.254: no ping 192.168.2.27: no From pc ping 192.168.158.2: ok ping 192.168.158.2: NO <-- ??? ping 192.168.2.254: no ping 192.168.2.27: no From server traceroute --tcp -4 192.168.2.27 traceroute to 192.168.2.27 (192.168.2.27), 30 hops max, 60 byte packets 1 192.168.6.101 (192.168.6.101) 0.472 ms 0.883 ms 0.882 ms 2 2-228-153-93.ip192.fastwebnet.it (2.228.153.93) 2.190 ms 2.219 ms 2.292 ms <-- ??? 3 85-18-0-1.ip.fastwebnet.it (85.18.0.1) 2.324 ms 2.358 ms 2.413 ms 4 10.6.4.1 (10.6.4.1) 3.026 ms 3.240 ms 3.270 ms 5 10.254.11.41 (10.254.11.41) 5.465 ms 5.563 ms 5.492 ms 6 * * * From pc traceroute --tcp -4 192.168.6.106 traceroute to 192.168.6.106 (192.168.6.106), 30 hops max, 60 byte packets 1 192.168.2.254 (192.168.2.254) 0.285 ms 0.419 ms 0.521 ms 2 * * *
[1]Log
Feb 28 13:56:49 openvpn[11805]: WARNING: 'ifconfig' is present in local config but missing in remote config, local='ifconfig 192.168.158.0 255.255.255.0' Feb 28 13:56:40 openvpn[11805]: Initialization Sequence Completed Feb 28 13:56:40 openvpn[11805]: Peer Connection Initiated with [AF_INET]62.94.229.113:50608 Feb 28 13:56:39 openvpn[11805]: TCPv4_SERVER link remote: [AF_INET]62.94.229.113:50608 Feb 28 13:56:39 openvpn[11805]: TCPv4_SERVER link local (bound): [AF_INET]2.228.153.75:1197 Feb 28 13:56:39 openvpn[11805]: TCP connection established with [AF_INET]62.94.229.113:50608
-
Is there a way to manually insert the route?
-
Why do you use an old version? You should update.
A peer to peer vpn should only use a /30 tunnel. There's no need for more IP addresses.
I can't believe that the traceroute from the server to 192.168.2.27 goes out to WAN, since you have set "IPv4 Remote Network/s = 192.168.2.0/24" on pfSense.
So check the routing table on pfSense. If the route isn't added there should be an entry in the log showing further details.On the Zeroshell you have also to set an OpenVPN route to 192.168.6.0/24 to get communication to work between these networks.
-
Hi sirio81,
did you have solved your routingproblem? I have the same Problem, but i cant find out my problem.
I have also created a gadeway and routing for it.In the vpn configuration page page I set
IPv4 Tunnel Network = 10.2.28.0/30
IPv4 Local Network/s = 192.168.221.0/24
IPv4 Remote Network/s = 192.168.3.0/24Gateway:
Name Default Interface Gateway Monitor IP Description TestPFS2ZS PFS2ZS 10.2.28.1 10.2.28.1 TestPFS2ZS
Static Routes:
Network Gateway Interface Description Actions 192.168.3.0/24 PFS2ZS - 10.2.28.1 PFS2ZS TestPFS2ZS
In my Firewall / NAT / Outbound i see this information:
10.10.10.1/32 127.0.0.0/8 ::1/128 192.168.3.0/24 192.168.221.0/24 10.2.28.0/30
my ping test from the pfsense:
PING 192.168.3.252 (192.168.3.252) from 10.2.28.1: 56 data bytes 36 bytes from 10.2.28.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 a8fb 0 0000 01 01 2607 10.2.28.1 192.168.3.252 36 bytes from 10.2.28.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 4e2f 0 0000 01 01 80d3 10.2.28.1 192.168.3.252 36 bytes from 10.2.28.1: Time to live exceeded Vr HL TOS Len ID Flg off TTL Pro cks Src Dst 4 5 00 0054 1a7d 0 0000 01 01 b485 10.2.28.1 192.168.3.252 --- 192.168.3.252 ping statistics --- 3 packets transmitted, 0 packets received, 100.0% packet loss
but the p2p Networkinterface can ping google:
PING 8.8.8.8 (8.8.8.8) from 10.2.28.1: 56 data bytes 64 bytes from 8.8.8.8: icmp_seq=0 ttl=124 time=6.457 ms 64 bytes from 8.8.8.8: icmp_seq=1 ttl=124 time=5.711 ms 64 bytes from 8.8.8.8: icmp_seq=2 ttl=124 time=5.686 ms --- 8.8.8.8 ping statistics --- 3 packets transmitted, 3 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 5.686/5.951/6.457/0.358 ms
any ideas about it?
BR
-
@p54 said in VPN site to site / peer to peer router non working:
I have also created a gadeway and routing for it.
Not how it works for vpn connection... I suggest you open your own thread and own details.. This thread is 8 months old and guy never came back and was using a 2.1.5 version of pfsense..
-
Oh, thank you. Sorry I put my request in here.
BR