I just switched my plugins/jails to use the relatively new NAT port forwarding feature. While they can access the internet, and LAN hosts can access them, they are unable to talk to each other. For example, I'm forwarding port 9091 on my FreeNAS host (192.168.99.5) to Transmission and I would like Radarr to be able to connect to it.
Radarr cannot connect to Transmission, but it can see port 80 on the FreeNAS host and access the internet.
Any other device on my LAN can access Transmission.
And any jail that uses DHCP can access Transmission as well.
Here's the config.json for Transmission:
and my config.json for Radarr:
and reverseproxy for comparison:
So, short of going back to DHCP, does anyone have any ideas for how to get my jails back on speaking terms with each other?
Radarr cannot connect to Transmission, but it can see port 80 on the FreeNAS host and access the internet.
Code:
root@radarr:/ # curl http://192.168.99.5:9091 curl: (7) Failed to connect to 192.168.99.5 port 9091: Connection refused root@radarr:/ # curl http://192.168.99.5:80 <html> <head><title>302 Found</title></head> <body> <center><h1>302 Found</h1></center> <hr><center>nginx</center> </body> </html> root@radarr:/ # curl http://www.example.com <!doctype html> <html> <head> <title>Example Domain</title>
Any other device on my LAN can access Transmission.
Code:
C:\>curl http://192.168.99.5:9091 <h1>301: Moved Permanently</h1>
And any jail that uses DHCP can access Transmission as well.
Code:
root@reverseproxy:/ # curl http://192.168.99.5:9091 <h1>301: Moved Permanently</h1>
Here's the config.json for Transmission:
Code:
{ "CONFIG_VERSION": "26", "allow_chflags": 0, "allow_mlock": 0, "allow_mount": 0, "allow_mount_devfs": 0, "allow_mount_fusefs": 0, "allow_mount_nullfs": 0, "allow_mount_procfs": 0, "allow_mount_tmpfs": 0, "allow_mount_zfs": 0, "allow_quotas": 0, "allow_raw_sockets": 0, "allow_set_hostname": 1, "allow_socket_af": 0, "allow_sysvipc": 0, "allow_tun": 0, "allow_vmm": 0, "assign_localhost": 0, "available": "readonly", "basejail": 1, "boot": 1, "bpf": 0, "children_max": "0", "cloned_release": "11.2-RELEASE-p9", "comment": "none", "compression": "lz4", "compressratio": "readonly", "coredumpsize": "off", "count": "1", "cpuset": "off", "cputime": "off", "datasize": "off", "dedup": "off", "defaultrouter": "172.16.0.21", "defaultrouter6": "auto", "depends": "none", "devfs_ruleset": "4", "dhcp": 0, "enforce_statfs": "2", "exec_clean": 1, "exec_created": "/usr/bin/true", "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": "transmission", "host_hostuuid": "transmission", "host_time": 1, "hostid": "2ff269df-73c1-11e9-b13e-0cc47acdefe7", "hostid_strict_check": 0, "interfaces": "vnet0:bridge0", "ip4": "new", "ip4_addr": "vnet0|172.16.0.22/30", "ip4_saddrsel": 1, "ip6": "new", "ip6_addr": "none", "ip6_saddrsel": 1, "ip_hostname": 0, "jail_zfs": 0, "jail_zfs_dataset": "iocage/jails/transmission/data", "jail_zfs_mountpoint": "none", "last_started": "2020-04-02 09:49:07", "localhost_ip": "none", "login_flags": "-f root", "mac_prefix": "0cc47a", "maxproc": "off", "memorylocked": "off", "memoryuse": "off", "mount_devfs": 1, "mount_fdescfs": 1, "mount_linprocfs": 0, "mount_procfs": 0, "mountpoint": "readonly", "msgqqueued": "off", "msgqsize": "off", "nat": 1, "nat_backend": "ipfw", "nat_forwards": "tcp(9091:9091),tcp(12929:12929)", "nat_interface": "none", "nat_prefix": "172.16", "nmsgq": "off", "notes": "none", "nsem": "off", "nsemop": "off", "nshm": "off", "nthr": "off", "openfiles": "off", "origin": "readonly", "owner": "root", "pcpu": "off", "plugin_name": "transmission", "plugin_repository": "https://github.com/freenas/iocage-ix-plugins.git", "priority": "99", "pseudoterminals": "off", "quota": "none", "readbps": "off", "readiops": "off", "release": "11.2-RELEASE-p9", "reservation": "none", "resolver": "/etc/resolv.conf", "rlimits": "off", "rtsold": 0, "securelevel": "2", "shmsize": "off", "stacksize": "off", "stop_timeout": "30", "swapuse": "off", "sync_state": "none", "sync_target": "none", "sync_tgt_zpool": "none", "sysvmsg": "new", "sysvsem": "new", "sysvshm": "new", "template": 0, "type": "pluginv2", "used": "readonly", "vmemoryuse": "off", "vnet": 1, "vnet0_mac": "0cc47a03aa46 0cc47a03aa47", "vnet1_mac": "none", "vnet2_mac": "none", "vnet3_mac": "none", "vnet_default_interface": "auto", "vnet_interfaces": "none", "wallclock": "off", "writebps": "off", "writeiops": "off" }
and my config.json for Radarr:
Code:
{ "CONFIG_VERSION": "26", "allow_chflags": 0, "allow_mlock": 0, "allow_mount": 0, "allow_mount_devfs": 0, "allow_mount_fusefs": 0, "allow_mount_nullfs": 0, "allow_mount_procfs": 0, "allow_mount_tmpfs": 0, "allow_mount_zfs": 0, "allow_quotas": 0, "allow_raw_sockets": 0, "allow_set_hostname": 1, "allow_socket_af": 0, "allow_sysvipc": 0, "allow_tun": 0, "allow_vmm": 0, "assign_localhost": 0, "available": "readonly", "basejail": 1, "boot": 1, "bpf": 0, "children_max": "0", "cloned_release": "11.2-RELEASE-p9", "comment": "none", "compression": "lz4", "compressratio": "readonly", "coredumpsize": "off", "count": "1", "cpuset": "off", "cputime": "off", "datasize": "off", "dedup": "off", "defaultrouter": "172.16.0.17", "defaultrouter6": "auto", "depends": "none", "devfs_ruleset": "4", "dhcp": 0, "enforce_statfs": "2", "exec_clean": 1, "exec_created": "/usr/bin/true", "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": "radarr", "host_hostuuid": "radarr", "host_time": 1, "hostid": "2ff269df-73c1-11e9-b13e-0cc47acdefe7", "hostid_strict_check": 0, "interfaces": "vnet0:bridge0", "ip4": "new", "ip4_addr": "vnet0|172.16.0.18/30", "ip4_saddrsel": 1, "ip6": "new", "ip6_addr": "none", "ip6_saddrsel": 1, "ip_hostname": 0, "jail_zfs": 0, "jail_zfs_dataset": "iocage/jails/radarr/data", "jail_zfs_mountpoint": "none", "last_started": "2020-04-02 09:44:24", "localhost_ip": "none", "login_flags": "-f root", "mac_prefix": "0cc47a", "maxproc": "off", "memorylocked": "off", "memoryuse": "off", "mount_devfs": 1, "mount_fdescfs": 1, "mount_linprocfs": 0, "mount_procfs": 0, "mountpoint": "readonly", "msgqqueued": "off", "msgqsize": "off", "nat": 1, "nat_backend": "ipfw", "nat_forwards": "tcp(7878:7878)", "nat_interface": "none", "nat_prefix": "172.16", "nmsgq": "off", "notes": "none", "nsem": "off", "nsemop": "off", "nshm": "off", "nthr": "off", "openfiles": "off", "origin": "readonly", "owner": "root", "pcpu": "off", "plugin_name": "radarr", "plugin_repository": "https://github.com/freenas/iocage-ix-plugins.git", "priority": "99", "pseudoterminals": "off", "quota": "none", "readbps": "off", "readiops": "off", "release": "11.2-RELEASE-p9", "reservation": "none", "resolver": "/etc/resolv.conf", "rlimits": "off", "rtsold": 0, "securelevel": "2", "shmsize": "off", "stacksize": "off", "stop_timeout": "30", "swapuse": "off", "sync_state": "none", "sync_target": "none", "sync_tgt_zpool": "none", "sysvmsg": "new", "sysvsem": "new", "sysvshm": "new", "template": 0, "type": "pluginv2", "used": "readonly", "vmemoryuse": "off", "vnet": 1, "vnet0_mac": "0cc47ac1dfca 0cc47ac1dfcb", "vnet1_mac": "none", "vnet2_mac": "none", "vnet3_mac": "none", "vnet_default_interface": "auto", "vnet_interfaces": "none", "wallclock": "off", "writebps": "off", "writeiops": "off" }
and reverseproxy for comparison:
Code:
{ "CONFIG_VERSION": "26", "allow_chflags": 0, "allow_mlock": 0, "allow_mount": 0, "allow_mount_devfs": 0, "allow_mount_fusefs": 0, "allow_mount_nullfs": 0, "allow_mount_procfs": 0, "allow_mount_tmpfs": 0, "allow_mount_zfs": 0, "allow_quotas": 0, "allow_raw_sockets": 0, "allow_set_hostname": 1, "allow_socket_af": 0, "allow_sysvipc": 0, "allow_tun": 0, "allow_vmm": 0, "assign_localhost": 0, "available": "readonly", "basejail": 0, "boot": 1, "bpf": 1, "children_max": "0", "cloned_release": "11.2-RELEASE-p9", "comment": "none", "compression": "lz4", "compressratio": "readonly", "coredumpsize": "off", "count": "1", "cpuset": "off", "cputime": "off", "datasize": "off", "dedup": "off", "defaultrouter": "auto", "defaultrouter6": "auto", "depends": "none", "devfs_ruleset": "4", "dhcp": 1, "enforce_statfs": "2", "exec_clean": 1, "exec_created": "/usr/bin/true", "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": "reverseproxy", "host_hostuuid": "reverseproxy", "host_time": 1, "hostid": "2ff269df-73c1-11e9-b13e-0cc47acdefe7", "hostid_strict_check": 0, "interfaces": "vnet0:bridge0", "ip4": "new", "ip4_addr": "none", "ip4_saddrsel": 1, "ip6": "new", "ip6_addr": "none", "ip6_saddrsel": 1, "ip_hostname": 0, "jail_zfs": 0, "jail_zfs_dataset": "iocage/jails/reverseproxy/data", "jail_zfs_mountpoint": "none", "last_started": "2020-03-21 04:30:48", "localhost_ip": "none", "login_flags": "-f root", "mac_prefix": "0cc47a", "maxproc": "off", "memorylocked": "off", "memoryuse": "off", "mount_devfs": 1, "mount_fdescfs": 1, "mount_linprocfs": 0, "mount_procfs": 0, "mountpoint": "readonly", "msgqqueued": "off", "msgqsize": "off", "nat": 0, "nat_backend": "ipfw", "nat_forwards": "none", "nat_interface": "none", "nat_prefix": "172.16", "nmsgq": "off", "notes": "none", "nsem": "off", "nsemop": "off", "nshm": "off", "nthr": "off", "openfiles": "off", "origin": "readonly", "owner": "root", "pcpu": "off", "plugin_name": "none", "plugin_repository": "none", "priority": "99", "pseudoterminals": "off", "quota": "none", "readbps": "off", "readiops": "off", "release": "11.2-RELEASE-p9", "reservation": "none", "resolver": "/etc/resolv.conf", "rlimits": "off", "rtsold": 0, "securelevel": "2", "shmsize": "off", "stacksize": "off", "stop_timeout": "30", "swapuse": "off", "sync_state": "none", "sync_target": "none", "sync_tgt_zpool": "none", "sysvmsg": "new", "sysvsem": "new", "sysvshm": "new", "template": 0, "type": "jail", "used": "readonly", "vmemoryuse": "off", "vnet": 1, "vnet0_mac": "0cc47a549309 0cc47a54930a", "vnet1_mac": "none", "vnet2_mac": "none", "vnet3_mac": "none", "vnet_default_interface": "auto", "vnet_interfaces": "none", "wallclock": "off", "writebps": "off", "writeiops": "off" }
So, short of going back to DHCP, does anyone have any ideas for how to get my jails back on speaking terms with each other?