Register for the iXsystems Community to get an ad-free experience and exclusive discounts in our eBay Store.

Freenas & syncthing on virtualbox test = ipv4 network not funcationing

Joined
Sep 16, 2015
Messages
3
Hi, I work remotely, and so I don't have access to the hardware in our server room, so I wanted to test a proof of concept running Syncthing on Freenas on my Virtualbox.

The setup: Virtualbox 6.0 on Windows Surface 16gig/500gb disk.
virtual machine: Openbsd 64 bit, 8 gig ram, One 8 gig vdi for system disk, three 16 gig vdi for data disk.
FreeNAS-11.2-U4.1 is able to build on this, and all three 16 gig drives into a single pool.
network - I have one nic, in bridge mode.

I install the Syncthing plugin in a jail.


#iocage get all syncthing
CONFIG_VERSION:14.1
allow_chflags:0
allow_mlock:0
allow_mount:0
allow_mount_devfs:0
allow_mount_nullfs:0
allow_mount_procfs:0
allow_mount_tmpfs:0
allow_mount_zfs:0
allow_quotas:0
allow_raw_sockets:1
allow_set_hostname:1
allow_socket_af:0
allow_sysvipc:0
allow_tun:0
available:readonly
basejail:yes
boot:on
bpf:yes
children_max:0
cloned_release:11.2-RELEASE
comment:none
compression:lz4
compressratio:readonly
coredumpsize:off
count:1
cpuset:off
cputime:off
datasize:off
dedup:off
defaultrouter:172.17.20.1
defaultrouter6:none
depends:none
devfs_ruleset:4
dhcp:on
enforce_statfs:2
exec_clean:1
exec_fib:0
exec_jail_user:root
exec_poststart:/usr/bin/true
exec_poststop:/usr/bin/true
exec_prestart:/usr/bin/true
exec_prestop:/usr/bin/true
exec_start:/bin/sh /etc/rc
exec_stop:/bin/sh /etc/rc.shutdown
exec_system_jail_user:0
exec_system_user:root
exec_timeout:60
host_domainname:none
host_hostname:syncthing
host_hostuuid:syncthing
host_time:yes
hostid:A91C7135-0E74-40CD-919A-DB3258ADD894
hostid_strict_check:off
interfaces:vnet0:bridge0
ip4:new
ip4_addr:vnet0|172.17.20.134/24
ip4_saddrsel:1
ip6:new
ip6_addr:vnet0|accept_rtadv
ip6_saddrsel:1
jail_zfs:off
jail_zfs_dataset:iocage/jails/syncthing/data
jail_zfs_mountpoint:none
last_started:2019-06-20 17:23:01
login_flags:-f root
mac_prefix:080027
maxproc:off
memorylocked:off
memoryuse:off
mount_devfs:1
mount_fdescfs:1
mount_linprocfs:0
mount_procfs:0
mountpoint:readonly
msgqqueued:off
msgqsize:off
nmsgq:off
notes:none
nsemop:off
nshm:off
nthr:off
openfiles:off
origin:readonly
owner:root
pcpu:off
priority:99
pseudoterminals:off
quota:none
release:11.2-RELEASE-p10
reservation:none
resolver:/etc/resolv.conf
rlimits:off
securelevel:2
shmsize:off
stacksize:off
state:up
stop_timeout:30
swapuse:off
sync_state:none
sync_target:none
sync_tgt_zpool:none
sysvmsg:new
sysvsem:new
sysvshm:new
template:no
type:pluginv2
used:readonly
vmemoryuse:off
vnet:on
vnet0_mac:0800275b07f8 0800275b07f9
vnet1_mac:none
vnet2_mac:none
vnet3_mac:none
vnet_default_interface:auto
vnet_interfaces:none
wallclock:off
root@freenas[~]#


Any device on my network that has ipv6 on it can connect to syncthing and work as it should. The ipv4 is giving me issues. The first is in the log, I can see that ST is not able to connect to the relay:

Code:
2019-06-20 12:06:03 Relay listener (dynamic+https://relays.syncthing.net/endpoint) starting
2019-06-20 12:06:33 Relay listener (dynamic+https://relays.syncthing.net/endpoint) shutting down
2019-06-20 12:06:33 c.S.listenerSupervisor: Failed service 'dynamic+https://relays.syncthing.net/endpoint' (1.996455 failures of 2.000000), restarting: true, error: "{dynamic+https://relays.syncthing.net/endpoint dynamic+https://relays.syncthing.net/endpoint} returned unexpectedly", stacktrace: [unknown stack trace]



The next issue I see is when I go into the jail I can ping the syncthing interface (172.17.20.134) but I cannot ping the gateway or a dns server like 8.8.8.8
I've tried both fixed and dhcp for the Syncthing working. thank you!
 
Joined
Sep 16, 2015
Messages
3
No, I never did. I found an older laptop and just booted to a usb drive and was able to get everything working well enough to prove the concept. thanks for asking.
 
Top