Hello,
I have some problems with my jail configuration. I have multiple IPs, where every IP is dedicated to a jail, except the one for the host. My /etc/rc.conf would look like this:
Now I have a webserver installed in the jail, which listens to 176.xxx.xxx.xx2. I also have a webserver in the host, listening to 176.xxx.xxx.xx1. The problem: the webserver of the host-system anwsers all requests! This is not limited to the webserver, it is the same for all applications, which are the same in host and jail. The host accepts all requests for the jails and anwsers it, even if it is to the wrong IP.
Is there a possibility to stop this behavior? How can I configure the host to just accept requests at its own IP?
Thank you for every hint!
Greetings from Germany,
Torsten
I have some problems with my jail configuration. I have multiple IPs, where every IP is dedicated to a jail, except the one for the host. My /etc/rc.conf would look like this:
Code:
############
# networks #
############
########
# IPv4 #
########
ifconfig_re0="DHCP media 100baseTX mediaopt full-duplex"
ifconfig_re0_alias0="inet 176.xxx.xxx.xx1 netmask 255.255.255.224"
ifconfig_re0_alias1="inet 176.xxx.xxx.xx2 netmask 255.255.255.248"
#########
# jails #
#########
jail_enable="YES"
jail_list="example" # Space separated list of names of jails
jail_sysvipc_allow="YES" # needed to allow postgresql
jail_example_rootdir="/usr/local/jail/example"
jail_example_hostname="example.de"
jail_example_ip="176.xxx.xxx.xx2"
jail_example_exec="/bin/sh /etc/rc"
jail_example_devfs_enable="YES"
jail_example_mount_enable="NO"
Now I have a webserver installed in the jail, which listens to 176.xxx.xxx.xx2. I also have a webserver in the host, listening to 176.xxx.xxx.xx1. The problem: the webserver of the host-system anwsers all requests! This is not limited to the webserver, it is the same for all applications, which are the same in host and jail. The host accepts all requests for the jails and anwsers it, even if it is to the wrong IP.
Is there a possibility to stop this behavior? How can I configure the host to just accept requests at its own IP?
Thank you for every hint!
Greetings from Germany,
Torsten