Date: Thu, 20 Nov 2008 23:14:40 +0700 From: Eugene Grosbein <eugen@grosbein.pp.ru> To: net@freebsd.org Subject: jail translates destination IP? Message-ID: <20081120161440.GA3537@grosbein.pp.ru>
next in thread | raw e-mail | index | archive | help
Hi! For some strange reason, RAW sockets (when allowed) and TCP beheave very differently in jail (7.1-PRERELEASE). In host's rc.conf: jail_enable="YES" jail_list="test" jail_devfs_enable="YES" jail_test_rootdir="/mnt/big/jail/test" jail_test_hostname="myname.ru" jail_test_ip="192.168.0.1" jail_test_interface="lo0" "/etc/rc.d/jail start" does all right and I may rlogin into jail. In host environment I run tcpdump -np -i lo0. Inside jail I ping 127.0.0.1, it succeedes and tcpdump shows that requests go from 192.168.0.1 to 127.0.0.1 really. But when I try to telnet 127.0.0.1 25 from jail, tcpdump shows that TCP SYN are sent to 192.168.0.1, so telnet fails. There is no NAT here. It it a bug? Eugene Grosbein
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20081120161440.GA3537>