Hi,
I have a VPS server with some public IP address on eth0, for example:
inet addr:111.111.111.10 Bcast:111.111.111.255 Mask:255.255.255.0
(output from ifconfig)
also I have several public IPs from another subnets:
111.111.112.10/24
111.111.113.10/24
111.111.114.10/24
The test setup by step by step manual (e.g. https://community.openvpn.net/openvpn/w ... dows_Guide) works fine.
[oconf=]port 1194
proto udp
dev tap
ca "/etc/openvpn/ca.crt"
cert "/etc/openvpn/server.crt"
key "/etc/openvpn/server.key" # This file should be kept secret
dh "/etc/openvpn/dh4096.pem"
server 10.8.0.0 255.255.255.0
push "redirect-gateway def1"
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
keepalive 10 120
tls-auth ta.key 0 # This file is secret
cipher AES-256-CBC
persist-key
persist-tun
status openvpn-status.log
verb 3
[/oconf]
Clients is having IP from 10.8.0.2 to 10.8.0.254 and they can use VPN tunnel as default route. And my question, how can I assign IP 111.111.112.10/24 to client? Is it possible with openvpn?
Assign public IP to clients from various subnets
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 1
- Joined: Tue Oct 17, 2017 8:04 pm