Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Oct 2005 18:11:04 -0500
From:      Tyler T <espartano.list@gmail.com>
To:        freebsd-questions@freebsd.org
Subject:   problem with ssh connetions in jail
Message-ID:  <9385b1fc0510041611r1d425adp@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
hi people first sorry for my english.

i have a pc with only one etternet card connected to a router
(172.16.0.1) which provide both internet connection and dhcp service,
in this machine i have configured a jail virtual server, the ip of the
real server is 172.16.1.36/16 and i have made a ip alias for the jail
virtual server which is 172.16.1.100/32, i want that the virtual
server respond all incoming connections from internet, i have
configured natd with next option in /etc/rc.natd:

redirect_port  tcp  172.16.1.100:22   22


in /etc/firewall.rules:

add divert natd all from any to any via rl0


in /etc/rc.conf:

natd_enable=3D"YES"
natd_interface=3D"rl0"
natd_flags=3D"-l -f /etc/rc.natd"

firewall_enable=3D"YES"
firewall_type=3D"/etc/firewall.rules"
firewall_script=3D"/etc/rc.firewall"

in the sshd of jail:

KeepAlive yes
UseDNS no

my firewall is IPFW2, the configuration works well however often the
conections is reset, i don't know what happen

a scheme of my lan:

                             172.16.0.1/16                           =20
    real ip  172.16.1.36/16

INTERNET----------modem/router-------------------------  PC with run jail

                                                                     =20
             alias ip  172.16.1.100/32


any help is thank in avantage.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?9385b1fc0510041611r1d425adp>