Article 5AWVQ VPN routing on IPFire

VPN routing on IPFire

by
Mark_667
from LinuxQuestions.org on (#5AWVQ)
I'm trying to create an OpenVPN connection to an old IPFire but the generated client config doesn't work with the server.

#OpenVPN Client conf
tls-client
client
nobind
dev tun
proto udp
tun-mtu 1400
remote a.b.c.d 1194
pkcs12 test.p12
cipher AES-256-CBC
auth SHA512
verb 3
ns-cert-type server
verify-x509-name a.b.c.d name

a.b.c.d is the public IP of the IPfire. It should give an address on a dedicated OpenVPN subnet when connected but complains it needs a gateway parameter and ifconfig.
Adding
route-gateway <address of dedicated subnet here>
gets me a bit further. Adding an ifconfig with both addresses on the dedicated subnet gives:
The local and remote VPN endpoints must exist within the same 255.255.255.252 subnet.
The dedicated subnet is .242 What should I put in the route-gateway? TFM isn't giving me much of a clue.latest?d=yIl2AUoC8zA latest?i=CRnZ2Z6JUL4:L1PGAgdrNIQ:F7zBnMy latest?i=CRnZ2Z6JUL4:L1PGAgdrNIQ:V_sGLiP latest?d=qj6IDK7rITs latest?i=CRnZ2Z6JUL4:L1PGAgdrNIQ:gIN9vFwCRnZ2Z6JUL4
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments