multiply wan for openvpn server

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
hawkeye871
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 16, 2021 9:57 am

multiply wan for openvpn server

Post by hawkeye871 » Wed Jun 16, 2021 10:25 am

hello. How to specify 2 wan ip simultaneously in server.conf I mean to add additional ip address to "local" parameter.

[oconf=]
local 1.1.1.1
port xxxxx
proto tcp
dev tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/server.crt
key /etc/openvpn/server.key
dh /etc/openvpn/dh.pem
[/oconf]

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: multiply wan for openvpn server

Post by TinCanTech » Wed Jun 16, 2021 10:49 am

You can not use more than one --local.

hawkeye871
OpenVpn Newbie
Posts: 2
Joined: Wed Jun 16, 2021 9:57 am

Re: multiply wan for openvpn server

Post by hawkeye871 » Wed Jun 16, 2021 12:15 pm

as far as i get i'm able to specify either one ip address or do not use --local parameter and as a result allow all ip address. Correct?

Post Reply