I have been trying to add a virtual server to the vlan created by OpenVPN without any luck. I am hoping someone here may be able to assist?
As I am using FreeBSD jails, I am told that the ip can not be set on the virtual server itself, and that I should use an ipconfig-pool instead. So I have been trying to do as much reading as I can on the matter, but am still no wiser

Here is the output of ifconfig and my ovpn settings. I just need the server at xxx.xxx.xxx.213 to be added to the 192.168.254.xx subnet so that I can access blocked ports on that machine (eg. 21) remotely. Surely I am missing something very simple? :
Code: Select all
# ifconfig
em0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether xx:xx:xx:xx:xx
inet xxx.xxx.xxx.212 netmask 0xfffffff8 broadcast xxx.xxx.xxx.215
inet xxx.xxx.xxx.213 netmask 0xffffffff broadcast xxx.xxx.xxx.213
inet xxx.xxx.xxx.214 netmask 0xffffffff broadcast xxx.xxx.xxx.214
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
em1: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=9b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM>
ether 00:50:56:8f:30:3b
media: Ethernet autoselect (1000baseT <full-duplex>)
status: active
plip0: flags=8810<POINTOPOINT,SIMPLEX,MULTICAST> metric 0 mtu 1500
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
options=3<RXCSUM,TXCSUM>
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x5
inet6 ::1 prefixlen 128
inet 127.0.0.1 netmask 0xff000000
nd6 options=3<PERFORMNUD,ACCEPT_RTADV>
tap0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=80000<LINKSTATE>
ether 00:bd:8e:20:00:00
inet 192.168.254.1 netmask 0xffffff00 broadcast 192.168.254.255
Opened by PID 1078
Server
- /usr/local/etc/openvpn/server.conf
Code: Select all
port 1194
proto udp
dev tap
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/server.crt
key /usr/local/etc/openvpn/keys/server.key # This file should be kept secret
dh /usr/local/etc/openvpn/keys/dh1024.pem
server 192.168.254.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
max-clients 10
user root
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 3