Greetings.
I manually created a jail and installed nginx within it, made related settings, when I lynx http://10.10.10.3 both inside the jail (that's the IP of that jail) and externally from the host, nginx's default web sample page appears. So, that's fine.
However, when I type it with httpS, it says; Alert!: Unable to make secure connection to remote host. Making HTTPS connection to 10.10.10.3. Retrying connection without TLS. lynx: Can't access startfile https://10.10.10.3/"
And it's not about nginx's SSL configuration (they're all set correctly), not about PF limit (checked, verified), also;
both sockstat -4 and netstat -anf inet outputs;
www nginx 93839 9 tcp4 10.10.10.3:443 *:* -
so obviously nginx listens on 443 port. Any idea? I'm losing my mind here.
And browsing a random SSL website, like typing lynx https://www.google.com within the jail is no problem as well. It opens.
Can anybody point me to the error or to a possible workaround?
Thanks a lot.
I manually created a jail and installed nginx within it, made related settings, when I lynx http://10.10.10.3 both inside the jail (that's the IP of that jail) and externally from the host, nginx's default web sample page appears. So, that's fine.
However, when I type it with httpS, it says; Alert!: Unable to make secure connection to remote host. Making HTTPS connection to 10.10.10.3. Retrying connection without TLS. lynx: Can't access startfile https://10.10.10.3/"
And it's not about nginx's SSL configuration (they're all set correctly), not about PF limit (checked, verified), also;
both sockstat -4 and netstat -anf inet outputs;
www nginx 93839 9 tcp4 10.10.10.3:443 *:* -
so obviously nginx listens on 443 port. Any idea? I'm losing my mind here.
And browsing a random SSL website, like typing lynx https://www.google.com within the jail is no problem as well. It opens.
Can anybody point me to the error or to a possible workaround?
Code:
[root@me:~]# cat /etc/jail.conf
exec.clean;
exec.system_user = "root";
exec.jail_user = "root";
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
allow.mount;
allow.mount.devfs;
mount.devfs; #mount devfs
allow.raw_sockets; #allow ping-pong
allow.sysvipc; #postgres
allow.reserved_ports; #The jail root may bind to ports lower than 1024.
devfs_ruleset="4"; #devfs ruleset for this jail
allow.set_hostname="0";
persist;
www2 {
host.hostname = "www2";
path = "/jails/demojail";
ip4.addr = 10.10.10.3;
exec.consolelog = "/var/log/jail_www2_console.log";
mount.fstab = /jails/demojail/fstab;
}
rc.conf:
jail_enable="YES"
jail_list=""
cloned_interfaces="lo1"
ifconfig_lo1_alias0="inet 10.10.10.1 netmask 255.255.255.0"
ifconfig_lo1_alias1="inet 10.10.10.2 netmask 255.255.255.0"
ifconfig_lo1_alias2="inet 10.10.10.3 netmask 255.255.255.0"
[root@me:~]# ping 10.10.10.3
PING 10.10.10.3 (10.10.10.3): 56 data bytes
64 bytes from 10.10.10.3: icmp_seq=0 ttl=64 time=0.063 ms
64 bytes from 10.10.10.3: icmp_seq=1 ttl=64 time=0.110 ms
Thanks a lot.