OpenVPN error with 0.0.0.0/0 Remote network



  • I'm testing site to site OpenVPN tunneling with RC2i. And everything works well.

    But there is an error when I try to send all traffic from client site to server site with 0.0.0.0/0 remote network at client setting. Below is the OpenVPN logo message. I think pfsense has a problem in adding route of 0.0.0.0/0 with tun0.

    Sep 9 14:35:45 openvpn[11907]: Initialization Sequence Completed
    Sep 9 14:35:45 openvpn[11907]: Peer Connection Initiated with 61.250.xxx.xxx:1194
    Sep 9 14:35:42 openvpn[11907]: UDPv4 link remote: 61.250.xxx.xxx:1194
    Sep 9 14:35:42 openvpn[11907]: UDPv4 link local (bound): [undef]:1194
    Sep 9 14:35:42 openvpn[11902]: ERROR: FreeBSD route add command failed: shell command exited with error status: 1
    Sep 9 14:35:42 openvpn[11902]: /sbin/ifconfig tun0 255.255.255.2 255.255.255.1 mtu 1500 netmask 255.255.255.255 up
    Sep 9 14:35:42 openvpn[11902]: TUN/TAP device /dev/tun0 opened
    Sep 9 14:35:42 openvpn[11902]: gw 210.106.xxx.xxx

    Is there any way I can solove this problem?

    Thank you in advance.



  • I solved this problme with custom option of push "redirect-gateway".

    Thank you.


Locked