LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 11-26-2020, 08:35 AM   #1
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Rep: Reputation: 30
VPN routing on IPFire


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.
 
Old 11-28-2020, 06:34 AM   #2
Mark_667
Member
 
Registered: Aug 2005
Location: Manchester, England
Distribution: Ubuntu 20.04
Posts: 383

Original Poster
Rep: Reputation: 30
It turned out the OpenVPN subnet wasn't large enough. I tried it when no one else was connected and it connected fine with the original config. Not sure what was using all the addresses, though as it only had a couple users.
 
  


Reply

Tags
ipfire, vpn



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
LXer: Newest IPFire Release Includes Security Fixes and Additional Hardware Support (IPFire 2.25 - Core Update 147) LXer Syndicated Linux News 0 10-01-2020 09:01 AM
LXer: IPFire Linux Firewall Now Ships with the IPFire Location Database LXer Syndicated Linux News 0 09-01-2020 07:31 AM
VPN not routing through server but still local routing pptpd narnie Linux - Server 1 01-21-2014 06:03 PM
Application specific routing (not routing p2p over vpn) tkalfaoglu Linux - Networking 1 06-15-2013 06:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 04:12 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