Hello,

We also tried to set up openVPN in non default rdomain, without success.

--
Cordialement,
Pierre BARDOU


-----Message d'origine-----
De : Denis <[email protected]> 
Envoyé : jeudi 13 décembre 2018 13:02
À : Misc <[email protected]>
Objet : OpenVPN in rdomain 1 error

Trying to run OpenVPN in rdomain 1 by command

# sh /etc/netstart tap0

# cat /var/openvpn.log
...
Thu Dec 13 14:40:27 2018 us=655401 TUN/TAP device /dev/tap0 opened Thu Dec 13 
14:40:27 2018 us=655456 do_ifconfig,
tt->did_ifconfig_ipv6_setup=0
Thu Dec 13 14:40:27 2018 us=655500 /sbin/ifconfig tap0 192.168.1.1 netmask 
255.255.255.0 mtu 1500 broadcast 192.168.1.255 Thu Dec 13 14:40:27 2018 
us=658571 Data Channel MTU parms [ L:1654
D:1500 EF:122 EB:411 ET:32 EL:3 ]
Thu Dec 13 14:40:27 2018 us=659026 Could not determine IPv4/IPv6 protocol. 
Using AF_INET Thu Dec 13 14:40:27 2018 us=659338 Socket Buffers: 
R=[41600->41600] S=[9216->9216] Thu Dec 13 14:40:27 2018 us=659481 TCP/UDP: 
Socket bind failed on local address [AF_INET]127.0.0.1:2294: Can't assign 
requested address (errno=49) Thu Dec 13 14:40:27 2018 us=659496 Exiting due to 
fatal error Thu Dec 13 14:40:27 2018 us=659543 Closing TUN/TAP interface

# cat /etc/hostname.em0
rdomain 1
dhcp

# cat /etc/hostname.tap0
up
description 'conn1'
inet 192.168.1.1 255.255.255.0 192.168.1.255

!/sbin/route -T1 exec /usr/bin/env
LD_LIBRARY_PATH=/usr/lib:/usr/local/lib /usr/local/sbin/openvpn --config 
/etc/openvpn/server.conf

# route -T1 -n show
Internet:
Destination        Gateway            Flags   Refs      Use   Mtu  Prio
Iface
default            ISP_gateway         UGS        0       84     -     8
em0
ISP_gateway/21        em0_IP       UCn        1        4     -     4 em0
ISP_gateway         00:1f:6c:cc:ad:ee  UHLch      1        3     -     3
emo
emo_IP       00:a1:f3:a0:44:c2  UHLl       0        5     -     1 emo
ISP_destination       em0_IP       UHb        0        0     -     1 emo

Reply via email to