Code:
---------------------------------------------------------------------------------- 1. Install 2. The Updater - updates jail and it's packages 3. Add new/edit OpenVPN profile(s) and send them to e-mail box 4. Regenerate server's keys, certs and recreate profile(s) 5. The Cleaner - keeps .cfg file and removes jail and related files 6. The Keeper - backup & sends config to email 7. The Watcher - shows server configs & last 50 lines of the log 8. Edit settings 9. Exit : 7 [info] display content of 'openvpn.conf' file: port 1194 proto udp4 dev tun ca /root/openvpn-configs/server/keys/ca.crt cert /root/openvpn-configs/server/keys/openvpn-server.crt key /root/openvpn-configs/server/keys/openvpn-server.key dh /root/openvpn-configs/server/keys/dh.pem server 10.8.0.0 255.255.255.0 ifconfig-pool-persist /root/openvpn-configs/server/ipp.txt push "route 192.168.1.0 255.255.255.0" keepalive 10 120 tls-auth /root/openvpn-configs/server/keys/ta.key 0 remote-cert-tls client cipher AES-256-CBC user nobody group nobody persist-key persist-tun status openvpn-status.log verb 3 explicit-exit-notify 1 [info] display content of 'rc.conf' file: hostname="OpenVPN" cron_flags="$cron_flags -J 15" # Disable Sendmail by default sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" # Run secure syslog syslogd_flags="-c -ss" # Enable IPv6 ipv6_activate_all_interfaces="NO" openvpn_enable="YES" openvpn_if="tun" openvpn_configfile="/root/openvpn-configs/server/openvpn.conf" openvpn_dir="/root/openvpn-configs/server" cloned_interfaces="tun" gateway_enable="YES" firewall_enable="YES" firewall_script="/root/openvpn-configs/server/ipfw.rules" Stopping openvpn. Waiting for PIDS: 6869. Starting openvpn. OpenVPN server log file: '/var/log/openvpn.log' Jun 5 12:13:13 OpenVPN openvpn[65677]: ERROR: FreeBSD route delete command failed: external program exited with error status: 77 Jun 5 12:13:13 OpenVPN openvpn[65677]: Closing TUN/TAP interface Jun 5 12:13:13 OpenVPN openvpn[65677]: /sbin/ifconfig tun0 destroy Jun 5 12:13:13 OpenVPN openvpn[65677]: FreeBSD 'destroy tun interface' failed (non-critical): external program exited with error stat us: 1 Jun 5 12:13:13 OpenVPN openvpn[65677]: SIGTERM[hard,] received, process exiting Jun 5 12:13:13 OpenVPN openvpn[6868]: OpenVPN 2.4.9 amd64-portbld-freebsd11.3 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Jun 2 2020 Jun 5 12:13:13 OpenVPN openvpn[6868]: library versions: OpenSSL 1.0.2s-freebsd 28 May 2019, LZO 2.10 Jun 5 12:13:13 OpenVPN openvpn[6869]: NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be a ware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use t he same subnet. Jun 5 12:13:13 OpenVPN openvpn[6869]: Diffie-Hellman initialized with 2048 bit key Jun 5 12:13:13 OpenVPN openvpn[6869]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticat ion Jun 5 12:13:13 OpenVPN openvpn[6869]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticat ion Jun 5 12:13:13 OpenVPN openvpn[6869]: ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=epair0b HWADDR=ee:f4:bb:9b:c8:80 Jun 5 12:13:13 OpenVPN openvpn[6869]: TUN/TAP device /dev/tun0 opened Jun 5 12:13:13 OpenVPN openvpn[6869]: /sbin/ifconfig tun0 10.8.0.1 10.8.0.2 mtu 1500 netmask 255.255.255.255 up Jun 5 12:13:13 OpenVPN openvpn[6869]: /sbin/route add -net 10.8.0.0 10.8.0.2 255.255.255.0 Jun 5 12:13:13 OpenVPN openvpn[6869]: Socket Buffers: R=[42080->42080] S=[9216->9216] Jun 5 12:13:13 OpenVPN openvpn[6869]: UDPv4 link local (bound): [AF_INET][undef]:1194 Jun 5 12:13:13 OpenVPN openvpn[6869]: UDPv4 link remote: [AF_UNSPEC] Jun 5 12:13:13 OpenVPN openvpn[6869]: GID set to nobody Jun 5 12:13:13 OpenVPN openvpn[6869]: UID set to nobody Jun 5 12:13:13 OpenVPN openvpn[6869]: MULTI: multi_init called, r=256 v=256 Jun 5 12:13:13 OpenVPN openvpn[6869]: IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0 Jun 5 12:13:13 OpenVPN openvpn[6869]: IFCONFIG POOL LIST Jun 5 12:13:13 OpenVPN openvpn[6869]: Initialization Sequence Completed Jun 5 12:21:02 OpenVPN openvpn[6869]: event_wait : Interrupted system call (code=4) Jun 5 12:21:04 OpenVPN openvpn[6869]: /sbin/route delete -net 10.8.0.0 10.8.0.2 255.255.255.0 Jun 5 12:21:04 OpenVPN openvpn[6869]: ERROR: FreeBSD route delete command failed: external program exited with error status: 77 Jun 5 12:21:04 OpenVPN openvpn[6869]: Closing TUN/TAP interface Jun 5 12:21:04 OpenVPN openvpn[6869]: /sbin/ifconfig tun0 destroy Jun 5 12:21:04 OpenVPN openvpn[6869]: FreeBSD 'destroy tun interface' failed (non-critical): external program exited with error statu s: 1 Jun 5 12:21:04 OpenVPN openvpn[6869]: SIGTERM[hard,] received, process exiting Jun 5 12:21:04 OpenVPN openvpn[7666]: OpenVPN 2.4.9 amd64-portbld-freebsd11.3 [SSL (OpenSSL)] [LZO] [LZ4] [MH/RECVDA] [AEAD] built on Jun 2 2020 Jun 5 12:21:04 OpenVPN openvpn[7666]: library versions: OpenSSL 1.0.2s-freebsd 28 May 2019, LZO 2.10 Jun 5 12:21:04 OpenVPN openvpn[7667]: NOTE: your local LAN uses the extremely common subnet address 192.168.0.x or 192.168.1.x. Be a ware that this might create routing conflicts if you connect to the VPN server from public locations such as internet cafes that use t he same subnet. Jun 5 12:21:04 OpenVPN openvpn[7667]: Diffie-Hellman initialized with 2048 bit key Jun 5 12:21:04 OpenVPN openvpn[7667]: Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticat ion Jun 5 12:21:04 OpenVPN openvpn[7667]: Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authenticat ion Jun 5 12:21:04 OpenVPN openvpn[7667]: ROUTE_GATEWAY 192.168.1.1/255.255.255.0 IFACE=epair0b HWADDR=ee:f4:bb:9b:c8:80 Jun 5 12:21:04 OpenVPN openvpn[7667]: TUN/TAP device /dev/tun0 opened Jun 5 12:21:04 OpenVPN openvpn[7667]: /sbin/ifconfig tun0 10.8.0.1 10.8.0.2 mtu 1500 netmask 255.255.255.255 up Jun 5 12:21:04 OpenVPN openvpn[7667]: /sbin/route add -net 10.8.0.0 10.8.0.2 255.255.255.0 Jun 5 12:21:04 OpenVPN openvpn[7667]: Socket Buffers: R=[42080->42080] S=[9216->9216] Jun 5 12:21:04 OpenVPN openvpn[7667]: UDPv4 link local (bound): [AF_INET][undef]:1194 Jun 5 12:21:04 OpenVPN openvpn[7667]: UDPv4 link remote: [AF_UNSPEC] Jun 5 12:21:04 OpenVPN openvpn[7667]: GID set to nobody Jun 5 12:21:04 OpenVPN openvpn[7667]: UID set to nobody Jun 5 12:21:04 OpenVPN openvpn[7667]: MULTI: multi_init called, r=256 v=256 Jun 5 12:21:04 OpenVPN openvpn[7667]: IFCONFIG POOL: base=10.8.0.4 size=62, ipv6=0 Jun 5 12:21:04 OpenVPN openvpn[7667]: IFCONFIG POOL LIST Jun 5 12:21:04 OpenVPN openvpn[7667]: Initialization Sequence Completed
Thanks @Bibi40k for you help on this. Above is what i see when I run the watcher. Sorry for the noob questions.
1.Since I already have transmission and plex setup on the server and running, and also wanted to get sickchill at some point, would I need to do anything else or am I ok using transmission as it is behind the VPN or would I need to update the config with my VPN providers info? Also how would I see what WAN IP it should be showing ?
From