Multiple instances on a linux machine

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Greenhill
OpenVpn Newbie
Posts: 2
Joined: Tue Jun 30, 2020 12:00 pm

Multiple instances on a linux machine

Post by Greenhill » Tue Jun 30, 2020 12:04 pm

Hello !

i'm trying to get multiple openvpn instances to work at the same time on a linux machine,
i would like my processes to use specific network interfaces [such as curl --interface xxx]

i'm really lost as to what to do, i've added the pull-filter ignore redirect-gateway directive, but when i try to use the network interface just opened, it times out, there's probably some routing problem somewhere that i can't figure.

Here's my conf file :
Client config
client
dev tun5478
proto tcp
remote 103.1.212.107 443
resolv-retry infinite
remote-random
nobind
tun-mtu 1500
tun-mtu-extra 32
mssfix 1450
persist-key
persist-tun
ping 15
ping-restart 0
ping-timer-rem
reneg-sec 0
comp-lzo no
pull-filter ignore redirect-gateway

remote-cert-tls server

auth-user-pass auth.txt
verb 3
pull
fast-io
cipher AES-256-CBC
auth SHA512
<ca>
-----BEGIN CERTIFICATE-----
MIIFCjCCAvKgAwIBAgIBATANBgkqhkiG9w0BAQ0FADA5MQswCQYDVQQGEwJQQTEQ
...
-----END CERTIFICATE-----
</ca>
key-direction 1
<tls-auth>
#
# 2048 bit OpenVPN static key
#
-----BEGIN OpenVPN Static key V1-----
e685bdaf659a25a200e2b9e39e51ff03
...
-----END OpenVPN Static key V1-----
</tls-auth>
Last edited by Pippin on Tue Jun 30, 2020 12:12 pm, edited 1 time in total.
Reason: Formatting

Greenhill
OpenVpn Newbie
Posts: 2
Joined: Tue Jun 30, 2020 12:00 pm

Re: Multiple instances on a linux machine

Post by Greenhill » Wed Jul 01, 2020 7:24 am

Used network namespaces instead of routing manually using this tutorial https://schnouki.net/post/2014/openvpn- ... -on-linux/

Post Reply