Re: [Openvpn-users] Change the location of server.conf

2023-07-25 Thread Bo Berglund
On Tue, 25 Jul 2023 21:42:40 + (UTC), Jason Long via Openvpn-users wrote: >Hello,By default, the location of OpenVPN server configuration file is >"/etc/openvpn/". >Is it possible to change this default location? > This is incorrect! The default location where the base service looks for se

Re: [Openvpn-users] OpenVPN and NIC with multiple IP Addresses

2023-07-25 Thread Jason Long via Openvpn-users
Hello, I just created a virtual NIC and all the iptables rules that I did for a real NIC, I did for this virtual NIC too. Consider an OpenVPN server that has one NIC with three public IPs and you want to run an OpenVPN server.conf file for each IPs. You must set these three public IPs on your NI

[Openvpn-users] Change the location of server.conf

2023-07-25 Thread Jason Long via Openvpn-users
Hello,By default, the location of OpenVPN server configuration file is "/etc/openvpn/". Is it possible to change this default location? Thank you.___ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/list

Re: [Openvpn-users] OpenVPN and NIC with multiple IP Addresses

2023-07-25 Thread Jochen Bern
On 25.07.23 12:22, Jason Long wrote: You said "The rules seem to assume that Internet traffic *will* go out $IF_MAIN and not enp0s3.", Why enp0s3? I created a virtual NIC (enp0s3:0) and I want my traffic go through it. Am I wrong? I have no reason to doubt that you WANT to have it work like thi

Re: [Openvpn-users] Server configuration file vs server

2023-07-25 Thread Jochen Bern
On 25.07.23 21:12, Jason Long wrote: So, if I need an auto-failover mechanism, then my servers (Physical or VM) key files must be the same Not quite. You *could* give the servers/instances certs identifying them as "vpn-in-0001" through "vpn-in-4711", and then have the client configs check o

Re: [Openvpn-users] Server configuration file vs server

2023-07-25 Thread Jason Long via Openvpn-users
Hello,Thank you for your time.So, if I need an auto-failover mechanism, then my servers (Physical or VM) key files must be the same and if I don't need that mechanism, then all server configuration file can use the same keys.Am I right? Sent from Yahoo Mail on Android On Tue, Jul 25, 2023 a

Re: [Openvpn-users] Server configuration file vs server

2023-07-25 Thread Bo Berglund
On Tue, 25 Jul 2023 16:10:15 + (UTC), Jason Long via Openvpn-users wrote: >Hello,I have a question and I'm thankful if someone clear it for me. >I guess it would be better if each server has its own key files, but >the server means the server configuration file or an OpenVPN (physical >or VM

Re: [Openvpn-users] Server configuration file vs server

2023-07-25 Thread Jochen Bern
On 25.07.23 18:10, Jason Long via Openvpn-users wrote: Hello,I have a question and I'm thankful if someone clear it for me.I guess it would be better if each server has its own key files, but the server means the server configuration file or an OpenVPN (physical or VM) server?I mean, if an Ope

[Openvpn-users] Server configuration file vs server

2023-07-25 Thread Jason Long via Openvpn-users
Hello,I have a question and I'm thankful if someone clear it for me.I guess it would be better if each server has its own key files, but the server means the server configuration file or an OpenVPN (physical or VM) server?I mean, if an OpenVPN server has a lot of server configuration files (serv

Re: [Openvpn-users] OpenVPN and NIC with multiple IP Addresses

2023-07-25 Thread Jason Long via Openvpn-users
Hello, Thank you so much for your reply. You said "The rules seem to assume that Internet traffic *will* go out $IF_MAIN and not enp0s3.", Why enp0s3? I created a virtual NIC (enp0s3:0) and I want my traffic go through it. Am I wrong? And: # cat /proc/sys/net/ipv4/conf/all/forwarding 1 # # cat

Re: [Openvpn-users] OpenVPN and NIC with multiple IP Addresses

2023-07-25 Thread Jochen Bern
On 25.07.23 09:54, Jason Long via Openvpn-users wrote: enp0s3: flags=4163  mtu 1500         inet 10.0.2.15  netmask 255.255.255.0  broadcast 10.0.2.255 enp0s3:0: flags=4163  mtu 1500         inet 10.0.5.20  netmask 255.255.255.0  broadcast 10.0.5.255 ... so you have several distinct subnets a

[Openvpn-users] OpenVPN and NIC with multiple IP Addresses

2023-07-25 Thread Jason Long via Openvpn-users
Hello, My Server has two NICs: enp0s8 (LAN) enp0s3 (NAT) I created a virtual interface like the below: # touch /etc/network/interfaces.d/ifcfg-enp0s3:0 # nano /etc/network/interfaces.d/ifcfg-enp0s3:0 auto enp0s3:0 iface enp0s3:0 inet static address 10.0.5.20 netmask 255.255.255.0 Then: # syst